Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/311.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 是否有命名空间的所有保留关键字的列表?_C#_Code Analysis - Fatal编程技术网

C# 是否有命名空间的所有保留关键字的列表?

C# 是否有命名空间的所有保留关键字的列表?,c#,code-analysis,C#,Code Analysis,在我的解决方案上运行代码分析时,我收到以下警告: Warning CA1716 Rename namespace CompanyA.Product.Shared.LibraryA so that it no longer conflicts with the reserved language keyword 'Shared'. Using a reserved keyword as the name of a namespace makes it harder for consumers

在我的解决方案上运行代码分析时,我收到以下警告:

Warning CA1716 

Rename namespace CompanyA.Product.Shared.LibraryA so that it no longer conflicts
with the reserved language keyword 'Shared'. 
Using a reserved keyword as the name of a namespace makes it harder for consumers 
in other languages to use the namespace.

在哪里可以找到C#中命名空间保留关键字的完整列表?

这是一个VB.Net项目还是包括在内?因为
Shared

整个列表太长,无法在此处重复,已硬编码在以下变量中:


它包含了C、VB.NET和C++的保留关键字。

这里没有列出CODAR123'共享的关键字。它似乎有点过分的警告。共享是由VB.NET程序使用的,如果您不打算将该语言集成到解决方案中,则无需担心。这里有一个ms文档解释了如何更改该工具的输出。但是,如果您的目标是删除所有这些警告,那么您有很多事情要做。一个问题如何能够回答另一个问题?可能是C#和VB.Net(这很常见)。询问可能会暗示他可能想查看VB.Net保留关键字,而不是C#one;)我确实在问题上加了C:)