src/Azos/Serialization/POD/ReadingStrategy.cs
/// <summary>
/// Resolves composite data into CLR object
/// </summary>
Resolves composite data into CLR object
Resolves composite data into CLR object
public virtual object CompositeToNative(CompositeData data)
        {
            if (data==null) return null;
            if (data.ExistingReference)
               return CompositeToNative(data.Referenced);
            var result = data.__CLRObject;
            if (result==null)
            {
                result = ConstructObject(data);
                data.__CLRObject = result;
                if (data is CompositeCustomData)
                    DeserializeObjectFromCompositeCustomData(result, (CompositeCustomData)data);
                else if (data is CompositeArrayData)
                    DeserializeArray((Array)result, (CompositeArrayData)data);
                else
                    DeserializeObjectFromCompositeReflectedData(result, (CompositeReflectedData)data);
            }
            return result;
        }
public virtual object CompositeToNative ( CompositeData data ) { if ( data == null ) return null ; if ( data . ExistingReference ) return CompositeToNative ( data . Referenced ) ; var result = data . __CLRObject ; if ( result == null ) { result = ConstructObject ( data ) ; data . __CLRObject = result ; if ( data is CompositeCustomData ) DeserializeObjectFromCompositeCustomData ( result , ( CompositeCustomData ) data ) ; else if ( data is CompositeArrayData ) DeserializeArray ( ( Array ) result , ( CompositeArrayData ) data ) ; else DeserializeObjectFromCompositeReflectedData ( result , ( CompositeReflectedData ) data ) ; } return result ; }
Resolves composite data into CLR object
Resolves composite data into CLR object
//1. Construct //2. Fill with data
data
CompositeData