GetBoolean() public method

Boolean property accessor method to hide the configuration implementation.
public GetBoolean ( String key, bool def ) : bool
key String property key
def bool default value if property not found
return bool
Ejemplo n.º 1
0
 /// <summary>
 /// Boolean property accessor method to hide the configuration implementation.
 /// </summary>
 /// <param name="key">property key</param>
 /// <param name="def">default value if property not found</param>
 /// <returns>value of key or default value</returns>
 public static bool GetBoolean(String key, bool def)
 {
     return(ri.GetBoolean(key, def));
 }