39 instantiations of CallerArgumentExpressionAttribute
Microsoft.Extensions.Diagnostics.ResourceMonitoring (39)
src\Shared\Throw\Throw.cs (39)
40
public 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 = "")
133
public static string IfNullOrWhitespace([NotNull] string? argument, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
166
public static string IfNullOrEmpty([NotNull] string? argument, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
221
public static T IfOutOfRange<T>(T argument, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
256
public static IEnumerable<T> IfNullOrEmpty<T>([NotNull] IEnumerable<T>? argument, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
423
public static int IfLessThan(int argument, int min, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
441
public static int IfGreaterThan(int argument, int max, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
459
public static int IfLessThanOrEqual(int argument, int min, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
477
public static int IfGreaterThanOrEqual(int argument, int max, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
496
public static int IfOutOfRange(int argument, int min, int max, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
513
public static int IfZero(int argument, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
535
public static uint IfLessThan(uint argument, uint min, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
553
public static uint IfGreaterThan(uint argument, uint max, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
571
public static uint IfLessThanOrEqual(uint argument, uint min, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
589
public static uint IfGreaterThanOrEqual(uint argument, uint max, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
608
public static uint IfOutOfRange(uint argument, uint min, uint max, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
625
public static uint IfZero(uint argument, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
647
public static long IfLessThan(long argument, long min, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
665
public static long IfGreaterThan(long argument, long max, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
683
public static long IfLessThanOrEqual(long argument, long min, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
701
public static long IfGreaterThanOrEqual(long argument, long max, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
720
public static long IfOutOfRange(long argument, long min, long max, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
737
public static long IfZero(long argument, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
759
public static ulong IfLessThan(ulong argument, ulong min, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
777
public static ulong IfGreaterThan(ulong argument, ulong max, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
795
public static ulong IfLessThanOrEqual(ulong argument, ulong min, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
813
public static ulong IfGreaterThanOrEqual(ulong argument, ulong max, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
832
public static ulong IfOutOfRange(ulong argument, ulong min, ulong max, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
849
public static ulong IfZero(ulong argument, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
871
public static double IfLessThan(double argument, double min, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
892
public static double IfGreaterThan(double argument, double max, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
913
public static double IfLessThanOrEqual(double argument, double min, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
934
public static double IfGreaterThanOrEqual(double argument, double max, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
956
public static double IfOutOfRange(double argument, double min, double max, [
CallerArgumentExpression
(nameof(argument))] string paramName = "")
974
public 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.