/// <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()); } }
/// <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(); } }