Class ConfigValue<T>
Inheritance
System.Object
ConfigValue<T>
Assembly: GCore.dll
Syntax
public class ConfigValue<T> : object
Type Parameters
Constructors
|
Improve this Doc
View Source
ConfigValue(INIFile, T, String, String, Func<T, Boolean>)
Declaration
public ConfigValue(INIFile file, T defaultValue, string section, string key, Func<T, bool> validator = null)
Parameters
Type |
Name |
Description |
INIFile |
file |
|
T |
defaultValue |
|
System.String |
section |
|
System.String |
key |
|
Func<T, System.Boolean> |
validator |
|
Properties
|
Improve this Doc
View Source
Val
Declaration
public T Val { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
GetValue()
Declaration
Returns
|
Improve this Doc
View Source
SetValue(T)
Declaration
public void SetValue(T val)
Parameters
Type |
Name |
Description |
T |
val |
|
|
Improve this Doc
View Source
Validate(T)
Declaration
public bool Validate(T val)
Parameters
Type |
Name |
Description |
T |
val |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Validator_IP(String)
Declaration
public static bool Validator_IP(string v)
Parameters
Type |
Name |
Description |
System.String |
v |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Validator_Positive(Double)
Declaration
public static bool Validator_Positive(double v)
Parameters
Type |
Name |
Description |
System.Double |
v |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Validator_Positive(Int32)
Declaration
public static bool Validator_Positive(int v)
Parameters
Type |
Name |
Description |
System.Int32 |
v |
|
Returns
Type |
Description |
System.Boolean |
|
Extension Methods