Interface ILineReader
Read content from a line and advance the internal index
Namespace: FluentMigrator.Runner.BatchParser
Assembly: FluentMigrator.Runner.Core.dll
Syntax
public interface ILineReader
Properties
Index
Gets the current index into the line
Declaration
int Index { get; }
Property Value
Type | Description |
---|---|
int |
Length
Gets the remaining length
Declaration
int Length { get; }
Property Value
Type | Description |
---|---|
int |
Line
Gets the current line
Declaration
[NotNull]
string Line { get; }
Property Value
Type | Description |
---|---|
string |
Methods
Advance(int)
Creates a new ILineReader while moving the internal Index by the given length
Declaration
[CanBeNull]
ILineReader Advance(int length)
Parameters
Type | Name | Description |
---|---|---|
int | length | The number of characters to move the internal Index |
Returns
Type | Description |
---|---|
ILineReader | A new line reader with the new index |
ReadString(int)
Reads a string with the given length
from the Line
Declaration
[NotNull]
string ReadString(int length)
Parameters
Type | Name | Description |
---|---|---|
int | length | The length of the string to read from the Line |
Returns
Type | Description |
---|---|
string | The read string |