public void Initialize(TrailerAccessCondition access) { KeyARead = access.KeyARead; KeyAWrite = access.KeyAWrite; KeyBRead = access.KeyBRead; KeyBWrite = access.KeyBWrite; AccessBitsRead = access.AccessBitsRead; AccessBitsWrite = access.AccessBitsWrite; }
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)); }