Example #1
0
 public Any(object obj)
 {
     SetTypeCode(
         OrbServices.GetSingleton().create_tc_for(obj));
     // because serialization is done based on the typecode type, make sure
     // that the value is assignable to the typecode.
     // For cases, where the .NET type can't be mapped directly to idl (like SByte),
     // this would otherwise lead to problems in Serializer.
     m_value = m_typeCode.ConvertToAssignable(obj);
 }