Adf.Business.ValueObject.Sofinummer.Sofinummer C# (CSharp) Метод

Sofinummer() публичный Метод

Initializes a new instance of the Sofinummer with the supplied value.
If the social-fiscal number could not be validated, a FormatException exception is thrown.
public Sofinummer ( string newvalue ) : System
newvalue string The value to use.
Результат System
        public Sofinummer(string newvalue)
        {
            value = null;

            if (string.IsNullOrEmpty(newvalue)) return;

            if (!IsValidSofinummer(newvalue)) throw new FormatException("value is not a valid dutch social security number");

            value = newvalue;
        }