InvokeOnDeserialized() private method

private InvokeOnDeserialized ( object obj, StreamingContext context ) : void
obj object
context StreamingContext
return void
Esempio n. 1
0
 private void OnDeserialized(StreamingContext context)
 {
     if (this.m_realObject != null)
     {
         SerializationEvents serializationEventsForType = SerializationEventsCache.GetSerializationEventsForType(this.m_realObject.GetType());
         serializationEventsForType.InvokeOnDeserialized(this.m_realObject, context);
         this.m_realObject = null;
     }
 }
Esempio n. 2
0
 private void OnDeserialized(StreamingContext context)
 {
     // We only need to complete deserialization if we were hooking the deserialization process.  If
     // we have not deserialized an object in the GetRealObject call, then there's nothing more for
     // us to do here.
     if (m_realObject != null)
     {
         // Fire the real object's OnDeserialized method if they registered one.  Since we replaced
         // ourselves as the target of the deserialization, OnDeserialized on the target won't
         // automatically get triggered unless we do it manually.
         SerializationEvents cache = SerializationEventsCache.GetSerializationEventsForType(m_realObject.GetType());
         cache.InvokeOnDeserialized(m_realObject, context);
         m_realObject = null;
     }
 }
        // Token: 0x06005167 RID: 20839 RVA: 0x0011DB24 File Offset: 0x0011BD24
        internal virtual void RaiseOnDeserializedEvent(object obj)
        {
            SerializationEvents serializationEventsForType = SerializationEventsCache.GetSerializationEventsForType(obj.GetType());

            serializationEventsForType.InvokeOnDeserialized(obj, this.m_context);
        }