Class EndCodeSearchResult
The result of a FindEndCode(ILineReader) operation
Inherited Members
Namespace: FluentMigrator.Runner.BatchParser
Assembly: FluentMigrator.Runner.Core.dll
Syntax
public class EndCodeSearchResult
Constructors
EndCodeSearchResult(int)
Initializes a new instance of the EndCodeSearchResult class.
Declaration
public EndCodeSearchResult(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index into the ILineReader where the end code was found |
EndCodeSearchResult(int, IRangeSearcher)
Initializes a new instance of the EndCodeSearchResult class.
Declaration
public EndCodeSearchResult(int index, IRangeSearcher nestedRangeSearcher)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index into the ILineReader where the nested start code was found |
IRangeSearcher | nestedRangeSearcher | The searcher to be used to find the end of the nested range |
Properties
Index
Gets the index into the previously tested ILineReader of the end code or nested start code
Declaration
public int Index { get; }
Property Value
Type | Description |
---|---|
int |
IsNestedStart
Gets a value indicating whether this is a nested range
Declaration
public bool IsNestedStart { get; }
Property Value
Type | Description |
---|---|
bool |
NestedRangeSearcher
Gets the searcher to be used to find the end of the nested range
Declaration
[CanBeNull]
public IRangeSearcher NestedRangeSearcher { get; }
Property Value
Type | Description |
---|---|
IRangeSearcher |
Operators
implicit operator EndCodeSearchResult(int)
Operator to convert an index of the end code into a EndCodeSearchResult
Declaration
public static implicit operator EndCodeSearchResult(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index into the ILineReader of the end code |
Returns
Type | Description |
---|---|
EndCodeSearchResult |