예제 #1
0
        protected T GetParameterOrThrow <T>([CallerMemberName] string key = "")
        {
            if (string.IsNullOrEmpty(key))
            {
                throw new ArgumentException("Key not specified.", nameof(key));
            }

            return(parameters.GetValue <T>(key));
        }