You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Argument name:
The following pattern is a litter verbose:
publicsealedclassFoo{//For EVERY call we need to add namof ...publicFoo(Barbar)=>MyBar=Arguments.NotNull(bar,nameof(bar));publicBarMyBar{get;}}
Reduce Compiler Warnings:
Do use [return: NotNull] and [NotNull] for methods return and parameters respectively.
publicstaticclassArguments{[DebuggerStepThrough][return:NotNull]//Add this attribute for every method to tell the compiler that returned values wont be null. publicstaticTParamTypeOrException<TParamType>(//Add NotNull to all parameters to declare that will be not-null if the method returns[NotNull]TParamType?value, ...}
Describe the solution you'd like
Do add the described Attributes to all public methods corresponding parameters.
Describe alternatives you've considered
None.
Additional context
Take advantage of .NET 6 new features.
The text was updated successfully, but these errors were encountered:
1. Remove deprecated methods
2. Rename multiple methods
3. Split methods with optional messages (overloads) in two
with more explicit names.
BREAKING CHANGE: Remove deprecated methods from Arguments
Is your feature request related to a problem? Please describe.
Argument name:
The following pattern is a litter verbose:
Reduce Compiler Warnings:
Do use
[return: NotNull]
and[NotNull]
for methods return and parameters respectively.Describe the solution you'd like
Do add the described Attributes to all public methods corresponding parameters.
Describe alternatives you've considered
None.
Additional context
Take advantage of .NET 6 new features.
The text was updated successfully, but these errors were encountered: