Exemple #1
0
 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;
 }
Exemple #2
0
        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);
        }