39 instantiations of CallerArgumentExpressionAttribute
Microsoft.Extensions.Diagnostics.ResourceMonitoring (39)
src\Shared\Throw\Throw.cs (39)
40public static T IfNull<T>([NotNull] T argument, [CallerArgumentExpression(nameof(argument))] string paramName = "") 71[CallerArgumentExpression(nameof(argument))] string paramName = "", 72[CallerArgumentExpression(nameof(member))] string memberName = "") 108[CallerArgumentExpression(nameof(argument))] string paramName = "", 109[CallerArgumentExpression(nameof(member))] string memberName = "") 133public static string IfNullOrWhitespace([NotNull] string? argument, [CallerArgumentExpression(nameof(argument))] string paramName = "") 166public static string IfNullOrEmpty([NotNull] string? argument, [CallerArgumentExpression(nameof(argument))] string paramName = "") 221public static T IfOutOfRange<T>(T argument, [CallerArgumentExpression(nameof(argument))] string paramName = "") 256public static IEnumerable<T> IfNullOrEmpty<T>([NotNull] IEnumerable<T>? argument, [CallerArgumentExpression(nameof(argument))] string paramName = "") 423public static int IfLessThan(int argument, int min, [CallerArgumentExpression(nameof(argument))] string paramName = "") 441public static int IfGreaterThan(int argument, int max, [CallerArgumentExpression(nameof(argument))] string paramName = "") 459public static int IfLessThanOrEqual(int argument, int min, [CallerArgumentExpression(nameof(argument))] string paramName = "") 477public static int IfGreaterThanOrEqual(int argument, int max, [CallerArgumentExpression(nameof(argument))] string paramName = "") 496public static int IfOutOfRange(int argument, int min, int max, [CallerArgumentExpression(nameof(argument))] string paramName = "") 513public static int IfZero(int argument, [CallerArgumentExpression(nameof(argument))] string paramName = "") 535public static uint IfLessThan(uint argument, uint min, [CallerArgumentExpression(nameof(argument))] string paramName = "") 553public static uint IfGreaterThan(uint argument, uint max, [CallerArgumentExpression(nameof(argument))] string paramName = "") 571public static uint IfLessThanOrEqual(uint argument, uint min, [CallerArgumentExpression(nameof(argument))] string paramName = "") 589public static uint IfGreaterThanOrEqual(uint argument, uint max, [CallerArgumentExpression(nameof(argument))] string paramName = "") 608public static uint IfOutOfRange(uint argument, uint min, uint max, [CallerArgumentExpression(nameof(argument))] string paramName = "") 625public static uint IfZero(uint argument, [CallerArgumentExpression(nameof(argument))] string paramName = "") 647public static long IfLessThan(long argument, long min, [CallerArgumentExpression(nameof(argument))] string paramName = "") 665public static long IfGreaterThan(long argument, long max, [CallerArgumentExpression(nameof(argument))] string paramName = "") 683public static long IfLessThanOrEqual(long argument, long min, [CallerArgumentExpression(nameof(argument))] string paramName = "") 701public static long IfGreaterThanOrEqual(long argument, long max, [CallerArgumentExpression(nameof(argument))] string paramName = "") 720public static long IfOutOfRange(long argument, long min, long max, [CallerArgumentExpression(nameof(argument))] string paramName = "") 737public static long IfZero(long argument, [CallerArgumentExpression(nameof(argument))] string paramName = "") 759public static ulong IfLessThan(ulong argument, ulong min, [CallerArgumentExpression(nameof(argument))] string paramName = "") 777public static ulong IfGreaterThan(ulong argument, ulong max, [CallerArgumentExpression(nameof(argument))] string paramName = "") 795public static ulong IfLessThanOrEqual(ulong argument, ulong min, [CallerArgumentExpression(nameof(argument))] string paramName = "") 813public static ulong IfGreaterThanOrEqual(ulong argument, ulong max, [CallerArgumentExpression(nameof(argument))] string paramName = "") 832public static ulong IfOutOfRange(ulong argument, ulong min, ulong max, [CallerArgumentExpression(nameof(argument))] string paramName = "") 849public static ulong IfZero(ulong argument, [CallerArgumentExpression(nameof(argument))] string paramName = "") 871public static double IfLessThan(double argument, double min, [CallerArgumentExpression(nameof(argument))] string paramName = "") 892public static double IfGreaterThan(double argument, double max, [CallerArgumentExpression(nameof(argument))] string paramName = "") 913public static double IfLessThanOrEqual(double argument, double min, [CallerArgumentExpression(nameof(argument))] string paramName = "") 934public static double IfGreaterThanOrEqual(double argument, double max, [CallerArgumentExpression(nameof(argument))] string paramName = "") 956public static double IfOutOfRange(double argument, double min, double max, [CallerArgumentExpression(nameof(argument))] string paramName = "") 974public static double IfZero(double argument, [CallerArgumentExpression(nameof(argument))] string paramName = "")
1 reference to CallerArgumentExpressionAttribute
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
src\LegacySupport\CallerAttributes\CallerArgumentExpressionAttribute.cs (1)
20/// Initializes a new instance of the <see cref="CallerArgumentExpressionAttribute"/> class.