Beispiel #1
0
 /// <inheritdoc />
 public bool Equals(BinaryAttachment other)
 {
     return(other != null &&
            Name == other.Name &&
            ContentType == other.ContentType &&
            GenericCollectionUtils.ElementsEqual(bytes, other.bytes));
 }
 public override bool Equals(object obj)
 {
     // Note: We must also compare generic arguments to determine exact method equality.
     return(base.Equals(obj) &&
            GenericCollectionUtils.ElementsEqual(GenericArguments, ((NativeMethodWrapper)obj).GenericArguments));
 }
Beispiel #3
0
 /// <inheritdoc />
 public bool Equals(SectionTag other)
 {
     return(other != null &&
            name == other.name &&
            GenericCollectionUtils.ElementsEqual(Contents, other.Contents));
 }
Beispiel #4
0
 /// <inheritdoc />
 public bool Equals(StructuredText other)
 {
     return(other != null &&
            GenericCollectionUtils.ElementsEqual(attachments, other.attachments) &&
            bodyTag.Equals(other.bodyTag));
 }
Beispiel #5
0
 /// <inheritdoc />
 public bool Equals(MarkerTag other)
 {
     return(other != null &&
            Marker == other.Marker &&
            GenericCollectionUtils.ElementsEqual(Contents, other.Contents));
 }
Beispiel #6
0
 /// <inheritdoc />
 public bool Equals(BodyTag other)
 {
     return(other != null &&
            GenericCollectionUtils.ElementsEqual(Contents, other.Contents));
 }