示例#1
0
 public void Initialize(TrailerAccessCondition access)
 {
     KeyARead        = access.KeyARead;
     KeyAWrite       = access.KeyAWrite;
     KeyBRead        = access.KeyBRead;
     KeyBWrite       = access.KeyBWrite;
     AccessBitsRead  = access.AccessBitsRead;
     AccessBitsWrite = access.AccessBitsWrite;
 }
示例#2
0
        public override bool Equals(object obj)
        {
            TrailerAccessCondition tac = obj as TrailerAccessCondition;

            if (tac == null)
            {
                return(false);
            }

            return((tac.KeyARead == KeyARead) && (tac.KeyAWrite == KeyAWrite) &&
                   (tac.KeyBRead == KeyBRead) && (tac.KeyBWrite == KeyBWrite) &&
                   (tac.AccessBitsRead == AccessBitsRead) && (tac.AccessBitsWrite == AccessBitsWrite));
        }