fCraft.ConfigKeyAttribute.Validate C# (CSharp) Method

Validate() public method

public Validate ( [ value ) : void
value [
return void
        public virtual void Validate( [NotNull] string value )
        {
            if ( value == null )
                throw new ArgumentNullException( "value" );
            if ( NotBlank && value.Length == 0 ) {
                throw new FormatException( "Value cannot be blank or null." );
            }
        }