Skip to content

Namespace for class within a class #42

Description

@warlock00

Installed product versions

  • Visual Studio: 2017 Professional
  • Extension: snys98/TypeScriptDefinitionGenerator 2.2.0.97

Description

Class within a class has wrong namespace. Causing me lots of conflicts.

Steps to recreate

Try generate the following:

namespace Company.Areas.Blah.Dtc
{
    public class SomeDtc
    {
        public int? PageNumber { get; set; }
        public IList<Row> Rows { get; set; }
        
        public class Row

Results in:

declare module Company.Areas.Blah.Dtc {
	interface Row {

Current behavior

Ends up with a Row in the wrong namespace that can conflict with other Dtcs that also have a scoped class of Row.

Expected behavior

declare module Company.Areas.Blah.Dtc.SomeDtc {
	interface Row {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions