You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[Attributes on local functions](AttributesOnLocalFunctions/Program.cs)|Adds conditional compilation support to local functions via `Conditional` attributes. Also defines a custom return value attribute and retrieves its metadata at runtime using reflection.|
74
+
|[Local functions](LocalFunctionsCsharp7/Program.cs)|An example that improves encapsulation and readability using local functions. Functions defined within `Main` remain inaccessible from outside, preserving control and context. Calculations are managed within the local scope.|
75
+
|[Pattern matching](PatternMatching/Program.cs)|Pattern matching is applied to handle logic specific to different financial instrument types using `switch` expressions and tuple-based decision structures. Volatility analysis and price check scenarios are modeled with technical examples.|
76
+
|[Tuple types](TupleTypes/Program.cs)|A comprehensive example on tuple comparison, deconstruction, nesting, and nullable support, along with their use in function parameters and return types. Also includes integration with object initializers.|
77
+
|[Numeric literal syntax improvement](NumericLiteralSyntaxImprovements/Program.cs)|Includes support for digit separators (`_`) and binary literals (`0b`) to improve readability in numeric literals. This syntax enhances code maintainability and accuracy by making large numbers easier to parse.|
78
+
|[Immutable collections](ImmutableCollections/Program.cs)|An example application showing how `IReadOnlyList<T>` and `IReadOnlyDictionary<TKey, TValue>` can be used to define immutable collections and protect them from reinitialization and modification.|
79
+
|[in parameter modifier](InParameterModifier/Program.cs)|A minimal example showing how to use the `in` parameter modifier for read-only passing of reference types and leveraging immutable structures for performance benefits.|
80
+
|[ArrayPool](ArrayPool/Program.cs)|Contains three examples that optimize memory management using ArrayPool<T>: returning arrays to the shared pool with and without clearing, and using a custom cached pool. Suitable for high-performance temporary array allocation.|
81
+
|[MemoryPool](MemoryPool/Program.cs)|Efficiently rents and manages memory using `MemoryPool<T>` and `IMemoryOwner<T>`, enabling low-GC, high-performance scenarios with explicit buffer lifecycle control via `Dispose`.|
82
82
83
83
84
84
### C# 6 is supported on .NET Framework 4.6, .NET Core 1.0-1.1 (July 2015)
0 commit comments