NormalizeOrder() public static method

public static NormalizeOrder ( IEnumerable modifiers ) : IEnumerable
modifiers IEnumerable
return IEnumerable
Ejemplo n.º 1
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (obj.GetType() == typeof(CppTypes))
            {
                return(Equals(new CppType(obj)));
            }
            if (obj.GetType() != typeof(CppType))
            {
                return(false);
            }
            CppType other = (CppType)obj;

            return((((internalModifiers == null || !internalModifiers.Any()) &&
                     (other.internalModifiers == null || !other.internalModifiers.Any())) ||
                    (internalModifiers != null && other.internalModifiers != null &&
                     CppModifiers.NormalizeOrder(internalModifiers).SequenceEqual(CppModifiers.NormalizeOrder(other.internalModifiers)))) &&

                   (((Namespaces == null || !Namespaces.Any()) &&
                     (other.Namespaces == null || !other.Namespaces.Any())) ||
                    (Namespaces != null && other.Namespaces != null &&
                     Namespaces.SequenceEqual(other.Namespaces))) &&

                   ElementType == other.ElementType &&
                   ElementTypeName == other.ElementTypeName);
        }