C# Class Web.Generics.UserInterface.Validators.CnpjAttribute

Inheritance: System.ComponentModel.DataAnnotations.ValidationAttribute
Mostrar archivo Open project: inspira/Web.Generics

Public Methods

Method Description
CnpjAttribute ( ) : System
CnpjAttribute ( String messageResourceName ) : System
IsValid ( object value ) : bool
ValidaCNPJ ( string cnpj ) : bool

Method Details

CnpjAttribute() public method

public CnpjAttribute ( ) : System
return System

CnpjAttribute() public method

public CnpjAttribute ( String messageResourceName ) : System
messageResourceName String
return System

IsValid() public method

public IsValid ( object value ) : bool
value object
return bool

ValidaCNPJ() public static method

public static ValidaCNPJ ( string cnpj ) : bool
cnpj string
return bool