분류 전체보기
-
[WPF] Singleton ClassC#/WPF 2023. 11. 28. 10:08
private static readonly Lazy instance = new Lazy(() => new 클래스이름()); public static 클래스이름 Instance { get { return instance.Value; } } EX) private static readonly Lazy instance = new Lazy(() => new TagClient()); public static TagClient Instance { get { return instance.Value; } } public sealed class Singleton { private static readonly Lazy lazy = new Lazy(() => new Singleton()); public static Singl..
-
[DX_WPF] Dynamic Load Modules In DevExpress MVVM For WPFDevExpress/DX_WPF 2023. 11. 23. 11:07
방식 1. Libaray Nuget Package https://github.com/dlsenfl3/DXDynamicModule Nuget 추가. 사용. https://github.com/dlsenfl3/DXModularWithDynamic App.xaml.cs Project Module ViewModelSource 나 ViewModelBase 둘중 하나만 사용. (같은 거) ViewModelSource and ViewModelBase are interchangeable solutions that should not be used together. https://supportcenter.devexpress.com/ticket/details/t1148859/understanding-pocoviewmodel..
-
[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
-
[Prism] ActiveViewsC#/Prism 2023. 11. 1. 10:02
https://stackoverflow.com/questions/6358843/how-to-get-the-current-active-view-in-a-region-using-prism How to get the current active view in a region using PRISM? I know that i can get all the registered views in a region with : var vs = mRegionManager.Regions[RegionNames.MainRegionStatic].Views.ToList(); and i can see there is the following code : stackoverflow.com