public static string ReadText([NotNull] this IResources resources, [NotNull] string name, [CanBeNull] Encoding encoding = null)
        {
            if (resources == null)
            {
                throw new ArgumentNullException(nameof(resources));
            }

            using (var textReader = resources.OpenText(name, encoding))
                return(textReader.ReadToEnd());
        }