Dump() public method

public Dump ( ) : void
return void
Ejemplo n.º 1
0
        internal void ReadCrossAppDomainMap()
        {
            BinaryCrossAppDomainMap crossAppDomainMap = new BinaryCrossAppDomainMap();

            crossAppDomainMap.Read(this);
            crossAppDomainMap.Dump();
            object obj = this.objectReader.CrossAppDomainArray(crossAppDomainMap.crossAppDomainArrayIndex);
            BinaryObjectWithMap record1 = obj as BinaryObjectWithMap;

            if (record1 != null)
            {
                record1.Dump();
                this.ReadObjectWithMap(record1);
            }
            else
            {
                BinaryObjectWithMapTyped record2 = obj as BinaryObjectWithMapTyped;
                if (record2 != null)
                {
                    this.ReadObjectWithMapTyped(record2);
                }
                else
                {
                    throw new SerializationException(Environment.GetResourceString("Serialization_CrossAppDomainError", (object)"BinaryObjectMap", obj));
                }
            }
        }
Ejemplo n.º 2
0
        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)
                {
                    binaryObjectWithMapTyped.Dump();
                    ReadObjectWithMapTyped(binaryObjectWithMapTyped);
                }
                else
                {
                    throw new SerializationException(String.Format(Environment.GetResourceString("Serialization_CrossAppDomainError"), "BinaryObjectMap", mapObject));
                }
            }
        }
        internal void ReadCrossAppDomainMap()
        {
            BinaryCrossAppDomainMap map = new BinaryCrossAppDomainMap();

            map.Read(this);
            map.Dump();
            object obj2 = this.objectReader.CrossAppDomainArray(map.crossAppDomainArrayIndex);
            BinaryObjectWithMap record = obj2 as BinaryObjectWithMap;

            if (record != null)
            {
                record.Dump();
                this.ReadObjectWithMap(record);
            }
            else
            {
                BinaryObjectWithMapTyped typed = obj2 as BinaryObjectWithMapTyped;
                if (typed == null)
                {
                    throw new SerializationException(Environment.GetResourceString("Serialization_CrossAppDomainError", new object[] { "BinaryObjectMap", obj2 }));
                }
                this.ReadObjectWithMapTyped(typed);
            }
        }
Ejemplo n.º 4
0
        [System.Security.SecurityCritical]  // auto-generated
        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(Environment.GetResourceString("Serialization_CrossAppDomainError","BinaryObjectMap", mapObject));
            }
        }
 internal void ReadCrossAppDomainMap()
 {
     BinaryCrossAppDomainMap map = new BinaryCrossAppDomainMap();
     map.Read(this);
     map.Dump();
     object obj2 = this.objectReader.CrossAppDomainArray(map.crossAppDomainArrayIndex);
     BinaryObjectWithMap record = obj2 as BinaryObjectWithMap;
     if (record != null)
     {
         record.Dump();
         this.ReadObjectWithMap(record);
     }
     else
     {
         BinaryObjectWithMapTyped typed = obj2 as BinaryObjectWithMapTyped;
         if (typed == null)
         {
             throw new SerializationException(Environment.GetResourceString("Serialization_CrossAppDomainError", new object[] { "BinaryObjectMap", obj2 }));
         }
         this.ReadObjectWithMapTyped(typed);
     }
 }