コード例 #1
0
ファイル: TypeEmitter.Cache.cs プロジェクト: L1tR05/aqua-core
            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));
            }
コード例 #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));
            }
コード例 #3
0
ファイル: TypeEmitter.Cache.cs プロジェクト: L1tR05/aqua-core
            internal Type GetOrCreate(TypeInfo typeInfo, Func <TypeInfo, Type> factory)
            {
                var key = new TypeWithPropertyList(typeInfo);

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