コード例 #1
0
ファイル: TypeSerializers.cs プロジェクト: Xamarui/BTDB
 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;
 }
コード例 #2
0
ファイル: TypeSerializers.cs プロジェクト: martindrlik/BTDB
        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);
        }