你的位置: 码友网首页 / 资讯源列表 / [CallerArgumentExpression] and throw helpers: Exploring .NET Core 6 - Part 11

关于[[CallerArgumentExpression] and throw helpers: Exploring .NET Core 6 - Part 11]的摘要:

In this post I describe a new feature in C# 10, the [CallerArgumentExpression] attribute, how it can be used to create "throw helpers", and the addition of a throw helper to ArgumentNullException.

原文地址: https://andrewlock.net/exploring-dotnet-6-part-11-callerargumentexpression-and-throw-helpers/

收录时间: 2021-11-24 浏览量: 1069 分类: .NET Core

| 1 收藏 | 0