Exemple #1
0
        public string GetStringMethodKey(string methodName, params object[] parameters)
        {
            MethodInfo methodInfo = typeInfo.GetMethod(methodName);

            if (methodInfo == null)
            {
                throw new KeyNotFoundException($"Unable to get string method key! Couldn't find method '{methodName}' of the type '{typeInfo}'");
            }

            return(ObjectKeyGenerator.GetStringKey(methodInfo, parameters));
        }
Exemple #2
0
 public string GetStringKey(string keyGroup, params object[] parameters)
 {
     return(ObjectKeyGenerator.GetStringKey(keyGroup, parameters));
 }