Skip to content

Namespace for class within a class #13

Description

@warlock00

Installed product versions

  • Visual Studio: 2017 Professional
  • This extension: 2.2.0.97

Description

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

Steps to recreate

Try process the following c#:

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

Labels

bugSomething isn't working

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions