コード例 #1
0
ファイル: Repository.cs プロジェクト: divyang4481/IIOPNet
 /// <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());
     }
 }
コード例 #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();
     }
 }