Example #1
0
 public bool Equals(PartitionInfoEx other)
 {
     return(other != null &&
            PartitionId.Equals(other.PartitionId) &&
            PartitionDbId.Equals(other.PartitionDbId) &&
            EqualityComparer <IEnumerable <string> > .Default.Equals(DriveLetters, other.DriveLetters) &&
            PartitionFileSystem == other.PartitionFileSystem &&
            EqualityComparer <IList <Exception> > .Default.Equals(Exceptions, other.Exceptions) &&
            EqualityComparer <long?> .Default.Equals(Size, other.Size));
 }
Example #2
0
        public bool Equals(
            EnumPartitionedTestValue other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(PartitionId.Equals(other.PartitionId) && AccountId.Equals(other.AccountId) && Message == other.Message);
        }
Example #3
0
 protected bool Equals(InstanceIdentifier other)
 {
     return(PartitionId.Equals(other.PartitionId) && InstanceId == other.InstanceId);
 }