Skip to Content
avatar image
Former Member

Place the Namespaces in the Use area

How to place namespaces in generated code at the top in "use" area, but not before the type name?

Now

using System;

namespace Models
{
   public class BookLoader : Interfaces.ILoader
   {
      public Interfaces.IBook Load(int bookId)
      {
         throw new NotImplementedException();
      }
   }
}

Need to

using System;
using Interfaces;

namespace Models
{
   public class BookLoader : ILoader
   {
      public IBook Load(int bookId)
      {
         throw new NotImplementedException();
      }
   }
}
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Dec 07, 2017 at 10:52 PM

    Please provide more context - what are you generating, and what from? Is this really a PowerBuilder question, not PowerDesigner?

    Add comment
    10|10000 characters needed characters exceeded