/// <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); }
/// <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); }
/// <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); }
/// <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; }