Click or drag to resize
Accord.NET (logo)

ExtensionMethodsGetPosition Method

Gets the underlying buffer position for a StreamReader.

Namespace:  Accord
Assembly:  Accord (in Accord.dll) Version: 3.8.0
Syntax
public static long GetPosition(
	this StreamReader reader
)
Request Example View Source

Parameters

reader
Type: System.IOStreamReader
A StreamReader whose position will be retrieved.

Return Value

Type: Int64
The current offset from the beginning of the file that the StreamReader is currently located into.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type StreamReader. 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