Source/NFX/Serialization/POD/ReadingStrategy.cs
/// <summary>
/// Performs deserialization of SerializationInfo from CompositeCustomData bag
/// </summary>
Performs deserialization of SerializationInfo from CompositeCustomData bag
Performs deserialization of SerializationInfo from CompositeCustomData bag
protected virtual SerializationInfo DeserializeSerializationInfo(Type objType, CompositeCustomData data, StreamingContext context)
        {
            var info = new SerializationInfo(objType, new FormatterConverter());
            foreach(var pair in data.CustomData)
            {
                var name = pair.Key;
                var type = ResolveType(  data.Document.GetMetaTypeFromIndex( pair.Value.TypeIndex )  );
                var obj = data.Document.PortableDataToNativeData(this, pair.Value.Data);
                info.AddValue(name, obj, type);
            }
            return info;
        }
protected virtual SerializationInfo DeserializeSerializationInfo ( Type objType , CompositeCustomData data , StreamingContext context ) { var info = new SerializationInfo ( objType , new FormatterConverter ( ) ) ; foreach ( var pair in data . CustomData ) { var name = pair . Key ; var type = ResolveType ( data . Document . GetMetaTypeFromIndex ( pair . Value . TypeIndex ) ) ; var obj = data . Document . PortableDataToNativeData ( this , pair . Value . Data ) ; info . AddValue ( name , obj , type ) ; } return info ; }
Performs deserialization of SerializationInfo from CompositeCustomData bag
Performs deserialization of SerializationInfo from CompositeCustomData bag
objType
Type
data
CompositeCustomData
context
StreamingContext