public void SetBaseType(BaseTypeEnum baseType)
            {
                switch (baseType)
                {
                case BaseTypeEnum.Octal: CodePointDisplay = Convert.ToString(CodePoint, 8); break;

                case BaseTypeEnum.Decimal: CodePointDisplay = CodePoint.ToString(); break;

                case BaseTypeEnum.Hex: CodePointDisplay = Convert.ToString(CodePoint, 16); break;

                default: throw new Exception("Invalid type");
                }
            }
Exemplo n.º 2
0
 public BaseExpression(BaseTypeEnum baseType)
     : base(Expression.TypeEnum.BaseExprType)
 {
     _baseType = baseType;
 }