public static void AssertNotNull <TValue>(Expression <Func <TValue> > expression, string message = null) { var metadata = MetadataFactory.MetadataFrom(expression); if (metadata.Value == null) { throw ExceptionNotNull(metadata.Value, metadata.Name, message); } }
public static Metadata <TValue> Assert <TValue>(Expression <Func <TValue> > expression) { var metadata = MetadataFactory.MetadataFrom(expression); if (metadata.Value == null) { throw ExceptionNotNull(metadata.Value, metadata.Name); } return(metadata); }
public static Metadata <TValue> Assert <TValue>(Expression <Func <TValue> > expression) { return(MetadataFactory.MetadataFrom(expression)); }
public static Metadata <float> Assert(Expression <Func <float> > expression, string name = null) => MetadataFactory.MetadataFrom(expression);