• Api Documentation
Show / Hide Table of Contents
  • Ubiquity.NET.ArgValidators
    • ValidatedNotNullAttribute
    • Validators
      • ValidateDefined
      • ValidateLength
      • ValidateNotDefault
      • ValidateNotNull
      • ValidateNotNullOrWhiteSpace
      • ValidatePattern
      • ValidateRange

Ubiquity.Argvalidators

This namespace provides a set of common validators for method arguments to keep code simpler and more readable.

Examples

using namespace Ubiquity.ArgValidators
//...
public static object Load( string path, object foo, int bar )
{
    path.ValidateNotNullOrWhiteSpace( nameof( path ) );
    foo.ValidateNotNull( nameof( foo ) );
    bar.ValidateRange(3, 5, nameof( bar ) );

    //...
}
Back to top Copyright (C) 2017-2021, Ubiquity.NET Contributors
Build: 7.0.0