private CheckLength ( String value, int length ) : void | ||
value | String | String a chequear |
length | int | Largo que deberia de tener el string |
return | void |
private void CheckLength(String value, int length)
{
if (value.Length != length)
throw new InformacionPersonalInvalidaException("La información de Telefono no tiene el tamaño de un número telefónico.");
}