C# Bible 2002 phần 3 pot

C# Bible 2002 phần 3 pot

C# Bible 2002 phần 3 pot

... designing software. C# is an object-oriented language, and its design ensures that C# developers follow good object-oriented programming concepts. N ote SmallTalk, Java, and C# are pure object-oriented ... members, however, there's really nothing to prevent the code from setting X to 32 ,000 and Y to 38 ,000. The C# compiler allows that because those values fit in an inte...

Ngày tải lên: 05/08/2014, 10:20

54 335 0
C# Bible 2002 phần 10 pot

C# Bible 2002 phần 10 pot

... directory, the console output should look similar to that shown in Figure 33 -5. Figure 33 -5: Output from Listing 33 -2 for(int intX = 0; intX < 50;intX ++) { if(intX == 5) { Thread.Sleep(500); ... events that you wrote in the ActiveX DLL, duplicate Listing 34 -3 in your WindowsForms application. Listing 34 -3: COM Client Code Written in C# /// <summary>...

Ngày tải lên: 05/08/2014, 10:20

93 322 0
Ngôn ngữ lập trình: C# và .NET phần 3 pot

Ngôn ngữ lập trình: C# và .NET phần 3 pot

... tr ì ì nh nâng cao trong C# nh nâng cao trong C# - - Editor Editor : : Đo Đo à à n Quang Minh n Quang Minh 1 1 C# and .NET Framework C# and .NET Framework B B à à i 3: L i 3: L ậ ậ p tr p tr ì ì nh ... delegate L L ậ ậ p tr p tr ì ì nh nâng cao trong C# nh nâng cao trong C# - - Editor Editor : : Đo Đo à à n Quang Minh n Quang Minh 16 16 Unsafe Code Unsafe Code C#...

Ngày tải lên: 31/07/2014, 09:20

17 367 0
C# Bible 2002 phần 1 pdf

C# Bible 2002 phần 1 pdf

... integers. The smallest possible value of a long variable is 9,2 23, 372, 036 ,854,775,808; the largest possible value is 9,2 23, 372, 036 ,854,775,807. ulong Variables with a ulong type can hold 64-bit ... When you define your variable in your C# code, you must give the variable a type. Table 3- 1 describes some of the basic C# variable types. Table 3- 1: Common C# Data Types T...

Ngày tải lên: 05/08/2014, 10:20

40 338 0
C# Bible 2002 phần 2 pptx

C# Bible 2002 phần 2 pptx

... strings in your C# code. You write string literal as discussed in Chapter 3, by enclosing the string in double quotes: string MyVariable = "Hello from C#! "; The C# compiler reuses ... 1 23. The C# compiler converts the integer's value to a long value because the conversion from an int value to a long value is one of the implicit conversions allowed by C#. Table...

Ngày tải lên: 05/08/2014, 10:20

64 224 0
C# Bible 2002 phần 4 ppsx

C# Bible 2002 phần 4 ppsx

... My2DPoint = new Point2D(); Point3D My3DPoint = new Point3D(); My2DPoint.X = 100; My2DPoint.Y = 200; My3DPoint.X = 150; My3DPoint.Y = 250; My3DPoint.Z = 35 0; } } overloaded, and ... { Point2D My2DPoint = new Point2D(100, 200); Point3D My3DPoint = new Point3D(150, 250, 35 0); My2DPoint.PrintToConsole(); My3DPoint.PrintToConsole(); } } The constructor f...

Ngày tải lên: 05/08/2014, 10:20

50 296 0
C# Bible 2002 phần 5 doc

C# Bible 2002 phần 5 doc

... using System.Collections; class MyClass : IEnumerable, IEnumerator Listing 13- 3 reworks Listing 9 -3 and uses the Rainbow class to implement IEnumerable and IEnumerator interfaces; it ... control. The C# language contains special keywords that make it easy for you to fire, publish and subscribe to events in your C# code. You can use these keywords to allow your C# classes...

Ngày tải lên: 05/08/2014, 10:20

60 303 0
C# Bible 2002 phần 6 ppsx

C# Bible 2002 phần 6 ppsx

... because the philosophy of the C# language emphasizes clarity, and the C# compiler always warns about code constructs that are unclear. Solving the Versioning Problem C# offers two ways to resolve ... Listing 18 -3 . Listing 18 -3: Resolving Ambiguity with the new Keyword using System; public class BaseClass { protected int Value; public BaseClass() { Value = 1 23;...

Ngày tải lên: 05/08/2014, 10:20

52 283 0
C# Bible 2002 phần 7 ppsx

C# Bible 2002 phần 7 ppsx

... [nchar](5), @ContactName_2 [nvarchar] (30 ) output, @ContactTitle _3 [nvarchar] (30 ) output) AS SELECT @ContactName_2 = [ContactName], @ContactTitle _3 = [ContactTitle] FROM [Northwind].[dbo].[Customers] ... parameter (#2 of 3) param = selectCommand.Parameters.Add("@ContactName_2", OleDbType.VarChar, 30 ); param.Direction = ParameterDirection.Output; // Add eac...

Ngày tải lên: 05/08/2014, 10:20

60 309 0
C# Bible 2002 phần 8 docx

C# Bible 2002 phần 8 docx

... g.FillEllipse(hb ,30 , 30 , Width-50, 30 ); HatchBrush hb2 = new HatchBrush (HatchStyle.LargeCheckerBoard, Color.AntiqueWhite ,Color.Black); g.FillEllipse(hb2, 30 , 80, Width-50, 30 ); HatchBrush hb3 ... g.FillEllipse(hb3, 30 , 130 , Width-50, 30 ); HatchBrush hb4 = new HatchBrush (HatchStyle.ZigZag, Color.AntiqueWhite ,Color.Black); g.FillEllipse(hb4, 30 , 18...

Ngày tải lên: 05/08/2014, 10:20

55 289 0
w