你的位置: 码友网首页 / 资讯源列表 / C# 8.0 nullable references: getting started in an existing codebase

关于[C# 8.0 nullable references: getting started in an existing codebase]的摘要:

In an earlier post in this series, “non-nullable is the new default”, I described how enabling C# 8.0’s new nullable references feature changes a fundamental element of the language. Variables, properties, parameters, and fields of reference type become non-nullable by default. We’ve been allowed to put nulls into these things for around 2 decades, so this is a dramatic change. In this post I’ll describe various C# 8.0 features that can help ease the transition into a nullable-aware world.

原文地址: https://blogs.endjin.com/2020/05/c-8-0-nullable-references-getting-started-in-an-existing-codebase/

收录时间: 2020-05-07 浏览量: 1623 分类: C#开发

| 0 收藏 | 0