본문 바로가기

전체 글124

IDE0018 (Variable declaration can be inlined) 변수 선언은 인라인할 수 있습니다. int result; if (int.TryParse(input, out result)) Console.WriteLine(result); else Console.WriteLine("Could not parse input"); 매개 변수를 지원하는 기존 구문이 C# 7.0 버전에서 개선 되어서 별도의 선언문을 작성하지 않고 메소드 호출의 인수 목록에서 변수를 선언할 수 있게 되었다. 코드를 다음과 같이 수정한다. //int result; if (int.TryParse(input, out int result)) Console.WriteLine(result); else Console.WriteLine("Could not parse input"); 2020. 6. 15.
닷넷 프레임워크 다운로드 프레임워크를 활용해 개발할 때는 항상 버전 이슈가 발생한다. 닷넷 프레임워크 다운로드 URL https://dotnet.microsoft.com/download/dotnet-framework Download .NET Framework | Free official downloads Downloads for building and running applications with .NET Framework. Get web installer, offline installer, and language pack downloads for .NET Framework. dotnet.microsoft.com VersionReleasedEnd of life .NET Framework 4.8 (recommended) 2019-.. 2020. 6. 11.
IDE0060 (remove unused parameter) 마이크로스프트에서 개발하는 최신 Visual Studio 에는 코드 분석 기능이 내장되어 있어 코드에 취약한 부분을 다음과 같이 지적한다. 무시할 수도 있지만 Safety Software 개발을 위해서 코딩 스타일을 개선할 필요가 있다. Main() 에서 정의된 args 매개 변수는 사용되지 않는데 코드에 사용되지 않는 매개 변수가 없도록 권고하고 있다. /////////////////////////////////////////////////////////////////////// IDE0060 이슈 수정 /////////////////////////////////////////////////////////////////////// #1 namespace TP { class Program { static.. 2020. 6. 10.
허수아비 시골집 뒷마당에 서 있는 허수아비 녀석이다. 할머니는 어디서 이런 녀석을 구해 놓으셨는지 ... ^^; 2008. 6. 14.
728x90