Пример #1
0
 protected Type GetOrCreateTypeFromCType(CType CType)
 {
     if (!CustomTypeContext.Contains(CType))
     {
         var CreatedType = CreateTypeFromCType(CType);
         if (CreatedType == null)
         {
             throw (new InvalidOperationException("CreatedType == null"));
         }
         CustomTypeContext.SetTypeByCType(CType, CreatedType);
     }
     return(CustomTypeContext.GetTypeByCType(CType));
 }