Пример #1
0
 /// <summary>
 /// State getter method
 /// </summary>
 /// <typeparam name="T">Type of the property</typeparam>
 /// <param name="key">Property key</param>
 /// <param name="default">Default value in case property is not set</param>
 /// <returns>Value of the property or @default if property is not set</returns>
 protected T GetState <T>(NProperty key, T @default)
 {
     return(_state.Get(key, @default));
 }
Пример #2
0
 /// <summary>
 /// Property getter
 /// </summary>
 /// <typeparam name="T">Type of the property</typeparam>
 /// <param name="key">Property key</param>
 /// <param name="default">Default value in case the property is not set</param>
 /// <returns>Property value of @default in case the property is not set</returns>
 public T Get <T>(NProperty key, T @default)
 {
     return(_props.Get(key, @default));
 }