当前位置:首页 > 网络编程 > WEB编程 > ASP.net > .NET命名规范中文版

.NET命名规范中文版

点击次数:23 次 发布日期:2008-11-26 23:16:05 作者:源代码网
源代码网推荐
源代码网推荐 <b>词语选择</b><b></b>
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 <b>避免</b>使用由经常使用的名称空间复制的类型名。类型名不能使用下列词语。
源代码网推荐
源代码网推荐 System       Collections   Forms       UI
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 <b>避免</b>使用与常用关键词冲突的标识符。例如,避免使用下列词语。<table class=ubb cellspacing=0><tr><td class=ubb>
源代码网推荐
源代码网推荐 <i>AddHandler</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>AddressOf</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Alias</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>And</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Ansi</i></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 <i>As</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Assembly</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Auto</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>BitAnd</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>BitNot</i></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 <i>BitOr</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>BitXor</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Boolean</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>ByRef</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Byte</i></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 <i>ByVal</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Call</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Case</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Catch</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>CBool</i></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 <i>CByte</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>CChar</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>CDate</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>CDec</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>CDbl</i></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 <i>Char</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>CInt</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Class</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>CLng</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>CObj</i></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 <i>Const</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>CShort</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>CSng</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>CStr</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>CType</i></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 <i>Date</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Decimal</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Declare</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Default</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Delegate</i></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 <i>Dim</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Do</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Double</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Each</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Else</i></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 <i>ElseIf</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>End</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Enum</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Erase</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Error</i></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 <i>Event</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Exit</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>ExternalSource</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>False</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Finally</i></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 <i>For</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Friend</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Function</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Get</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>GetType</i></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 <i>Goto </i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Handles</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>If</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Implements</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Imports</i></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 <i>In</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Inherits</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Integer</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Interface</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Is</i></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 <i>Let</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Lib</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Like</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Long</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Loop</i></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 <i>Me</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Mod</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Module</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>MustInherit</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>MustOverride</i></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 <i>MyBase</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>MyClass</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Namespace</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>New</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Next</i></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 <i>Not</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Nothing</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>NotInheritable</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>NotOverridable</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Object</i></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 <i>On</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Option</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Optional</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Or</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Overloads</i></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 <i>Overridable</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Overrides</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>ParamArray</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Preserve</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Private</i></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 <i>Property</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Protected</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Public</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>RaiseEvent</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>ReadOnly</i></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 <i>ReDim</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Region</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>REM</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>RemoveHandler</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Resume</i></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 <i>Return</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Select</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Set</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Shadows</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Shared</i></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 <i>Short</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Single</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Static</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Step</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Stop</i></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 <i>String</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Structure</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Sub</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>SyncLock</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Then</i></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 <i>Throw</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>To</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>True</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Try</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>TypeOf</i></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 <i>Unicode</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Until</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Variant</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>When</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>While</i></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 <i>With</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>WithEvents</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>WriteOnly</i></td><td class=ubb>
源代码网推荐
源代码网推荐 <i>Xor</i></td><td class=ubb>
源代码网推荐
源代码网推荐 eval</td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 extends</td><td class=ubb>
源代码网推荐
源代码网推荐 instanceof</td><td class=ubb>
源代码网推荐
源代码网推荐 package</td><td class=ubb>
源代码网推荐
源代码网推荐 var</td><td class=ubb>
源代码网推荐
源代码网推荐 </td></tr></table>
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 标识符(包括参数名)中<b>不要</b>使用缩写。
源代码网推荐
源代码网推荐 如果必须使用缩写:
源代码网推荐
源代码网推荐 任何超过两个字符以上的缩写都使用camel大写格式,即使这不是标准缩写。
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 <b>名称空间</b><b></b>
源代码网推荐
源代码网推荐 命名名称空间的一般规则如下:
源代码网推荐
源代码网推荐 CompanyName.TechnologyName
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 这样,我们看到的名称空间应该是这样的:
源代码网推荐
源代码网推荐 Microsoft.Office
源代码网推荐
源代码网推荐 PowerSoft.PowerBuilder
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 注意:这只是一个原则。第三方公司可以选择其它的名字。
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 避免用公司名称或其它著名品牌的名称作为名称空间的前缀,这样会造成两个公布的名称空间有同一个名称的可能性。(例如,将微软提供的Office自动类命名为Microsoft.Office。)
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 使用Pascal大写方式,用逗号分隔逻辑成分(例如,Microsoft.Office.PowerPoint)。如果你的品牌使用的是非传统大写方式,那么一定要遵循你的品牌所确定使用的大写方式,即使这种方式背离了通常的名称空间大写规则(例如,NeXT.WebObjects,和ee.cummings。)
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 该用复数的时候要使用复数的名称空间名。例如,使用System.Collections而不是System.Collection。本规则的特例是品牌名称和缩写。例如:使用System.IO而不是System.IOs。
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 名称空间和类不能使用同样的名字。例如,有一个类被命名为Debug后,就不要再使用Debug作为一个名称空间名。
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 <b>类和类成分</b><b></b>
源代码网推荐
源代码网推荐 <b> </b>
源代码网推荐
源代码网推荐 <b>类的命名原则</b>
源代码网推荐
源代码网推荐 用名词或名词短语命名类。
源代码网推荐
源代码网推荐 使用Pascal大写。
源代码网推荐
源代码网推荐 减少类名中缩写的使用量。
源代码网推荐
源代码网推荐 不要使用任何类前缀(比如C)。
源代码网推荐
源代码网推荐 不要使用带下划线的字符。
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 下面是一些正确命名的类名的例子。
源代码网推荐
源代码网推荐 public class <b>FileStream</b> {
源代码网推荐
源代码网推荐 }
源代码网推荐
源代码网推荐 public class <b>Button </b>{
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 }
源代码网推荐
源代码网推荐 public class <b>String</b> {
源代码网推荐
源代码网推荐 }
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 <b>接口命名原则</b>
源代码网推荐
源代码网推荐 使用名词或名词短语,或者描述行为的形容词来命名接口。例如,IComponent(描述性名词),ICustomAttributeProvider(名词短语),和IPersistable(形容词)。
源代码网推荐
源代码网推荐 使用Pascal大写。
源代码网推荐
源代码网推荐 减少接口名中缩写的使用量。
源代码网推荐
源代码网推荐 不要使用带下划线的字符。
源代码网推荐
源代码网推荐 在接口名前加前缀I,以表示这个类型是一个接口。
源代码网推荐
源代码网推荐 不要在类名前加上前缀C。偶而情况下,需要在类名前加上I而并不表示它是一个接口。在这种情况下,只要I后面的字符是小写就可(例如,IdentityStore。)
源代码网推荐
源代码网推荐 当类是接口的标准执行时,定义这一对类/接口组合就要使用相似的名称。两个名称的不同之处只是接口名前有一个I前缀。
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 下面我们举个例子,来看看接口IComponent和它的标准执行,类Component。
源代码网推荐
源代码网推荐 public interface <b>IComponent</b> {
源代码网推荐
源代码网推荐 }
源代码网推荐
源代码网推荐 public class Component : <b>IComponent </b>{
源代码网推荐
源代码网推荐 }
源代码网推荐
源代码网推荐 public interface <b>IServiceProvider</b>{
源代码网推荐
源代码网推荐 }
源代码网推荐
源代码网推荐 public interface <b>IFormatable</b> {
源代码网推荐
源代码网推荐 }
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 <b>属性命名原则</b>
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 在属性的后面加上Attribute后缀,来自定义属性类。如下例所示。
源代码网推荐
源代码网推荐 public class <b>ObsoleteAttribute</b>{
源代码网推荐
源代码网推荐 }
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 <b>Enum</b><b>命名原则</b>
源代码网推荐
源代码网推荐 Enum需使用Pascal大写。
源代码网推荐
源代码网推荐 Enum值名需使用Pascal大写。
源代码网推荐
源代码网推荐 减少enum名中缩写的使用量。
源代码网推荐
源代码网推荐 Enum名前不要加前缀(例如,adxxx表示ADO enums,rtfxxx表示多信息文本enum,等等。)。
源代码网推荐
源代码网推荐 在enum类型上不要加Enum后缀。
源代码网推荐
源代码网推荐 Enum名称需使用单数名词。
源代码网推荐
源代码网推荐 比特域使用复数名词。
源代码网推荐
源代码网推荐 如果列举值在参数或属性中使用,需用一个enum来定义列举值。这样工具就可以知道一个属性或参数可能的值了。
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 public enum FileMode{
源代码网推荐
源代码网推荐 Create,
源代码网推荐
源代码网推荐 CreateNew,
源代码网推荐
源代码网推荐 Open,
源代码网推荐
源代码网推荐 OpenOrCreate,
源代码网推荐
源代码网推荐 Truncate
源代码网推荐
源代码网推荐 }
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 如果数字值to be bitwise or"ed together,就使用Flags对属性进行自定义。
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 [Flags]
源代码网推荐
源代码网推荐 public enum Bindings {
源代码网推荐
源代码网推荐 CreateInstance,
源代码网推荐
源代码网推荐 DefaultBinding,
源代码网推荐
源代码网推荐 ExcatBinding,
源代码网推荐
源代码网推荐 GetField,
源代码网推荐
源代码网推荐 GetProperty,
源代码网推荐
源代码网推荐 IgnoreCase,
源代码网推荐
源代码网推荐 InvokeMethod,
源代码网推荐
源代码网推荐 NonPublic,
源代码网推荐
源代码网推荐 OABinding,
源代码网推荐
源代码网推荐 SetField
源代码网推荐
源代码网推荐 SetProperty,
源代码网推荐
源代码网推荐 Static
源代码网推荐
源代码网推荐 }
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 在封装一个Win32 API时,这个规则有一个特例。从一个Win32标头产生内部定义是很常见的。你可以使用Win32大写,这种形式下字母通常全部大写。
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 使用Int32作为一个enum的基础类型。
源代码网推荐
源代码网推荐 如果这个enum代表标志,而且标志又非常多(大于32),或者这个enum在将来可以发展成许多标志,或者类型需要与类型int有所不同以便向后兼容时,在这种情况下就产生了特例。
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 只有在值可以被完全表示为一组位标志时,才使用enum。开集不能使用enum(例如操作系统版,等等)。
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 <b>只读和</b><b>Const</b><b>字段名</b><b></b>
源代码网推荐
源代码网推荐 用名词,名词短语,或名词的缩写命名静态字段。
源代码网推荐
源代码网推荐 用Pascal大写命名静态字段。
源代码网推荐
源代码网推荐 不要用匈牙利文类型的符号作静态字段名的前缀。
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 <b>参数名</b>
源代码网推荐
源代码网推荐 使用描述性参数名。参数名应该具有足够的描述性,这样在大多数情况下参数名和它的种类可以用来确定它的意思。
源代码网推荐
源代码网推荐 用camel大写方式命名参数。
源代码网推荐
源代码网推荐 根据参数的意思来命名参数,而不是根据参数的种类来命名。我们希望开发工具可以用很方便的方式提供关于参数种类的信息,这样参数名可以得到更好的使用,可以对语义而不是对种类进行描述。但是偶尔使用根据类型命名的参数名也是完全可以的。
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 不要使用保留参数。如果在下一个版本中需要更多的数据,可以增加进来。
源代码网推荐
源代码网推荐 不要用匈牙利文类型的符号作为字段名的前缀。
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 Type GetType (string <b>typeName</b>)
源代码网推荐
源代码网推荐 string Format (string <b>format</b>, object [] <b>args</b>)
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 <b>方法命名原则</b>
源代码网推荐
源代码网推荐 用动词或动词短语命名方法。
源代码网推荐
源代码网推荐 用下述范例所示的Pascal大写方式命名方法。
源代码网推荐
源代码网推荐 RemoveAll()
源代码网推荐
源代码网推荐 GetCharArray()
源代码网推荐
源代码网推荐 Invoke()
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 <b>属性命名原则</b>
源代码网推荐
源代码网推荐 用名词或名词短语命名属性。
源代码网推荐
源代码网推荐 用Pascal大写命名属性。
源代码网推荐
源代码网推荐 属性与类型要一样。
源代码网推荐
源代码网推荐 用与一个类型的名称相同的名字来命名属性时,就使这个属性的类型成为那个类型。虽然听起来有些奇怪,但这是正确的。下面的例子正确使用了属性命名原则。
源代码网推荐
源代码网推荐 public enum Color {...}
源代码网推荐
源代码网推荐 public class Control {
源代码网推荐
源代码网推荐 public Color Color { get {...} set {...} }
源代码网推荐
源代码网推荐 }
源代码网推荐
源代码网推荐 下例就是不正确的。
源代码网推荐
源代码网推荐 public enum Color {...}
源代码网推荐
源代码网推荐 public class Control {
源代码网推荐
源代码网推荐 public int Color { get {...} set {...} }
源代码网推荐
源代码网推荐 }
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 在那个不正确的例子中,要想引用Color enum是不可能的,因为Color,Xxx会被翻译成一个成员访问,它会首先获得Color属性的值(int种类),然后再访问那个值的成员(它应该是System.Int32的一个实例成员)。
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 <b>事件命名原则</b>
源代码网推荐
源代码网推荐 用EventHandloer后缀命名事件处理程序,如下列所示。
源代码网推荐
源代码网推荐 public delegate void <b>MouseEventHandler</b>(object sender, MouseEvent e);
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 使用名为sender和e的两个参数。
源代码网推荐
源代码网推荐 Sender参数代表提出事件的对象。Sender参数永远是一个类型对象,即使它可能使用了更为特定的类型。
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 与事件相关的状态被封装在一个名为e的事件类范例中。要使用这个类型的正确的、特定的事件类。
源代码网推荐
源代码网推荐 public delegate void MouseEventHandler(object <b>sender</b>, MouseEvent <b>e</b>);
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 用EventArgs后缀命名事件自变量类,如下例所示。
源代码网推荐
源代码网推荐 public class MouseEventArgs : EventArgs {
源代码网推荐
源代码网推荐 int x;
源代码网推荐
源代码网推荐 int y;
源代码网推荐
源代码网推荐 public MouseEventArgs(int x, int y)
源代码网推荐
源代码网推荐 { this.x = x; this.y = y; }
源代码网推荐
源代码网推荐 public int X { get { return x; } }
源代码网推荐
源代码网推荐 public int Y { get { return y; } }
源代码网推荐
源代码网推荐 }
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 命名事件名时,需要有之前和之后的时态概念,因此要使用现在时态和过去时态(不要使用BeforeXxxAfterXxx的方式)。例如,可以被取消的结束事件就有Closing事件和Closed事件。
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 public event ControlEventHandler ControlAdded {
源代码网推荐
源代码网推荐 //..
源代码网推荐
源代码网推荐 }
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 用动词命名事件。
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 <b>区分大小写</b>
源代码网推荐
源代码网推荐 不要使用需要对大小写作出区分的名称。各成分不论是在区分大小写还是不区分大小写的语言下都必须是完全可用的。因为不区分大小写的语言不能在同样的环境下对只有大小写不同的两个名称作出辩别,所以成分必须避免这种情况。
源代码网推荐
源代码网推荐 不要产生两个名称相同只有大小写不同的名称空间。
源代码网推荐
源代码网推荐 namespace ee.cummings;
源代码网推荐
源代码网推荐 namespace Ee.Cummings;
源代码网推荐
源代码网推荐 带有两个参数的一个类型,其两个参数的名称不能只有大小写不同。
源代码网推荐
源代码网推荐 void foo(string a, string A)
源代码网推荐
源代码网推荐 System.WinForms.Point p;
源代码网推荐
源代码网推荐 System.WinForms.POINT pp;
源代码网推荐
源代码网推荐 带有两个属性的一个类型,其属性的名称不能只有大小写不同。
源代码网推荐
源代码网推荐 int Foo {get, set};
源代码网推荐
源代码网推荐 int FOO {get, set}
源代码网推荐
源代码网推荐 带有两种方法的一个类型,其方法的名称不能只有大小写不同。
源代码网推荐
源代码网推荐 void foo();
源代码网推荐
源代码网推荐 void Foo();
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 <b>避免类型名出现混淆</b>
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 不同的语言使用不同的术语以识别基本管理类型。设计人员必须避免使用对语言有专门要求的术语。遵照本章说明的规则,避免出现类型名称混淆的情况。
源代码网推荐
源代码网推荐 使用语义上有意义的名称,而不要使用类型名称。
源代码网推荐
源代码网推荐 在很少见的情况下,参数除了类型以外语义上没有任何意义,这时使用类属名。例如,一个类支持将多种数据类型写进一个流中,这个类可能有下列方法:
源代码网推荐
源代码网推荐 void Write(double value);
源代码网推荐
源代码网推荐 void Write(float value);
源代码网推荐
源代码网推荐 void Write(long value);
源代码网推荐
源代码网推荐 void Write(int value);
源代码网推荐
源代码网推荐 void Write(short value);
源代码网推荐
源代码网推荐 上面的例子在下述对语言有专门要求的情况下是首选。
源代码网推荐
源代码网推荐 void Write(double doubleValue);
源代码网推荐
源代码网推荐 void Write(float floatValue);
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 void Write(long longValue);
源代码网推荐
源代码网推荐 void Write(int intValue);
源代码网推荐
源代码网推荐 void Write(short shortValue);
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 在极端情况下,每一个基本数据类型需要有唯一的命名方式,此时使用下面的通用类型名称。<table class=ubb cellspacing=0><tr><td class=ubb>
源代码网推荐
源代码网推荐 <b>C# type name</b></td><td class=ubb>
源代码网推荐
源代码网推荐 <b>Visual Basic type name</b></td><td class=ubb>
源代码网推荐
源代码网推荐 <b>Js cript type name</b></td><td class=ubb>
源代码网推荐
源代码网推荐 <b>Visual C++ type name</b></td><td class=ubb>
源代码网推荐
源代码网推荐 <b>IL representation</b></td><td class=ubb>
源代码网推荐
源代码网推荐 <b>Universal type name</b></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 sbyte</td><td class=ubb>
源代码网推荐
源代码网推荐 SByte</td><td class=ubb>
源代码网推荐
源代码网推荐 SByte</td><td class=ubb>
源代码网推荐
源代码网推荐 char</td><td class=ubb>
源代码网推荐
源代码网推荐 I1</td><td class=ubb>
源代码网推荐
源代码网推荐 <b>SByte</b></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 byte</td><td class=ubb>
源代码网推荐
源代码网推荐 Byte</td><td class=ubb>
源代码网推荐
源代码网推荐 byte</td><td class=ubb>
源代码网推荐
源代码网推荐 unsigned char</td><td class=ubb>
源代码网推荐
源代码网推荐 U1</td><td class=ubb>
源代码网推荐
源代码网推荐 <b>Byte</b></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 short</td><td class=ubb>
源代码网推荐
源代码网推荐 Short</td><td class=ubb>
源代码网推荐
源代码网推荐 short</td><td class=ubb>
源代码网推荐
源代码网推荐 short</td><td class=ubb>
源代码网推荐
源代码网推荐 I2</td><td class=ubb>
源代码网推荐
源代码网推荐 <b>Int16</b></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 ushort</td><td class=ubb>
源代码网推荐
源代码网推荐 UInt16</td><td class=ubb>
源代码网推荐
源代码网推荐 UInt16</td><td class=ubb>
源代码网推荐
源代码网推荐 unsigned short</td><td class=ubb>
源代码网推荐
源代码网推荐 U2</td><td class=ubb>
源代码网推荐
源代码网推荐 <b>UInt16</b></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 int</td><td class=ubb>
源代码网推荐
源代码网推荐 Integer</td><td class=ubb>
源代码网推荐
源代码网推荐 int</td><td class=ubb>
源代码网推荐
源代码网推荐 int</td><td class=ubb>
源代码网推荐
源代码网推荐 I4</td><td class=ubb>
源代码网推荐
源代码网推荐 <b>Int32</b></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 uint</td><td class=ubb>
源代码网推荐
源代码网推荐 NA</td><td class=ubb>
源代码网推荐
源代码网推荐 NA</td><td class=ubb>
源代码网推荐
源代码网推荐 unsigned int</td><td class=ubb>
源代码网推荐
源代码网推荐 U4</td><td class=ubb>
源代码网推荐
源代码网推荐 <b>UInt32</b></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 long</td><td class=ubb>
源代码网推荐
源代码网推荐 Long</td><td class=ubb>
源代码网推荐
源代码网推荐 long</td><td class=ubb>
源代码网推荐
源代码网推荐 __int64</td><td class=ubb>
源代码网推荐
源代码网推荐 I8</td><td class=ubb>
源代码网推荐
源代码网推荐 <b>Int64</b></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 ulong</td><td class=ubb>
源代码网推荐
源代码网推荐 UInt64</td><td class=ubb>
源代码网推荐
源代码网推荐 UInt64</td><td class=ubb>
源代码网推荐
源代码网推荐 Unsigned __int64</td><td class=ubb>
源代码网推荐
源代码网推荐 U8</td><td class=ubb>
源代码网推荐
源代码网推荐 <b>UInt64</b></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 float</td><td class=ubb>
源代码网推荐
源代码网推荐 Single</td><td class=ubb>
源代码网推荐
源代码网推荐 float</td><td class=ubb>
源代码网推荐
源代码网推荐 float</td><td class=ubb>
源代码网推荐
源代码网推荐 R4</td><td class=ubb>
源代码网推荐
源代码网推荐 <b>Single</b></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 double</td><td class=ubb>
源代码网推荐
源代码网推荐 Double</td><td class=ubb>
源代码网推荐
源代码网推荐 double</td><td class=ubb>
源代码网推荐
源代码网推荐 double</td><td class=ubb>
源代码网推荐
源代码网推荐 R8</td><td class=ubb>
源代码网推荐
源代码网推荐 <b>Double</b></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 bool</td><td class=ubb>
源代码网推荐
源代码网推荐 Boolean</td><td class=ubb>
源代码网推荐
源代码网推荐 boolean</td><td class=ubb>
源代码网推荐
源代码网推荐 bool</td><td class=ubb>
源代码网推荐
源代码网推荐 I4</td><td class=ubb>
源代码网推荐
源代码网推荐 <b>Boolean</b></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 char</td><td class=ubb>
源代码网推荐
源代码网推荐 Char</td><td class=ubb>
源代码网推荐
源代码网推荐 char</td><td class=ubb>
源代码网推荐
源代码网推荐 wchar_t</td><td class=ubb>
源代码网推荐
源代码网推荐 U2</td><td class=ubb>
源代码网推荐
源代码网推荐 <b>Char</b></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 string</td><td class=ubb>
源代码网推荐
源代码网推荐 String</td><td class=ubb>
源代码网推荐
源代码网推荐 String</td><td class=ubb>
源代码网推荐
源代码网推荐 String</td><td class=ubb>
源代码网推荐
源代码网推荐 System.String</td><td class=ubb>
源代码网推荐
源代码网推荐 <b>String</b></td></tr><tr><td class=ubb>
源代码网推荐
源代码网推荐 object</td><td class=ubb>
源代码网推荐
源代码网推荐 Object</td><td class=ubb>
源代码网推荐
源代码网推荐 Object</td><td class=ubb>
源代码网推荐
源代码网推荐 Object</td><td class=ubb>
源代码网推荐
源代码网推荐 System.Object</td><td class=ubb>
源代码网推荐
源代码网推荐 <b>Object</b></td></tr></table>
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 一个支持从流中读取多种数据类型的类可以有下列方法。
源代码网推荐
源代码网推荐 double ReadDouble();
源代码网推荐
源代码网推荐 float ReadSingle();
源代码网推荐
源代码网推荐 long ReadIn64();
源代码网推荐
源代码网推荐 int ReadInt32();
源代码网推荐
源代码网推荐 short ReadInt16();
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐 上面的例子在下述对语言有专门要求的情况下是首选。
源代码网推荐
源代码网推荐 double ReadDouble();
源代码网推荐
源代码网推荐 float ReadFloat();
源代码网推荐
源代码网推荐 long ReadLong();
源代码网推荐
源代码网推荐 int ReadInt();
源代码网推荐
源代码网推荐 short ReadShort();
源代码网推荐        

源代码网供稿.
网友评论 (0)
会员中心
网络编程
本站推荐
网络编程之精华