Show / Hide Table of Contents

Class ConfigValue<T>

Inheritance
System.Object
ConfigValue<T>
Namespace: GCore.Data
Assembly: GCore.dll
Syntax
public class ConfigValue<T> : object
Type Parameters
Name Description
T

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

Methods

| Improve this Doc View Source

GetValue()

Declaration
public T GetValue()
Returns
Type Description
T
| 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

ClassExtensions.ThrowIfArgumentIsNull<T>(T, String)
EnumExtensions.Flag<T>(T, T)
ObjectExtensions.IsNumber(Object)
SerializingExtensions.Serialize<T>(T, SerializingExtensions.Serializer)
SerializingExtensions.SerializeBinary<T>(T)
SerializingExtensions.SerializeSoap<T>(T)
SerializingExtensions.SerializeXML<T>(T, Boolean)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX