×

Notice

The forum is in read only mode.
×
Getting new Releases

To get notified on new releases you may follow us on twitter @expandframework or subscribe in our main RSS feed.

Topic-icon Why does my generated code for class in World Creator looks like this?

  • jyoung3456
  • jyoung3456's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
10 months 1 week ago #11687 by jyoung3456
Thank you Tolis, I hope my screenshot before also helped. I think the issue is with RegEx. Anyway, glad you were able to see it.

Cheers,

J.
More
10 months 1 week ago #11690 by Tolis
yes of course it helped, if you wanna try my solution please replace this method
        static string GetUsingsString(IPersistentAssemblyInfo persistentAssemblyInfo, string code){
            var regex =
                new Regex(
                    persistentAssemblyInfo.CodeDomProvider == CodeDomProvider.CSharp
                        ? "^using .*;"
                        : "^Imports .*;", RegexOptions.Multiline);
            return regex.Matches(code).OfType<Match>().Aggregate("", (current, match) => current + match.Value + "\n");
        }

To get notified on new releases follow us on twitter @expandframework or subscribe RSS feed. I am also available @tolisss . Also see How to debug eXpand
Moderators: expand
Time to create page: 0.310 seconds