Class Eval<T>
Inheritance
System.Object
Eval<T>
Assembly: Eco.Core.dll
Syntax
public class Eval<T> : Eval
Type Parameters
Constructors
Eval(T)
Declaration
Parameters
Type |
Name |
Description |
T |
val |
|
Eval(LocString, T)
Declaration
public Eval(LocString message, T val = null)
Parameters
Type |
Name |
Description |
LocString |
message |
|
T |
val |
|
Eval(LocString, Boolean)
Declaration
public Eval(LocString message, bool invalid)
Parameters
Type |
Name |
Description |
LocString |
message |
|
System.Boolean |
invalid |
|
Fields
Invalid
Declaration
Field Value
Type |
Description |
System.Boolean |
|
Properties
Val
Declaration
public T Val { get; set; }
Property Value
Valid
Declaration
public bool Valid { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Declaration
public Eval<T> Apply(FormattableString prepend, Func<T, T> func)
Parameters
Type |
Name |
Description |
System.FormattableString |
prepend |
|
System.Func<T, T> |
func |
|
Returns
Apply(Func<T, T>)
Declaration
public Eval<T> Apply(Func<T, T> func)
Parameters
Type |
Name |
Description |
System.Func<T, T> |
func |
|
Returns
ConvertMessageOnly<TNewType>()
Declaration
public Eval<TNewType> ConvertMessageOnly<TNewType>()
Returns
Type |
Description |
Eval<TNewType> |
|
Type Parameters
Name |
Description |
TNewType |
|
ConvertTo<TNewType>()
Declaration
public Eval<TNewType> ConvertTo<TNewType>()
where TNewType : T
Returns
Type |
Description |
Eval<TNewType> |
|
Type Parameters
Name |
Description |
TNewType |
|
LocalizeStr(String)
Declaration
public static ValResult<T> LocalizeStr(string s)
Parameters
Type |
Name |
Description |
System.String |
s |
|
Returns
Declaration
public Eval<TValue> Prepend<TValue>(FormattableString s, TValue val = null)
Parameters
Type |
Name |
Description |
System.FormattableString |
s |
|
TValue |
val |
|
Returns
Type |
Description |
Eval<TValue> |
|
Type Parameters
Operators
Implicit(T to Eval<T>)
Declaration
public static implicit operator Eval<T>(T val)
Parameters
Type |
Name |
Description |
T |
val |
|
Returns
Extension Methods