Exemplo n.º 1
0
        /// <summary>
        /// Checks whether the symbol is same
        /// </summary>
        /// <param name="sym">Symbol</param>
        /// <returns>True if same and false otherwise</returns>
        public override bool IsSame(MathSymbol sym)
        {
            if (!(sym is BinarySymbol))
            {
                return(false);
            }
            BinarySymbol ss = sym as BinarySymbol;

            return(symbol == ss.symbol);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="s">Prototype</param>
 public BinarySymbol(BinarySymbol s)
     : base(s)
 {
 }