Class LiteralParser<T>
Inheritance
LiteralParser<T>
Namespace: Ludiq
Syntax
public abstract class LiteralParser<T> : ILiteralParser
Type Parameters
Constructors
LiteralParser(Type)
Declaration
protected LiteralParser(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Properties
type
Declaration
public Type type { get; }
Property Value
Implements
Methods
CanParse(String)
Declaration
public bool CanParse(string s)
Parameters
Type |
Name |
Description |
String |
s |
|
Returns
Parse(String)
Declaration
Parameters
Type |
Name |
Description |
String |
s |
|
Returns
ToString(T)
Declaration
public abstract string ToString(T literal)
Parameters
Type |
Name |
Description |
T |
literal |
|
Returns
TryParse(String, out T)
Declaration
public abstract bool TryParse(string s, out T literal)
Parameters
Type |
Name |
Description |
String |
s |
|
T |
literal |
|
Returns
Explicit Interface Implementations
ILiteralParser.CanParse(String)
Declaration
bool ILiteralParser.CanParse(string s)
Parameters
Type |
Name |
Description |
String |
s |
|
Returns
Implements
ILiteralParser.Parse(String)
Declaration
object ILiteralParser.Parse(string s)
Parameters
Type |
Name |
Description |
String |
s |
|
Returns
Implements
ILiteralParser.ToString(Object)
Declaration
string ILiteralParser.ToString(object literal)
Parameters
Type |
Name |
Description |
Object |
literal |
|
Returns
Implements
ILiteralParser.TryParse(String, out Object)
Declaration
bool ILiteralParser.TryParse(string s, out object literal)
Parameters
Returns
Implements
Extension Methods