public override bool Corresponds(UnityMember other)
 {
     return
         (other is UnityMethod &&
          base.Corresponds(other) &&
          parameterTypes.SequenceEqual(((UnityMethod)other).parameterTypes));
 }
 public virtual bool Corresponds(UnityMember other)
 {
     return
         ((other != null || !this.isAssigned) &&
          this.target == other.target &&
          this.component == other.component &&
          this.name == other.name);
 }
        public override bool Corresponds(UnityMember other)
        {
            var corresponds = other is UnityGetter && base.Corresponds(other);

            corresponds &= (parameterTypes == null) == (((UnityGetter)other).parameterTypes == null);

            if (parameterTypes != null)
            {
                corresponds &= parameterTypes.SequenceEqual(((UnityGetter)other).parameterTypes);
            }

            return(corresponds);
        }
 public override bool Corresponds(UnityMember other)
 {
     return(other is UnityVariable && base.Corresponds(other));
 }
Example #5
0
 public virtual bool Corresponds(UnityMember other)
 {
     return
         (other != null || !this.isAssigned) &&
         this.target == other.target &&
         this.component == other.component &&
         this.name == other.name;
 }