コード例 #1
0
        public static RSTrigger operator |(RSTrigger x, RSTrigger y)
        {
            RSTrigger result = new RSTrigger
            {
                RInput = x.RInput | x.SInput
            };

            return(result);
        }
コード例 #2
0
        public override bool Equals(object obj)
        {
            RSTrigger o = (RSTrigger)obj;

            if (Identificator == o.Identificator && ((RInput && o.RInput) || (SInput && o.SInput)))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
コード例 #3
0
        public RSTrigger DeepCopy()
        {
            RSTrigger result = new RSTrigger(this.Identificator, this.RInput, this.SInput);

            return(result);
        }