What's New in C# 10: New Possibilities for Validation and Logging Methods

added by DotNetKicks
11/25/2021 7:59:29 AM

359 Views

This is part of a series on the new features introduced with C# 10. From C# 10 we can make use of the [CallerArgumentExpression] attribute. This attribute can be applied to a parameter to get information about another specified parameter in the method. Take the following method as an example: static bool ValidInput(string?


0 comments