"CSharp"의 두 판 사이의 차이
(→Type-testing operators and cast expressions) |
(→Covariance and contravariance) |
||
25번째 줄: | 25번째 줄: | ||
==== Collections ==== | ==== Collections ==== | ||
− | ==== Covariance and contravariance ==== | + | ====[[Covariance and contravariance]](공변성과 반공변성) ==== |
==== [[Expression trees]] ==== | ==== [[Expression trees]] ==== |
2021년 5월 25일 (화) 23:52 판
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 추출할_항목;