首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

namespace中multipart 的有关问题

2012-01-19 
namespace中multipart 的问题今天读书的时候有一句话不太懂,希望大家解答Notethatyouarenotpermittedtodec

namespace中multipart 的问题
今天读书的时候有一句话不太懂,希望大家解答
Note   that   you   are   not   permitted   to   declare   a   multipart   namespace   nested   within   another   namespace
其中multipart   namespace只的是那种格式?能否提供使编译器报错的代码?

这段的全文是:
Each   namespace   name   is   composed   of   the   names   of   the   namespaces   it   resides   within,   separated   with   periods,   starting   with   the   outermost   namespace   and   ending   with   its   own   short   name.   So   the   full   name   for   the   ProCSharp   namespace   is   Wrox.ProCSharp,   and   the   full   name   of   NamespaceExample   class   is   Wrox.ProCSharp.Basics.NamespaceExample.

You   can   use   this   syntax   to   organize   the   namespaces   in   your   namespace   definitions   too,   so   the   previous   code   could   also   be   written   as   follows:

namespace   Wrox.ProCSharp.Basics
{
class   NamespaceExample
{
//   Code   for   the   class   here...
}
}

Note   that   you   are   not   permitted   to   declare   a   multipart   namespace   nested   within   another   namespace



[解决办法]
就是一串字符,中间用点隔开的样子,没什么特别的。
[解决办法]
不像一楼说的
用.隔开而已

热点排行