C#/기초
-
[C#] SuppressMessageC#/기초 2024. 1. 16. 09:44
코드 단위로 해당 규칙을 Disable. 규칙을 위반하는 .NET 코드에 대해서 SuppressMessage 특성을 설정해서 예외적으로 벗어납니다. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1040:AvoidEmptyInterfaces", Justification = "This is a marker interface")] public interface IModuleCatalogItem { } https://learn.microsoft.com/ko-kr/dotnet/api/system.diagnostics.codeanalysis.suppressmessageattribute?view=netframework-4.0 Supp..
-
[C#] VS 빌드 이벤트C#/기초 2024. 1. 8. 07:55
https://2ry53.tistory.com/entry/%EB%B9%8C%EB%93%9C-%EC%9D%B4%EB%B2%A4%ED%8A%B8-%EB%A7%A4%ED%81%AC%EB%A1%9C-%EC%A0%95%EB%A6%AC-ProjectName-TargetPath-TargetName 빌드 이벤트 매크로 정리 ($(ProjectName), $(TargetPath), $(TargetName) ...) 빌드 전 이벤트, 빌드 후 이벤트 등 명령문을 넣을때 사용되는 매크로 정의 입니다.(그 이외에도 사용되겠죠^^)저도 잘 모르는 부분도 있고 추후 사용할 때 참고 할 수 있게 기록을 남깁니다.^^출 2ry53.tistory.com
-
[C#] Observable.FromEvent<>()C#/기초 2023. 12. 27. 13:52
Observable.FromEvent( addHandler , removeHandler) Type Parameters TEventArgs The type of event. Parameters addHandler Type: System.Action Action that attaches the given event handler to the underlying .NET event. removeHandler Type: System.Action Action that detaches the given event handler from the underlying .NET event. Return Value Type: System.IObservable Observable sequence th..
-
[C#] NuGet Package ExplorerC#/기초 2023. 12. 22. 13:47
NuGet Package Explorer Install https://apps.microsoft.com/detail/9WZDNCRDMDM3?hl=en-US&gl=US NuGet Package Explorer - Official app in the Microsoft Store IMPORTANT: This app works with Windows 10 Pro and Home. This app performs with core functionality on Windows 10 S but binary enumeration and plugins do not work. This app allows browsing NuGet packages from an online feed and viewing contents o..
-
[C#] Using AppDomain in C#C#/기초 2023. 12. 12. 17:14
https://stackoverflow.com/questions/6578170/using-appdomain-in-c-sharp-to-dynamically-load-and-unload-dll Using AppDomain in C# to dynamically load and unload dll In one of my application, which is related to system diagnostics, the related DLL is to be loaded and unloaded dynamically in C#. After some search I found that a separate DLL cannot be loaded stackoverflow.com https://learn.microsoft...
-
[C#] _ =C#/기초 2023. 11. 30. 13:28
https://drehzr.tistory.com/989 기본기)c#) 무시 항목 무시 항목 C# 7.0부터 C#에서는 애플리케이션 코드에서 의도적으로 사용되지 않는 자리 표시자 변수인 무시 항목을 지원합니다. 무시 항목은 할당되지 않은 변수에 해당하므로 값을 가지지 않는 drehzr.tistory.com https://learn.microsoft.com/ko-kr/dotnet/csharp/fundamentals/functional/discards Dis카드s - 할당되지 않은 dis카드able 변수 - C# 할당되지 않은 무시 가능한 변수인 무시 항목에 대한 C#의 지원과 무시 항목을 사용할 수 있는 방법에 관해 설명합니다. learn.microsoft.com
-
[C#] 객체 깊은 복사C#/기초 2023. 11. 14. 11:16
https://hanamon.kr/javascript-shallow-copy-deep-copy/ [JavaScript] 얕은 복사(shallow copy) vs 깊은 복사(deep copy) - 하나몬 💡 얕은 복사(shallow copy) vs 깊은 복사(deep copy) ❗️얕은 복사(shallow copy)란? const obj1 = { a: 1, b: 2}; const obj2 = obj1; console.log( obj1 === obj2 ); // true 위의 예시처럼 객체를 직접 대입하는 경우 참조에 의 hanamon.kr https://m.blog.naver.com/ymhooky/130014106808 MemberwiseClone() 메서드 10.6 MemberwiseClone() 메서드..
-
[C#] Dictionary sortC#/기초 2023. 11. 1. 16:00
SortedDictionary https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.sorteddictionary-2?view=net-7.0 SortedDictionary Class (System.Collections.Generic) Represents a collection of key/value pairs that are sorted on the key. learn.microsoft.com https://moonpmj.tistory.com/44