Class Argument
Represents a parsed function argument.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fluency.Execution.Parsing.Entities
Assembly: Execution.dll
Syntax
public abstract class Argument
Constructors
| Improve this Doc View SourceArgument()
Make an empty argument.
Declaration
protected Argument()
Properties
| Improve this Doc View SourceType
The Fluency type this object is.
Declaration
public abstract FluencyType Type { get; }
Property Value
| Type | Description |
|---|---|
| FluencyType |
Methods
| Improve this Doc View SourceGetAs<T>()
Attempt to return this function's value as a type T.
Declaration
public T GetAs<T>()
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T |
TryParse(String, out Argument)
Create a new parsed argument from a string representing one. Valid arguments are "strings", integers, floating point numbers, and function names. The special argument ... (three periods) is also valid in a Def only.
Declaration
public static bool TryParse(string arg, out Argument argument)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | arg | The string to be parsed. |
| Argument | argument | The parsed result, if successful. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Value()
Get the value this argument represents.
Declaration
protected abstract object Value()
Returns
| Type | Description |
|---|---|
| System.Object |