|
|
|
@ -72,7 +72,7 @@ namespace GBase.DataHandling |
|
|
|
if (typeName == null) |
|
|
|
if (typeName == null) |
|
|
|
throw new ArgumentNullException(nameof(typeName)); |
|
|
|
throw new ArgumentNullException(nameof(typeName)); |
|
|
|
|
|
|
|
|
|
|
|
file.Seek(0, SeekOrigin.Begin); //reset stream to it's beginning to be able to save it |
|
|
|
file.Seek(0, SeekOrigin.Begin); //reset stream to it's beginning to be able to load it |
|
|
|
XDocument xmlDocument = await XDocument.LoadAsync(file, LoadOptions.None, cancellationToken); |
|
|
|
XDocument xmlDocument = await XDocument.LoadAsync(file, LoadOptions.None, cancellationToken); |
|
|
|
file.Seek(0, SeekOrigin.Begin); //reset stream to it's beginning to be able to save it |
|
|
|
file.Seek(0, SeekOrigin.Begin); //reset stream to it's beginning to be able to save it |
|
|
|
|
|
|
|
|
|
|
|
|