示例#1
0
        public void RemoveMessageElement(OutboxMessage elem)
        {
            if (NestedElements == null && NestedElements?.Count == 0)
            {
                return;
            }

            if (NestedElements.Contains(elem))
            {
                NestedElements.Remove(elem);
            }
        }
示例#2
0
        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));
        }