Show / Hide Table of Contents

Class Argument

Represents a parsed function argument.

Inheritance
System.Object
Argument
BoolArg
DoubleArg
FunctionArg
IntArg
StringArg
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 Source

Argument()

Make an empty argument.

Declaration
protected Argument()

Properties

| Improve this Doc View Source

Type

The Fluency type this object is.

Declaration
public abstract FluencyType Type { get; }
Property Value
Type Description
FluencyType

Methods

| Improve this Doc View Source

GetAs<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
| Improve this Doc View Source

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
| Improve this Doc View Source

Value()

Get the value this argument represents.

Declaration
protected abstract object Value()
Returns
Type Description
System.Object
  • Improve this Doc
  • View Source
Back to top Generated by DocFX