Read() 공개 메소드

public Read ( __BinaryParser input ) : void
input __BinaryParser
리턴 void
예제 #1
0
        internal void ReadCrossAppDomainMap()
        {
            BinaryCrossAppDomainMap record = new BinaryCrossAppDomainMap();

            record.Read(this);
            object mapObject = _objectReader.CrossAppDomainArray(record._crossAppDomainArrayIndex);
            BinaryObjectWithMap binaryObjectWithMap = mapObject as BinaryObjectWithMap;

            if (binaryObjectWithMap != null)
            {
                ReadObjectWithMap(binaryObjectWithMap);
            }
            else
            {
                BinaryObjectWithMapTyped binaryObjectWithMapTyped = mapObject as BinaryObjectWithMapTyped;
                if (binaryObjectWithMapTyped != null)
                {
                    ReadObjectWithMapTyped(binaryObjectWithMapTyped);
                }
                else
                {
                    throw new SerializationException(SR.Format(SR.Serialization_CrossAppDomainError, "BinaryObjectMap", mapObject));
                }
            }
        }
예제 #2
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));
                }
            }
        }
예제 #3
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);
            }
        }
예제 #5
0
 internal void ReadCrossAppDomainMap()
 {
     BinaryCrossAppDomainMap record = new BinaryCrossAppDomainMap();
     record.Read(this);
     object mapObject = _objectReader.CrossAppDomainArray(record._crossAppDomainArrayIndex);
     BinaryObjectWithMap binaryObjectWithMap = mapObject as BinaryObjectWithMap;
     if (binaryObjectWithMap != null)
     {
         ReadObjectWithMap(binaryObjectWithMap);
     }
     else
     {
         BinaryObjectWithMapTyped binaryObjectWithMapTyped = mapObject as BinaryObjectWithMapTyped;
         if (binaryObjectWithMapTyped != null)
         {
             ReadObjectWithMapTyped(binaryObjectWithMapTyped);
         }
         else
         {
             throw new SerializationException(SR.Format(SR.Serialization_CrossAppDomainError, "BinaryObjectMap", mapObject));
         }
     }
 }
예제 #6
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);
     }
 }