cancel
Showing results for 
Search instead for 
Did you mean: 

Place the Namespaces in the Use area

Former Member
0 Kudos

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();
      }
   }
}

Accepted Solutions (0)

Answers (1)

Answers (1)

GeorgeMcGeachie
Active Contributor
0 Kudos

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