GetDictionaryItemValue() public method

Gets a dictionary item value.
public GetDictionaryItemValue ( string key, string defaultValue = null ) : string
key string The key.
defaultValue string The default value.
return string
コード例 #1
0
        public void GetDictionaryItemValue_Returns_Defailt_Value_If_Item_UnPublished()
        {
            var dictionaryHelper = new DictionaryHelper(_hiveManager, _languages);

            Assert.AreEqual("[test2/test4]", dictionaryHelper.GetDictionaryItemValue("test2/test4", null));
        }
コード例 #2
0
ファイル: RebelHelper.cs プロジェクト: RebelCMS/rebelcmsxu5
 public string GetDictionaryItem(string key, string defaultValue = null)
 {
     var dictionaryHelper = new DictionaryHelper(_requestContext.Application);
     return dictionaryHelper.GetDictionaryItemValue(key, defaultValue);
 }