System.Reflection.Requires.NotNull C# (CSharp) Method

NotNull() static private method

static private NotNull ( object obj, string name ) : void
obj object
name string
return void
        internal static void NotNull(object obj, string name)
        {
            if (obj == null)
            {
                throw new ArgumentNullException(name);
            }
        }
    }

Usage Example

Esempio n. 1
0
 public static FieldInfo[] GetFields(
     [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicFields)] this Type type)
 {
     Requires.NotNull(type, nameof(type));
     return(type.GetFields());
 }
All Usage Examples Of System.Reflection.Requires::NotNull
Requires