internal void ReadCrossAppDomainMap()
{
SerTrace.Log( this, "ReadObjectWithCrossAppDomainMap");
BinaryCrossAppDomainMap record = new BinaryCrossAppDomainMap();
record.Read(this);
record.Dump();
Object mapObject = objectReader.CrossAppDomainArray(record.crossAppDomainArrayIndex);
BinaryObjectWithMap binaryObjectWithMap = mapObject as BinaryObjectWithMap;
if (binaryObjectWithMap != null)
{
binaryObjectWithMap.Dump();
ReadObjectWithMap(binaryObjectWithMap);
}
else
{
BinaryObjectWithMapTyped binaryObjectWithMapTyped = mapObject as BinaryObjectWithMapTyped;
if (binaryObjectWithMapTyped != null)
{
#if _DEBUG
binaryObjectWithMapTyped.Dump();
#endif
ReadObjectWithMapTyped(binaryObjectWithMapTyped);
}
else
throw new SerializationException(String.Format(CultureInfo.CurrentCulture, Environment.GetResourceString("Serialization_CrossAppDomainError"),"BinaryObjectMap", mapObject));
}
}