public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            if (GetHashCode() == obj.GetHashCode())
            {
                MemberProjection that = (MemberProjection)obj;
                if (
                    Name == that.Name &&
                    MemberOf == that.MemberOf &&
                    MemberType == that.MemberType &&
                    IsPublic == that.IsPublic &&
                    ReturnType == that.ReturnType &&
                    ArgumentCount == that.ArgumentCount &&
                    ArgumentNames.SequenceEqual(that.ArgumentNames)
                    )
                {
                    return(true);
                }
            }

            return(false);
        }
Beispiel #2
0
 private void ConsumeMemberProjection(MemberProjection mp)
 {
     _prototype.AddMember(mp);
 }