'Declaration Public Overloads Function GetTokens( _ Optional ByVal startOffset As Integer, _ Optional ByVal filter As Func(Of Token,Boolean), _ Optional ByVal enumerateBackwards As Boolean, _ Optional ByVal splitMultilineTokensByLine As Boolean _ ) As IEnumerable(Of Token)
public IEnumerable<Token> GetTokens( int startOffset, Func<Token,bool> filter, bool enumerateBackwards, bool splitMultilineTokensByLine )
Note: even though the snapshot is thread-safe, the enumerator is not. Therefore this method should be called on the same thread that is using it (i.e. each thread accessing an enumerator should create its own). Trying to access the properties and methods of an enumerator created on another thread will raise an InvalidOperationException.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2