Click or drag to resize
Accord.NET (logo)

ExtensionMethodsDeserializeAnyVersionT Method

Note: This API is now obsolete.

Deserializes the specified stream into an object graph, but locates types by searching all loaded assemblies and ignoring their versions.

Namespace:  Accord
Assembly:  Accord (in Accord.dll) Version: 3.8.0
Syntax
[ObsoleteAttribute("Please use Accord.IO.Serializer.Load<T>() instead.")]
public static T DeserializeAnyVersion<T>(
	this BinaryFormatter formatter,
	Stream stream
)
Request Example View Source

Parameters

formatter
Type: System.Runtime.Serialization.Formatters.BinaryBinaryFormatter
The binary formatter.
stream
Type: System.IOStream
The stream from which to deserialize the object graph.

Type Parameters

T

Return Value

Type: T
The top (root) of the object graph.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type BinaryFormatter. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also