주 메뉴 열기

wwiki β

바뀜

CSharp

3,768 바이트 추가됨, 2023년 4월 7일 (금) 00:42
Events
== 람다식(Lambda Expression) ==(매개변수, https://docs.microsoft..) => 식<syntaxhighlight lang="c#">class Program{ delegate int Calc(int a, int b); public static void Main(string [] args) { Calc c = (a, b) => a +b; int sum = c(1,1); }}com/ko-kr/dotnet/csharp/
== C# concepts ==
</syntaxhighlight>== How-to C# articles ==
=== Func ===<syntaxhighlight lang="c#">Func<int> func = The .NET Compiler Platform SDK(Roslyn APIs) => 10; // 10을 반환int ten = func();
Func<int, int> square = (x) => x*x;Cosole.Write(square(10)); // 100출력</syntaxhighlight>C# programming guide ==
=== Action Overview ===<syntaxhighlight lang="c#">Action hello = () => Console.WriteLine("Hello");
hell();</syntaxhighlight><syntaxhighlight lang="== Inside a c#">Action<int, int> showSum program = (x, y) => { int sum = x + y; Console.Write(sum);}showSum(1, 2);</syntaxhighlight>
=== Main() and command-line arguments === === Programming concepts === ==== Overview ==== ==== Asynchronous programming ==== ==== Attributes ==== ==== Collections ==== ====[[Covariance and contravariance]](공변성과 반공변성) ==== ==== [[Expression trees]] ==== ==== Interators ==== ==== Languae-Intergrated Query(LINQ) ==== ==== Reflection ==== ==== Serialization ==== === statements, expressions, and operators === === Types === === Class and Structs === === Interface === ===[[Delegates]]=== === Arrays === === Strings === === Indexers === === Events === ==== 개요 ==== ==== [[이벤트를 구독 및 구독취소하는 방법]] ====[[.NET 지침을 따르는 이벤트를 게시하는 방법]] ===Generics=== ==== [[Overview(Generic)|Overview]] ==== ==== [[Generic Type Parameters]] ==== === [[Constraints on type parameters]] === ==== Generic Classes ==== ==== Generic Interfaces ==== ==== Generic Methods ==== ==== Generics And Arrays ==== ==== Generic Delegates ==== ==== Differences Between C++ Templates and C# Generics ==== ==== Generics in the Run Time ==== ==== Generics and Reflection ==== ==== Generics and Attributes ==== === Namespaces === === Unsafe Code and Pointers === === XML documentation comments === === Exceptions and Exception Handling === === File System and the Registry === === Interoperability === == Language reference == ===[[Overview(Language reference)|Overview]]=== === Configure language version === === Types === ==== Value types(값 형식) ==== ==== Reference types ==== ==== void ==== ==== var ==== ==== Built-in types ==== ==== Unmanaged types ==== ==== Default value ==== === Keywords === ==== Overview ==== ==== Modifiers ==== ==== Statement Keywords ==== ==== Method Parameters ==== ==== Namespace Keywords ==== ==== Type-testing Keywords ==== ==== Generic Type Constraint Keywords ==== ==== Access Keywords ==== ==== Literal Keywords ==== ==== Contextual Keywords ==== ==== Query Keywords ==== === Operators and expressions === ==== Overview ==== ==== Arithmetic operators ==== ==== Boolean logical operators ==== ==== Bitwise and shift operators ==== ==== Equality operators ==== ==== Comparison operators ==== ==== Member access operator and expressions ==== ====[[Type-testing operators and cast expressions]]==== ==== User-defined conversion operators ==== ==== Pointer-related operators ==== ==== Assignment operators ==== ====[[Lambda expressions]]==== ==== + and += operators ==== ==== - and -= operators ==== ==== ?: operators ==== ==== !(null-forgiving) operator ==== ==== ?? and ??= operators ==== ==== => operators ==== ==== :: operator ==== ==== await operator ==== ==== default value expressions ==== ==== delegate operator ==== ==== nameof expression ==== ==== new operator ==== ==== sizeof operator ==== ==== stackalloc expression ==== ==== switch expression ==== ==== true and false operators ==== ==== with expression ==== ==== Operator overloading ==== === Special characters === === Attributes read by the compiler === === Preprocessor directives === === Compiler options === === Compiler errors === === C# 6.0 draft specification === === C# 7.0-9.0 proposals ===   <br />===== 단순 형식 ===== ===== 열거형 형식 ===== ===== 구조체 형식 ===== ===== Nullable 값 형식 =====null을 허용하지 않는 형식을 T라고 한다면, 이에 대응되는 nullalbe형식 T?가 있다. string?은 string 또는 null값을 보유할 수 있는 형식이다. ===== 튜블 값 형식 ===== ==== 참조 형식 ==== ===== 클래스 형식 ===== ====== string(UTF-16) ====== ===== 인터페이스 형식 ===== ===== 배열 형식 ===== ===== 대리자 형식(delegate) =====<br /> === 한정자 === ==== internal ====동일한 어셈블리의 파일 내에서만 액세스할 수 있습니다. === 콜렉션 ===가변크기 컨테이너, Vector, ArrayList, LinkedList, HashSet, Stack, HashMap<key, value> ==== IEnumerable ====foreach, 임의접근이 가능, 내부적으로 Enumerator를 가지고 있다. ==== IEnumerator ====순차접근 가능(MoveNext()), 접근위치를 내부적으로 가지고 있다. === LINQ(Language Integrated Query) ===var value = from 변수명 익명변수명 in ~
where ...
select 변수명추출할_항목=== 라이브러리 === ====[[CommandLineParser]]====[[분류:.net]]
편집
2,431