BTDB.EventStoreLayer.TypeSerializers.BuildFromType C# (CSharp) Method

BuildFromType() private method

private BuildFromType ( Type type ) : ITypeDescriptor
type System.Type
return ITypeDescriptor
        ITypeDescriptor BuildFromType(Type type)
        {
            ITypeDescriptor result;
            lock (_buildTypeLock)
            {
                var buildFromTypeCtx = new BuildFromTypeCtx(this, _type2DescriptorMap);
                buildFromTypeCtx.Create(type);
                buildFromTypeCtx.MergeTypesByShape();
                buildFromTypeCtx.SetNewDescriptors();
                result = buildFromTypeCtx.GetFinalDescriptor(type);
            }
            return result;
        }