Exemplo n.º 1
0
 /// <summary>used by type code creating methods</summary>
 internal static TypeCodeImpl CreateTypeCodeForTypeInternal(Type forType, AttributeExtCollection attributes,
                                                            TypeCodeCreater typeCodeCreator)
 {
     if (forType != null)
     {
         ClsToIdlMapper mapper = ClsToIdlMapper.GetSingleton();
         return((TypeCodeImpl)mapper.MapClsType(forType, attributes, typeCodeCreator));
     }
     else
     {
         // if no type info present, map to null typecode; the case can't be handled by cls to idl mapper
         return(new NullTC());
     }
 }
Exemplo n.º 2
0
 /// <summary>used by type code creating methods</summary>
 internal static TypeCodeImpl CreateTypeCodeForTypeInternal(Type forType, AttributeExtCollection attributes,
                                                            TypeCodeCreater typeCodeCreator) {
     if (forType != null) {
         ClsToIdlMapper mapper = ClsToIdlMapper.GetSingleton();
         return (TypeCodeImpl)mapper.MapClsType(forType, attributes, typeCodeCreator);
     } else {
         // if no type info present, map to null typecode; the case can't be handled by cls to idl mapper
         return new NullTC();
     }
 }