Method GetPartOrDefault
- Namespace
- Microlithix.Text.Ansi.Element
- Assembly
- AnsiParser.dll
GetPartOrDefault(int, int)
Returns one integer part of the Parameter, or a default value if the part doesn't exist.
public int GetPartOrDefault(int index, int defaultValue = 0)
Parameters
indexintAn index into the list of parts, where an index of zero refers to the first part.
defaultValueintThe default value to return if the part doesn't exist. If not specified, the default value will be 0.
Returns
- int
The requested part of the Parameter. If the part doesn't exist, then the default value is returned.