|
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
)
<ExtensionAttribute>
Public Shared Function GetPosition (
reader As StreamReader
) As Long
Request Example
View SourceParameters
- reader
- Type: System.IOStreamReader
A StreamReader whose position will be retrieved.
Return Value
Type:
Int64The 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