Example #1
0
        public static string FindString <T>([NotNull] this IResourceReader resources, [NotNull] Expression <Func <string, bool> > predicateExpression)
        {
            if (resources == null)
            {
                throw new ArgumentNullException(nameof(resources));
            }
            if (predicateExpression == null)
            {
                throw new ArgumentNullException(nameof(predicateExpression));
            }

            return(resources.GetString(typeof(T).Assembly, resources.FindName <T>(predicateExpression)));
        }