示例#1
0
        /// <summary>
        /// Is Equal
        /// </summary>
        /// <param name="other">Other</param>
        /// <returns>Return true if is equal</returns>
        public override bool Equals(IStackItem other)
        {
            if (other is IIntegerStackItem b)
            {
                return(b.Value.Equals(Value));
            }

            return(false);
        }
示例#2
0
        /// <summary>
        /// Is Equal
        /// </summary>
        /// <param name="other">Other</param>
        /// <returns>Return true if is equal</returns>
        public override bool Equals(IStackItem other)
        {
            if (other is IByteArrayStackItem b)
            {
                return(b.Value.SequenceEqual(Value));
            }

            return(false);
        }
示例#3
0
        /// <summary>
        /// Is Equal
        /// </summary>
        /// <param name="other">Other</param>
        /// <returns>Return true if is equal</returns>
        public override bool Equals(IStackItem other)
        {
            if (other is IBooleanStackItem b)
            {
                return(b.Value == Value);
            }

            return(false);
        }
示例#4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="messageProvider">Message Provider</param>
 /// <param name="scriptHash">Script hash</param>
 /// <param name="state">State</param>
 public NotifyEventArgs(IMessageProvider messageProvider, byte[] scriptHash, IStackItem state)
 {
     MessageProvider = messageProvider;
     ScriptHash      = scriptHash;
     State           = state;
 }