Show / Hide Table of Contents

Class Eval<T>

Inheritance
System.Object
Eval
Eval<T>
Inherited Members
Eval.Message
Eval.Make<T>(LocString, T)
Eval.Make<T>(FormattableString, T)
Eval.MakeStr<T>(String, T)
Eval.Make<T>(Func<T, LocString>, T)
Eval.Make<T>(Func<T, FormattableString>, T)
Eval.Make<T>(Func<String, FormattableString>, ValResult<T>)
Eval.MakeFail<T>(LocString)
Eval.MakeFailLoc<T>(FormattableString)
Eval.Append(LocString)
Eval.Make<T>(FormattableString, ValResult<T>)
Namespace: Eco.Core.Utils
Assembly: Eco.Core.dll
Syntax
public class Eval<T> : Eval
Type Parameters
Name Description
T

Constructors

Eval(T)

Declaration
public Eval(T val)
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
public bool Invalid
Field Value
Type Description
System.Boolean

Properties

Val

Declaration
public T Val { get; set; }
Property Value
Type Description
T

Valid

Declaration
public bool Valid { get; }
Property Value
Type Description
System.Boolean

Methods

Apply(FormattableString, Func<T, T>)

Declaration
public Eval<T> Apply(FormattableString prepend, Func<T, T> func)
Parameters
Type Name Description
System.FormattableString prepend
System.Func<T, T> func
Returns
Type Description
Eval<T>

Apply(Func<T, T>)

Declaration
public Eval<T> Apply(Func<T, T> func)
Parameters
Type Name Description
System.Func<T, T> func
Returns
Type Description
Eval<T>

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
Type Description
ValResult<T>

Prepend<TValue>(FormattableString, TValue)

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
Name Description
TValue

Operators

Implicit(T to Eval<T>)

Declaration
public static implicit operator Eval<T>(T val)
Parameters
Type Name Description
T val
Returns
Type Description
Eval<T>

Extension Methods

PropertyChanges.FirePropertyChanged(Object, String)
PropertyChanges.FirePropertyChanged(Object, String, Object, Object)
PropertyChanges.FirePropertyChanged(Object, MemberChangedBeforeAfterEventArgs)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾