C# 7 Series, Part 10: Span<T> and universal memory management

Part 1: Value TuplesPart 2: Async MainPart 3: Default LiteralsPart 4: DiscardsPart 5: Private ProtectedPart 6: Read-only structsPart 7: Ref ReturnsPart 8: “in” ParametersPart 9: ref structsPart 10: (This post) Span<T> and universal memory management Background .NET is a managed platform, that means the memory access and management is safe and automatic. All types are…

0

C# 7 Series, Part 9: ref structs

Part 1: Value TuplesPart 2: Async MainPart 3: Default LiteralsPart 4: DiscardsPart 5: Private ProtectedPart 6: Read-only structsPart 7: Ref ReturnsPart 8: “in” ParametersPart 9: (This post) ref structs Background In the previous posts, I have explained many new C# features, each of the feature is introduced to either enhance the language, or solve issues….

0

C# 7 Series, Part 8: “in” Parameters

C# 7 Series Part 1: Value TuplesPart 2: Async MainPart 3: Default LiteralsPart 4: DiscardsPart 5: Private ProtectedPart 6: Read-only structsPart 7: Ref ReturnsPart 8: (This post) “in” Parameters Background By default, method arguments are passed by value. That is, arguments are copied and passed into the method. Therefore, modification to the argument inside the…

0