"CSharp"의 두 판 사이의 차이
(→람다식(Lambda Expression)) |
(→Events) |
||
(같은 사용자의 중간 판 24개는 보이지 않습니다) | |||
1번째 줄: | 1번째 줄: | ||
− | + | https://docs.microsoft.com/ko-kr/dotnet/csharp/ | |
− | === | + | == C# concepts == |
− | + | ||
+ | == How-to C# articles == | ||
+ | |||
+ | == The .NET Compiler Platform SDK(Roslyn APIs) == | ||
+ | |||
+ | == C# programming guide == | ||
+ | |||
+ | === Overview === | ||
+ | |||
+ | === Inside a c# program === | ||
+ | |||
+ | === 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) == | + | === LINQ(Language Integrated Query) === |
var value = from 익명변수명 in ~ | var value = from 익명변수명 in ~ | ||
69번째 줄: | 268번째 줄: | ||
select 추출할_항목; | select 추출할_항목; | ||
− | == 라이브러리 == | + | === 라이브러리 === |
− | ===[[CommandLineParser]]=== | + | ====[[CommandLineParser]]==== |
+ | [[분류:.net]] |
2023년 4월 7일 (금) 00:42 기준 최신판
https://docs.microsoft.com/ko-kr/dotnet/csharp/
목차
- 1 C# concepts
- 2 How-to C# articles
- 3 The .NET Compiler Platform SDK(Roslyn APIs)
- 4 C# programming guide
- 4.1 Overview
- 4.2 Inside a c# program
- 4.3 Main() and command-line arguments
- 4.4 Programming concepts
- 4.5 statements, expressions, and operators
- 4.6 Types
- 4.7 Class and Structs
- 4.8 Interface
- 4.9 Delegates
- 4.10 Arrays
- 4.11 Strings
- 4.12 Indexers
- 4.13 Events
- 4.14 Generics
- 4.15 Constraints on type parameters
- 4.16 Namespaces
- 4.17 Unsafe Code and Pointers
- 4.18 XML documentation comments
- 4.19 Exceptions and Exception Handling
- 4.20 File System and the Registry
- 4.21 Interoperability
- 5 Language reference
- 5.1 Overview
- 5.2 Configure language version
- 5.3 Types
- 5.4 Keywords
- 5.5 Operators and expressions
- 5.5.1 Overview
- 5.5.2 Arithmetic operators
- 5.5.3 Boolean logical operators
- 5.5.4 Bitwise and shift operators
- 5.5.5 Equality operators
- 5.5.6 Comparison operators
- 5.5.7 Member access operator and expressions
- 5.5.8 Type-testing operators and cast expressions
- 5.5.9 User-defined conversion operators
- 5.5.10 Pointer-related operators
- 5.5.11 Assignment operators
- 5.5.12 Lambda expressions
- 5.5.13 + and += operators
- 5.5.14 - and -= operators
- 5.5.15 ?: operators
- 5.5.16 !(null-forgiving) operator
- 5.5.17 ?? and ??= operators
- 5.5.18 => operators
- 5.5.19 :: operator
- 5.5.20 await operator
- 5.5.21 default value expressions
- 5.5.22 delegate operator
- 5.5.23 nameof expression
- 5.5.24 new operator
- 5.5.25 sizeof operator
- 5.5.26 stackalloc expression
- 5.5.27 switch expression
- 5.5.28 true and false operators
- 5.5.29 with expression
- 5.5.30 Operator overloading
- 5.6 Special characters
- 5.7 Attributes read by the compiler
- 5.8 Preprocessor directives
- 5.9 Compiler options
- 5.10 Compiler errors
- 5.11 C# 6.0 draft specification
- 5.12 C# 7.0-9.0 proposals
- 5.13 한정자
- 5.14 콜렉션
- 5.15 LINQ(Language Integrated Query)
- 5.16 라이브러리
C# concepts[편집 | 원본 편집]
How-to C# articles[편집 | 원본 편집]
The .NET Compiler Platform SDK(Roslyn APIs)[편집 | 원본 편집]
C# programming guide[편집 | 원본 편집]
Overview[편집 | 원본 편집]
Inside a c# program[편집 | 원본 편집]
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[편집 | 원본 편집]
개요[편집 | 원본 편집]
이벤트를 구독 및 구독취소하는 방법[편집 | 원본 편집]
Generics[편집 | 원본 편집]
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[편집 | 원본 편집]
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[편집 | 원본 편집]
[편집 | 원본 편집]
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[편집 | 원본 편집]
단순 형식[편집 | 원본 편집]
열거형 형식[편집 | 원본 편집]
구조체 형식[편집 | 원본 편집]
Nullable 값 형식[편집 | 원본 편집]
null을 허용하지 않는 형식을 T라고 한다면, 이에 대응되는 nullalbe형식 T?가 있다. string?은 string 또는 null값을 보유할 수 있는 형식이다.
튜블 값 형식[편집 | 원본 편집]
참조 형식[편집 | 원본 편집]
클래스 형식[편집 | 원본 편집]
string(UTF-16)[편집 | 원본 편집]
인터페이스 형식[편집 | 원본 편집]
배열 형식[편집 | 원본 편집]
대리자 형식(delegate)[편집 | 원본 편집]
한정자[편집 | 원본 편집]
internal[편집 | 원본 편집]
동일한 어셈블리의 파일 내에서만 액세스할 수 있습니다.
콜렉션[편집 | 원본 편집]
가변크기 컨테이너, Vector, ArrayList, LinkedList, HashSet, Stack, HashMap<key, value>
IEnumerable[편집 | 원본 편집]
foreach, 임의접근이 가능, 내부적으로 Enumerator를 가지고 있다.
IEnumerator[편집 | 원본 편집]
순차접근 가능(MoveNext()), 접근위치를 내부적으로 가지고 있다.
LINQ(Language Integrated Query)[편집 | 원본 편집]
var value = from 익명변수명 in ~
where ...
select 추출할_항목;