зеркало из https://github.com/stride3d/GraphX.git
Fixed method name
Fixed a method name to match what I intended earlier.
This commit is contained in:
Родитель
97419fef56
Коммит
9ec93fe00e
|
@ -33,7 +33,7 @@ namespace ShowcaseApp.WPF.FileSerialization
|
|||
{
|
||||
using (FileStream stream = File.Open(filename, FileMode.Open, FileAccess.Read, FileShare.Read))
|
||||
{
|
||||
return DeserializeDataFromFile(stream);
|
||||
return DeserializeDataFromStream(stream);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -57,7 +57,7 @@ namespace ShowcaseApp.WPF.FileSerialization
|
|||
/// </summary>
|
||||
/// <param name="stream">The stream</param>
|
||||
/// <returns>The graph data</returns>
|
||||
public static List<GraphSerializationData> DeserializeDataFromFile(Stream stream)
|
||||
public static List<GraphSerializationData> DeserializeDataFromStream(Stream stream)
|
||||
{
|
||||
var deserializer = new YAXSerializer(typeof(List<GraphSerializationData>));
|
||||
using (var textReader = new StreamReader(stream))
|
||||
|
|
Загрузка…
Ссылка в новой задаче