This chapter contains the following code samples:
- MathSample (declare a type with methods and properties, use the type)
- MethodSample (instance and static methods)
- StaticConstructorSample (declaring a static constructor)
- StructsSample (using the strict keyword)
- PassingByValueAndByReference (compare pass by value and pass by reference)
- OutKeywordSample (using the out keyword to receive data from a method)
- EnumSample (using the enum keyword)
- ExtensionMethods (declaring and using extension methods)
To build and run the .NET Core samples, please install
- Visual Studio 2017 with the .NET Core workload
Please download and install the tools from .NET Core downloads.
For code comments and issues please check Professional C#'s GitHub Repository
Please check my blog csharp.christiannagel.com for additional information for topics covered in the book.
Thank you!