コード例 #1
0
ファイル: MemberKeyPart.cs プロジェクト: gitter-badger/Farada
        public bool Equals([CanBeNull] MemberKeyPart other)
        {
            if (!EqualityUtility.ClassEquals(this, other))
            {
                return(false);
            }

            Trace.Assert(other != null);
            return(Member.Name == other.Member.Name && MemberType == other.MemberType);
        }
コード例 #2
0
        public bool Equals([CanBeNull] TypeKey other)
        {
            if (!EqualityUtility.ClassEquals(this, other))
            {
                return(false);
            }

            Trace.Assert(other != null);
            return(_type == other._type);
        }
コード例 #3
0
                public bool Equals([CanBeNull] CustomType other)
                {
                    if (!EqualityUtility.ClassEquals(this, other))
                    {
                        return(false);
                    }

                    Trace.Assert(other != null);
                    return(_value == other._value);
                }