//Comparison Methods public bool LargerOrEqualThan(ExposureTypeCollection other, bool IsLocCvg = false) { if (IsLocCvg) { return(this.collection.First() == other.collection.First()); } return(other.All(expType => this.collection.Contains(expType) || this.collection.Contains(ExposureTypeCollection.GetMappedType(expType)))); }
public bool LargerThan(ExposureTypeCollection other, bool IsLocCvg = false) { if (IsLocCvg) { return(false); } return(other.All(expType => this.collection.Contains(expType) || this.collection.Contains(ExposureTypeCollection.GetMappedType(expType))) && !this.Equals(other)); }
//Override IEquatable public bool Equals(ExposureTypeCollection other) { if (other == null) { return(false); } if (this.collection.SetEquals(other.collection)) { return(true); } else { return(false); } }
public override bool Equals(Object obj) { if (obj == null) { return(false); } ExposureTypeCollection expColObj = obj as ExposureTypeCollection; if (expColObj == null) { return(false); } else { return(Equals(expColObj)); } }