diff --git a/CSharp/Libraries/UniversalEditor.Core/DataFormat.cs b/CSharp/Libraries/UniversalEditor.Core/DataFormat.cs index 5d8f9285..e824f8d5 100644 --- a/CSharp/Libraries/UniversalEditor.Core/DataFormat.cs +++ b/CSharp/Libraries/UniversalEditor.Core/DataFormat.cs @@ -24,7 +24,19 @@ namespace UniversalEditor } private Accessor mvarAccessor = null; - public Accessor Accessor { get { return mvarAccessor; } set { mvarAccessor = value; } } + protected internal Accessor Accessor { get { return mvarAccessor; } set { mvarAccessor = value; } } + + /// + /// Continues loading the file into the specified with a different + /// . + /// + /// The in which to continue loading the document. + /// The used to parse the document. + protected void ContinueLoading(ref ObjectModel objectModel, DataFormat otherDataFormat) + { + otherDataFormat.Accessor = mvarAccessor; + otherDataFormat.Load(ref objectModel); + } protected virtual bool IsObjectModelSupported(ObjectModel objectModel) {