コード例 #1
0
ファイル: Method.cs プロジェクト: ly774508966/UnrealDotNet
        public bool EqualsInputTypes(Method other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

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

            if (InputTypes.Where((t, i) => !t.Equals(other.InputTypes[i])).Any())
            {
                return(false);
            }

            return(true);
        }
コード例 #2
0
ファイル: Method.cs プロジェクト: Xambey/UnrealDotNet
        public bool Equals(Method other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            if (Name != other.Name ||
                InputTypes.Count != other.InputTypes.Count ||
                !Equals(ReturnType, other.ReturnType) ||
                !Equals(OwnerClass, other.OwnerClass) ||
                IsConst != other.IsConst ||
                IsTemplate != other.IsTemplate)
            {
                return(false);
            }

            return(!InputTypes.Where((t, i) => !t.Equals(other.InputTypes[i])).Any());
        }