Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / C#

Knowledge base — C#

Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.

Entries: 443

C#

Comparison<T> — a delegate defining sort order

Comparison<T> in System describes a function comparing two values of type T. It returns an int whose sign determines their order; this delegate can be passed to List<T>.Sort.

Basic · .NET 10; repository net10.0 and LangVersion=preview; feature versions require per-entry verification
C#

System.Console: practical reference

System.Console: practical reference: Console exposes the process standard input, output, and error streams together with text-oriented operations.

Basic · .NET API; verified on .NET 10.0.14
C#

System.Convert: practical reference

System.Convert: practical reference: Convert performs defined conversions between types and representations, often through IConvertible.

Basic · .NET API; verified on .NET 10.0.14
C#

System.DateOnly: practical reference

System.DateOnly: practical reference: DateOnly represents a calendar date without a time of day or time zone.

Basic · .NET API; verified on .NET 10.0.14
C#

System.DateTime: practical reference

System.DateTime: practical reference: DateTime combines a date and clock time with a Kind of Utc, Local, or Unspecified.

Basic · .NET API; verified on .NET 10.0.14
C#

System.DateTimeOffset: practical reference

System.DateTimeOffset: practical reference: DateTimeOffset combines a clock reading with an offset and therefore identifies one unambiguous instant.

Basic · .NET API; verified on .NET 10.0.14
C#

System.Diagnostics.Stopwatch: practical reference

System.Diagnostics.Stopwatch: practical reference: Stopwatch measures elapsed intervals at Stopwatch.Frequency; when Stopwatch.IsHighResolution is true it uses a high-resolution hardware or operating-system counter, otherwise it uses the system timer.

Basic · .NET API; verified on .NET 10.0.14
C#

System.Enum: practical reference

System.Enum: practical reference: Enum provides operations for named integral constants and their metadata.

Basic · .NET API; verified on .NET 10.0.14
C#

System.Exception: practical reference

System.Exception: practical reference: Exception is the base of managed failures and carries Message, StackTrace, and an optional InnerException.

Basic · .NET API; verified on .NET 10.0.14
C#

System.FormatException: practical reference

System.FormatException: practical reference: FormatException reports text that does not conform to the syntax expected by a parser or formatter.

Basic · .NET API; verified on .NET 10.0.14
C#

System.Func — delegates that return a value

System.Func is a family of generic delegates representing operations that return a value. It lets you store and pass methods or lambdas without defining a custom delegate type.

Basic · .NET 10; repository net10.0 and LangVersion=preview; feature versions require per-entry verification
C#

CultureInfo — culture for formatting and parsing

System.Globalization.CultureInfo describes cultural rules used for tasks such as formatting and parsing numbers and dates. Passing a culture explicitly separates user-facing presentation from stable textual data storage.

Basic · .NET 10; repository net10.0 and LangVersion=preview; feature versions require per-entry verification
C#

System.Guid: practical reference

System.Guid: practical reference: Guid is a 128-bit identifier with several defined textual representations.

Basic · .NET API; verified on .NET 10.0.14
C#

System.IAsyncDisposable: practical reference

System.IAsyncDisposable: practical reference: IAsyncDisposable releases a resource through the ValueTask returned by DisposeAsync and the await using pattern.

Basic · .NET API; verified on .NET 10.0.14
C#

System.IEquatable<T> — strongly typed equality

System.IEquatable<T> defines Equals(T), an equality comparison with a strongly typed argument. A consistent implementation also covers Equals(object), GetHashCode(), and the == and != operators so that a custom type behaves predictably in collections.

Intermediate · .NET 10; repository net10.0 and LangVersion=preview; feature versions require per-entry verification
C#

System.IO.Directory: practical reference

System.IO.Directory: practical reference: Directory creates, enumerates, moves, and deletes file-system directories.

Basic · .NET API; verified on .NET 10.0.14
C#

System.IO.File: practical reference

System.IO.File: practical reference: File provides convenient whole-file operations and methods for opening streams.

Basic · .NET API; verified on .NET 10.0.14
C#

System.IO.Path: practical reference

System.IO.Path: practical reference: Path manipulates path syntax without accessing the file system.

Basic · .NET API; verified on .NET 10.0.14