System.Runtime.Serialization.SerializationEvents.InvokeOnDeserializing C# (CSharp) Method

InvokeOnDeserializing() private method

private InvokeOnDeserializing ( object obj, StreamingContext context ) : void
obj object
context StreamingContext
return void
        internal void InvokeOnDeserializing(object obj, StreamingContext context) =>
            InvokeOnDelegate(obj, context, _onDeserializingMethods);

Usage Example

コード例 #1
0
        /// <summary>Invokes the method marked with the <see cref="T:System.Runtime.Serialization.OnDeserializingAttribute" />.</summary>
        /// <param name="obj">The instance of the type that contains the method to be invoked.</param>
        // Token: 0x06005168 RID: 20840 RVA: 0x0011DB4C File Offset: 0x0011BD4C
        public void RaiseOnDeserializingEvent(object obj)
        {
            SerializationEvents serializationEventsForType = SerializationEventsCache.GetSerializationEventsForType(obj.GetType());

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