Ejemplo n.º 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));
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
 protected bool Equals(InstanceIdentifier other)
 {
     return(PartitionId.Equals(other.PartitionId) && InstanceId == other.InstanceId);
 }