Ejemplo n.º 1
0
        void AppendNamespace()
        {
            if (!Filename.StartsWith(Globals.Sexel.ContentFolder))
            {
                throw new Exception(string.Format("Cannot infer namespace. The file path '{0}' was not a subdirectory of the content folder '{1}'", Filename, Globals.Sexel.ContentFolder));
            }

            string subpath = Filename.Substring(Globals.Sexel.ContentFolder.Length);

            SexBuilder.AppendPathStringAsNamespace(sb, subpath);
        }