Пример #1
0
        public static T GetItemAs <T>(this ScopeContext ctx, string key, T defaultValue = default(T))
        {
            var value = ctx.GetItem(key, defaultValue);

            return((T)Convert.ChangeType(value, typeof(T)));
        }