文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Readme - Code Samples for Chapter 3, Objects and Types

This chapter contains the following code samples:

  • ClassesSample (members of classes)
  • 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 one of these tools:

  • Visual Studio 2017 Update 5 with the .NET Core workload
  • Visual Studio for Mac
  • Visual Studio Code

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!

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化