Ejemplo n.º 1
0
 public bool Equals(ColumnData other)
 {
     if (ReferenceEquals(other, null))
     {
         return(false);
     }
     if (ReferenceEquals(other, this))
     {
         return(true);
     }
     if (!Ranges.Equals(other.Ranges))
     {
         return(false);
     }
     if (!object.Equals(Values, other.Values))
     {
         return(false);
     }
     if (!definitions_.Equals(other.definitions_))
     {
         return(false);
     }
     return(Equals(_unknownFields, other._unknownFields));
 }
Ejemplo n.º 2
0
        public bool Equals(IGLPipelineLayout other)
        {
            if (other == null)
            {
                return(false);
            }

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

            if (NoOfBindingPoints != other.NoOfBindingPoints)
            {
                return(false);
            }

            if (NoOfExpectedDynamicOffsets != other.NoOfExpectedDynamicOffsets)
            {
                return(false);
            }

            if (NoOfStorageBuffers != other.NoOfStorageBuffers)
            {
                return(false);
            }

            if (Bindings != null && other.Bindings == null)
            {
                return(false);
            }

            if (Bindings == null && other.Bindings != null)
            {
                return(false);
            }

            if (OffsetDestinations != null && other.OffsetDestinations == null)
            {
                return(false);
            }

            if (OffsetDestinations == null && other.OffsetDestinations != null)
            {
                return(false);
            }

            if (Ranges != null && other.Ranges == null)
            {
                return(false);
            }

            if (Ranges == null && other.Ranges != null)
            {
                return(false);
            }

            if (Bindings.Length != other.Bindings.Length)
            {
                return(false);
            }

            {
                var count = Bindings.Length;
                for (var i = 0; i < count; i += 1)
                {
                    var left  = Bindings[i];
                    var right = other.Bindings[i];

                    if (!left.Equals(right))
                    {
                        return(false);
                    }
                }
            }

            if (OffsetDestinations.Length != other.OffsetDestinations.Length)
            {
                return(false);
            }

            {
                var count = OffsetDestinations.Length;
                for (var i = 0; i < count; i += 1)
                {
                    var left  = OffsetDestinations[i];
                    var right = other.OffsetDestinations[i];

                    if (!left.Equals(right))
                    {
                        return(false);
                    }
                }
            }

            if (Ranges.Count != other.Ranges.Count)
            {
                return(false);
            }

            return(Ranges.Equals(other.Ranges));
        }