ATMLModelLibrary.model.Confidence.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 Confidence - {0}", ToString()));
        }