ATMLModelLibrary.model.Resolution.Validate C# (CSharp) Method

Validate() public method

public Validate ( ) : void
return void
        public void Validate()
        {
            Regex regex = new Regex(PATTERN);
            if (!regex.Match(ToString()).Success)
                throw new Exception(string.Format("Invalid Resolution - {0}", ToString()));
        }