Пример #1
0
        private Register(RegisterId id)
        {
#if DEBUG
            char c = id.ToString()[0];
            if (c >= '0' && c <= '9')
            {
                throw new ArgumentException(id.ToString() + " is not a valid register.");
            }
#endif
            this.id = id;
        }
Пример #2
0
 public override string ToString()
 {
     return(id.ToString());
 }
Пример #3
0
 private Register(RegisterId id)
 {
     #if DEBUG
     char c = id.ToString()[0];
     if (c >= '0' && c <= '9')
     {
         throw new ArgumentException(id.ToString() + " is not a valid register.");
     }
     #endif
     this.id = id;
 }