Example #1
0
            private bool Equals(TypeWithPropertyList other)
            {
                if (!string.Equals(_typeFullName, other._typeFullName))
                {
                    return(false);
                }

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

                return(_properties.CollectionEquals(other._properties));
            }
Example #2
0
            private bool Equals(TypeWithPropertyList other)
            {
                if (!string.Equals(TypeFullName, other.TypeFullName, StringComparison.Ordinal))
                {
                    return(false);
                }

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

                return(_properties.CollectionEquals(other._properties));
            }
Example #3
0
            internal Type GetOrCreate(TypeInfo typeInfo, Func <TypeInfo, Type> factory)
            {
                var key = new TypeWithPropertyList(typeInfo);

                return(GetOrCreate(key, x => factory(typeInfo)));
            }