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;
}