コード例 #1
0
 public static string AsString(this ConfigSection section, string keyPath, string defaultValue = default)
 => ConfigItemExtensions.ValueAsString(section.AsConfigItem(keyPath), defaultValue);
コード例 #2
0
 public static object[] AsArray(this ConfigSection section, string keyPath, object[] defaultValue = default)
 => ConfigItemExtensions.ValueAsArray(section.AsConfigItem(keyPath), defaultValue);
コード例 #3
0
 public static List <object> AsList(this ConfigSection section, string keyPath, List <object> defaultValue = default)
 => ConfigItemExtensions.ValueAsList(section.AsConfigItem(keyPath), defaultValue);
コード例 #4
0
 public static bool AsBoolean(this ConfigSection section, string keyPath, bool defaultValue = default)
 => ConfigItemExtensions.ValueAsBoolean(section.AsConfigItem(keyPath), defaultValue);
コード例 #5
0
 public static DateTime AsDateTime(this ConfigSection section, string keyPath, DateTime defaultValue = default)
 => ConfigItemExtensions.ValueAsDateTime(section.AsConfigItem(keyPath), defaultValue);
コード例 #6
0
 public static float AsFloat(this ConfigSection section, string keyPath, float defaultValue = default)
 => ConfigItemExtensions.ValueAsFloat(section.AsConfigItem(keyPath), defaultValue);
コード例 #7
0
 public static decimal AsDecimal(this ConfigSection section, string keyPath, decimal defaultValue = default)
 => ConfigItemExtensions.ValueAsDecimal(section.AsConfigItem(keyPath), defaultValue);
コード例 #8
0
 public static double AsDouble(this ConfigSection section, string keyPath, double defaultValue = default)
 => ConfigItemExtensions.ValueAsDouble(section.AsConfigItem(keyPath), defaultValue);