DominioSKD.Telefono.CheckLength C# (CSharp) Method

CheckLength() private method

Cheqea el largo del string
/// Si el valor no tiene el largo pasado en el atributo length ///
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.");
        }