tailieunhanh - C Sharp part8

Xem bảng dưới đây. | Comments Single line only Rem Single line only G Single line Multiple Line XML comments on single line XML comments on multiple lines Program Structure Imports System .Wamespace MyNameSpace Class HelloWorld Ent r y p o i nt will ah de 1 e gat e s to C -style main Private Function Public Overloads Shared Suh Main Main End Suh Overloads Shared Suh Main args As String Hello World End Sub Main End Class HelloWorld End Bamespace MyJJerne Space c using System Namespace MyName Sp ac e class HelloWorld static void Main string j args Hello World1 Data Types C Value Types j Value Types Booléen bool Byte byte sbyte Char exemple A char ex smp1e A 1 li o r t 1nt e g e r f L o n g s li o r t f u s li o r t i nt f u i nt f 1 o n g f u 1 o n g Single Double float double Décimal decimal Date DateTime Reference Types Reference Types 0bj ect object String string Dim. x As Integer int x TypeName x typeof int Type conver s i on Type conversion Dim d As Single float d Dim i As Integer CType d Integer int i int d i CInt d i Int d Constants Const MAX_AUTH0RS As Integer 25 Readonly MIN_RANK As Single G const int HAX_AUTHORS 25 readonly float MIN_RAJJKING Enumerations Enun Action Start Stop is a reserved word Stop Rewind Forward End Snum Enum Status Flunk 50 Pass 70 Excel 90 End Enum Din a As Action Action. Stop If a Action. Start Then _ Prints Stop is 1 S is g a Prints 70 Syst St at Prints Pass i Enum Weekdays S atur day Sund ay Monday Tues day W e dm e s day Thu r s day Friday End. Enum Weekdays C enum Action Start Stop Rewind Forward enun Status Flunk 50 Pass 70 Excel 90 Action a if a Prints Stop is 1 .