public void RemoveMessageElement(OutboxMessage elem) { if (NestedElements == null && NestedElements?.Count == 0) { return; } if (NestedElements.Contains(elem)) { NestedElements.Remove(elem); } }
public bool Equals(MyType other) { if (ReferenceEquals(other, this)) { return(true); } return(other != null && Name == other.Name && Attributes.SequenceEqual(other.Attributes) && GenericTypeArguments.SequenceEqual(other.GenericTypeArguments) && TypeKind == other.TypeKind && NestedElements.SequenceEqual(other.NestedElements)); }