public object MapToIdlStruct(System.Type clsType) { lock (m_structSers.SyncRoot) { Serializer result = (Serializer)m_structSers[clsType]; if (result == null) { result = new IdlStructSerializer(clsType, this); m_structSers[clsType] = result; ((IdlStructSerializer)result).Initalize(); // to prevent recursive struct issues, must be done // after registration of the struct. } return(result); } }
public object MapToIdlStruct(System.Type clsType) { lock(m_structSers.SyncRoot) { Serializer result = (Serializer)m_structSers[clsType]; if (result == null) { result = new IdlStructSerializer(clsType, this); m_structSers[clsType] = result; ((IdlStructSerializer)result).Initalize(); // to prevent recursive struct issues, must be done // after registration of the struct. } return result; } }