How get the default namespace of project csproj (VS 2008)

前端 未结 5 1584
终归单人心
终归单人心 2020-12-20 14:05

I have VS 2008 and csproj project (C# Library).

In properties of project, has an assembly name, and default namespace. Note: each class has a namespace.

Is

5条回答
  •  南笙
    南笙 (楼主)
    2020-12-20 14:45

    Not 100% sure it's what you're looking for but you can get the namespace using :

    this.GetType().Namespace
    

提交回复
热议问题