.NET 程序的命名规则(选自msdn)
| 标识符 | 大小写方式 | 示例 |
| 类 | Pascal | AppDomain |
| 枚举类型 | Pascal | ErrorLevel |
| 枚举值 | Pascal | FatalError |
| 事件 | Pascal | ValueChange |
| 异常类 | Pascal | WebException 注意 总是以Exception后缀结尾。 |
| 只读的静态字段 | Pascal | RedValue |
| 接口 | Pascal | IDisposable 注意 总是以I前缀开始。 |
| 方法 | Pascal | ToString |
| 命名空间 | Pascal | System.Drawing |
| 参数 | Camel | typeName |
| 属性 | Pascal | BackColor |
| 受保护的实例字段 | Camel | redValue 注意 很少使用。属性优于使用受保护的实例字段。 |
| 公共实例字段 | Pascal | RedValue 注意 很少使用。属性优于使用公共实例字段。 |
| AddHandler | AddressOf | Alias | And | Ansi |
| As | Assembly | Auto | Base | Boolean |
| ByRef | Byte | ByVal | Call | Case |
| Catch | CBool | CByte | CChar | CDate |
| CDec | CDbl | Char | CInt | Class |
| CLng | CObj | Const | CShort | CSng |
| CStr | CType | Date | Decimal | Declare |
| Default | Delegate | Dim | Do | Double |
| Each | Else | ElseIf | End | Enum |
| Erase | Error | Event | Exit | ExternalSource |
| False | Finalize | Finally | Float | For |
| Friend | Function | Get | GetType | Goto |
| Handles | If | Implements | Imports | In |
| Inherits | Integer | Interface | Is | Let |
| Lib | Like | Long | Loop | Me |
| Mod | Module | MustInherit | MustOverride | MyBase |
| MyClass | Namespace | New | Next | Not |
| Nothing | NotInheritable | NotOverridable | Object | On |
| Option | Optional | Or | Overloads | Overridable |
| Overrides | ParamArray | Preserve | Private | Property |
| Protected | Public | RaiseEvent | ReadOnly | ReDim |
| Region | REM | RemoveHandler | Resume | Return |
| Select | Set | Shadows | Shared | Short |
| Single | Static | Step | Stop | String |
| Structure | Sub | SyncLock | Then | Throw |
| To | True | Try | TypeOf | Unicode |
| Until | volatile | When | While | With |
| WithEvents | WriteOnly | Xor | eval | extends |
| instanceof | package | var | | |
| C# 类型名称 | Visual Basic 类型名称 | JScript 类型名称 | Visual C++ 类型名称 | Ilasm.exe表示形式 | 通用类型名称 |
| sbyte | SByte | sByte | char | int8 | SByte |
| byte | Byte | byte | unsigned char | unsigned int8 | Byte |
| short | Short | short | short | int16 | Int16 |
| ushort | UInt16 | ushort | unsigned short | unsigned int16 | UInt16 |
| int | Integer | int | int | int32 | Int32 |
| uint | UInt32 | uint | unsigned int | unsigned int32 |