분류 전체보기
-
[WPF] 어셈블리에서 로드한 정보로 인스턴스 생성.C#/WPF 2024. 1. 26. 08:15
Activator.CreateInstance Method https://learn.microsoft.com/en-us/dotnet/api/system.activator.createinstance?view=net-8.0&redirectedfrom=MSDN#overloads Activator.CreateInstance Method (System) Creates an instance of the specified type using the constructor that best matches the specified parameters. learn.microsoft.com
-
[DX_WPF] VisualStateServiceDevExpress/DX_WPF 2024. 1. 25. 11:41
Error VisualStateService with the same Name already exists. If you are using several VisualStateServices in one View, be sure that they have different names. public class ModuleAViewModel : ISupportState, ISupportServices 같이 써서 발생? 주석하면 발생 안함.
-
[DX_WPF] POCO View ModelsDevExpress/DX_WPF 2024. 1. 24. 13:04
https://docs.devexpress.com/WPF/17352/mvvm-framework/viewmodels/runtime-generated-poco-viewmodels Runtime-generated POCO View Models | WPF Controls | DevExpress Documentation POCO (Plain Old CLR Objects) View Models simplify and speed up the development process. POCO View Models allow you to: Define bindable properties as simple auto-implemented properties. Create methods that function as comman..
-
[C#] Time CheckC#/기초 2024. 1. 24. 10:52
#Log https://dlsenfl.tistory.com/entry/C-Logger Func, out value); /// Return Func value && timespan && Write to Log.txt /// /// return Type /// return Method /// out Check Method Run TimeSpan /// Method return value public static T TimeCheck(Func action, out TimeSpan? timeSpan) { var stopwatch = Stopwatch.StartNew(); var res = action.Invoke(); stopwatch.Stop(); timeSpan = stopwatch.Elapsed; ILog..
-
[C#] LoggerC#/기초 2024. 1. 23. 08:40
# 시간 기록 https://dlsenfl.tistory.com/entry/C-Time-Check [C#] Time Check namespace PMCommon.Models; public class TimeSpent { private static Stopwatch stopwatch; private static bool isLogStarted = false; #if DEBUG public static string ProgramMode = "DebugMode"; #else public static string ProgramMode = "ReleaseMode"; #endif priva dlsenfl.tistory.com Log4Net log4net.config파일을 생성했다면 이제 log4net library..
-
[DX_WPF] ISupportServicesDevExpress/DX_WPF 2024. 1. 19. 07:57
// 아래 글 안의 링크 되어있는 글들 참조. https://supportcenter.devexpress.com/ticket/details/t659467/mvvm-services-and-ioc-container MVVM services and IoC container You have yet to view any tickets. Your search criteria do not match any tickets. A server error occurred while processing your request. Please try again at a later time. supportcenter.devexpress.com https://docs.devexpress.com/WPF/17447/mvvm-framew..
-
[WPF] Reduce WPF App Startup TimeC#/WPF 2024. 1. 16. 16:04
# .net7 부터 AOT 지원 ( WPF에서는 사용 안됨. Reflection 등의 이유로). Limitations of Native AOT deployment No dynamic loading (for example, Assembly.LoadFile) No runtime code generation (for example, System.Reflection.Emit) No C++/CLI No built-in COM (only applies to Windows) Requires trimming, which has limitations Implies compilation into a single file, which has known incompatibilities Apps include required ..
-
[C#] interface.propertyC#/기초 2024. 1. 16. 09:55
c# explicit interface implementation property https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/interfaces/explicit-interface-implementation Explicit Interface Implementation - C# Programming Guide - C# A class can implement interfaces that contain a member with the same signature in C#. Explicit implementation creates a class member specific to one interface. learn.microsoft.com