[This is preliminary documentation and is subject to change.]
A helper class to parse "@method( parameterlist )" into .Net method name
and parameter list, and to return the position in the source string where
the caller should continue processing.
| C# | Visual Basic | Visual C++ |
public class ParseResults
Public Class ParseResults
public ref class ParseResults
| All Members | Constructors | Methods | Fields | ||
| Icon | Member | Description |
|---|---|---|
| DefaultValueBuilder..::ParseResultsDefaultValueBuilder..::ParseResultsNew()() | ||
| MethodName |
The name of the .Net method
| |
| Parameters |
The parameters to send to the .Net method
| |
| parse(String, Int32) | Given a source string and an index into that string where a .Net
method begins (i.e. the location of the @ character), parse the name
of the .Net method and the list of parameters. Return a new ParseResults
instance of both components were found, otherwise return null.
For example, if this string were passed: '@random() @strip("(801) 323-1131")',
and the position parameter were 11, this function would return
a new ParseResults with Position set to 32, MethodName set to 'strip',
and Parameters having a single parameter of "(801) 323-1131".
| |
| Position |
Position in source string immediately after closing parenthesis
|
| Object | |
| DefaultValueBuilder..::ParseResults | |