Пример #1
0
 public object MapToIdlUnion(System.Type clsType)
 {
     lock (m_unionSers.SyncRoot) {
         Serializer result = (Serializer)m_unionSers[clsType];
         if (result == null)
         {
             result = new IdlUnionSerializer(clsType, this);
             m_unionSers[clsType] = result;
         }
         return(result);
     }
 }
 public object MapToIdlUnion(System.Type clsType) {
     lock(m_unionSers.SyncRoot) {
         Serializer result = (Serializer)m_unionSers[clsType];
         if (result == null) {
             result = new IdlUnionSerializer(clsType, this);
             m_unionSers[clsType] = result;
         }
         return result;
     }
 }