NVelocity.Runtime.RuntimeInstance.GetBoolean C# (CSharp) Method

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
		public bool GetBoolean(String key, bool def)
		{
			return configuration.GetBoolean(key, def);
		}

Usage Example

示例#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));
 }