📄 operand.cs
字号:
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
namespace syn
{
public class Operand
{
//private double _operand;
private string _operand;
public Operand(string word)
{
_operand = word;
//TypeConverter converter = TypeDescriptor.GetConverter(this._operand);
//this._operand = (double)converter.ConvertFromString(word);
}
//判断是否是操作数
public static bool IsOperand(char ch)
{
if (char.IsLetterOrDigit(ch) || ch == '.' || ch =='_')
return true;
else
return false;
}
public override string ToString()
{
return this._operand.ToString();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -