CodeTypeDeclaration CreateClass(string type)
        {
            var t = new CodeTypeDeclaration(ResourceParser.GetNestedTypeName(type))
            {
                IsPartial      = true,
                TypeAttributes = TypeAttributes.Public,
            };

            t.Members.Add(new CodeConstructor()
            {
                Attributes = MemberAttributes.Private,
            });
            return(t);
        }
        static string NormalizeAlternative(string value)
        {
            int s = value.IndexOfAny(new[] { Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar });

            if (s < 0)
            {
                return(value);
            }

            int a = value.IndexOf('-');

            return
                (ResourceParser.GetNestedTypeName(value.Substring(0, (a < 0 || a >= s) ? s : a)).ToLowerInvariant() +
                 value.Substring(s));
        }