C#
-
[WPF] 프로그램 실행시 인수 전달C#/WPF 2025. 3. 11. 08:24
using System;class Sample{ public static void Main() { Console.WriteLine(); // Invoke this sample with an arbitrary set of command line arguments. string[] arguments = Environment.GetCommandLineArgs(); Console.WriteLine("GetCommandLineArgs: {0}", string.Join(", ", arguments)); }} https://learn.microsoft.com/ko-kr/dotnet/api/system.environment.getcommandli..
-
[C#] ASP.NET CoreC#/기초 2025. 2. 26. 14:09
MVC ModelViewController https://www.youtube.com/watch?v=RWXKysImabs https://www.youtube.com/watch?v=AopeJjkcRvU https://github.com/haedalprogramming/DotnetCsharp GitHub - haedalprogramming/DotnetCsharp: C# Dotnet으로 배우는 백엔드 기초C# Dotnet으로 배우는 백엔드 기초. Contribute to haedalprogramming/DotnetCsharp development by creating an account on GitHub.github.com
-
[Blazor] Get Started With DevExpress Components for BlazorC#/Blazor 2025. 2. 24. 09:10
https://learn.microsoft.com/ko-kr/training/paths/build-web-apps-with-blazor/ Blazor 학습 경로를 사용하여 웹앱 빌드 - Training무료 및 오픈 소스 Blazor 웹 사용자 인터페이스 프레임워크를 사용하여 첫 번째 웹앱을 빌드하는 방법을 알아봅니다.learn.microsoft.com https://dotnet.microsoft.com/ko-kr/learn 학습 센터 | .NET.NET을 사용하여 웹, 모바일, 데스크톱, 게임, 기계 학습, IoT 앱 빌드를 시작할 수 있는 무료 자습서, 비디오, 과정 등이 있습니다.dotnet.microsoft.com https://docs.devexpress.com/Blazor/401057/get..
-
[WPF] Binding Self ControlC#/WPF 2025. 2. 21. 13:23
FocusManager.FocusedElement="{Binding RelativeSource={RelativeSource Self}}" 상위 컨트롤 바인딩https://dlsenfl.tistory.com/entry/WPF-Binding-RelativeSource [WPF] Binding RelativeSource, ElementNameCommandParameter Binding 시 ElementName 사용 예시 Command Binding 시 RelativeSource 사용 예시 한 단계 위의 UserControl소스의 DataContext의 ItemClickCommand에 바인딩. ■ Binding 태그 확장의 RelativeSource 속성을 사용하는dlsenfl.tistory.com ..
-
[C#] 정규식, RegexC#/기초 2025. 2. 18. 15:26
EX) SINT (-12[0-8]|-1[01][0-9]|-[1-9][0-9]?|0|[1-9][0-9]?|1[01][0-9]|12[0-7]) # 해석-120~128 or -100~109, -110~-119 or -1~-9, -10 ~ -99 or 0 or 1~9, 10 ~ 99 or 100~119 or 120~127 EX)TextEdit SpinEdit https://jeongwoo.tistory.com/82 [Regex] 정규식 / 정규표현식 (Regular Expression, Regex)개요 정규식을 사용하기 위해서는 패턴, 기호, 플래그, 메서드를 알아야한다. 정규식 docs 사이트 링크: https://developer.mozilla.org/en-US/docs/Web/J..
-
[WPF] TextEdit , MaskC#/WPF 2025. 2. 18. 15:15
https://docs.devexpress.com/WPF/DevExpress.Xpf.Editors.TextEdit.Mask TextEdit.Mask Property | WPF Controls | DevExpress DocumentationTextEdit.Mask Property Gets or sets a mask expression. This is a dependency property. Namespace: DevExpress.Xpf.Editors Assembly: DevExpress.Xpf.Core.v24.2.dll NuGet Package: DevExpress.Wpf.Core Declaration C# VB.NET public string Mask { get; set; } Publicdocs.deve..
-
[WPF][개념][별*] Property get; readonly;C#/WPF 2025. 2. 13. 08:45
prop 에 xaml control Binding 시 prop의 변화가 있으면 UI 갱신 함. ( ObservableCollection ) get;만 정의한것은 prop(인스턴스)자체의 교체 및 변경이 안되는 것. prop이 list 나 Collection, IEnumerable 처럼 Item의 변경(Add,update,delete)는 인스턴스 자체의 변경이 아니라해당 인스턴스의 속성?,Value(Items)값의 변경이기 때문에 get;만 되어 있다고 혹은 readonly로 되어 있어도변경가능 => 인스턴스 변경X, 속성 값 변경 EX) get; 만 있어도 readonly만 있어도 Add, delete 등 value값의 변경 가능. 아래처럼 프로퍼티를 사용하는경우 값이 바뀌어도 제대로 반영이..
-
[C#][별**] object to List<>C#/기초 2025. 2. 12. 11:04
상황 EX) CommandParameter로 Items Array를 object전달 object로 Array 를 담은 형태로 전달 받음 var tag = ((IEnumerable)obj).Cast().ToList(); List로 Casting List로 Casting https://stackoverflow.com/questions/632570/cast-received-object-to-a-listobject-or-ienumerableobject or IEnumerable" data-og-description="I'm trying to perform the following cast private void MyMethod(object myObject) { if(myObject is IEnumera..