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)); }
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)); }
internal Type GetOrCreate(TypeInfo typeInfo, Func <TypeInfo, Type> factory) { var key = new TypeWithPropertyList(typeInfo); return(GetOrCreate(key, x => factory(typeInfo))); }