c sharp tutorial for beginners with examples

C Sharp 2.0 Practical Guide For Programmers

C Sharp 2.0 Practical Guide For Programmers

... below, one for C (Compilers .C) and another for C# (Compilers.Csharp), can own (and access) different classes with the same name. Therefore, Lexer and Parser for the C compiler are accessed without ... are associated with the namespaces Compilers .C and Compilers.Csharp, respectively: namespace Compilers .C { class Lexer { } class Parser { } } namespace Compilers.Csharp { class Lexer { } class ... System.Collections; // To access ArrayList class. 2 3 namespace Co { 4 namespace System { 5 namespace Collections { 6 public class OurList { /* */ } 7 // 8} 9} 10 namespace Project { 11 public class...

Ngày tải lên: 20/08/2012, 11:57

273 618 2
Building C++CLI Programs for the .NET Developer Platform with Visual C++

Building C++CLI Programs for the .NET Developer Platform with Visual C++

... mode, except for the code in Chapter 12, which deals specifically with unverifiable code, and code that uses specific constructs such as unsafe uses of static_cast. If you’re familiar with C# , ... programmer in the C+ + language with the C+ +/CLI extensions may use classic C+ + code and libraries if needed. In fact, you can compile nearly all classic C+ + code with the /clr option. The C+ + language ... specific to a particular architecture that still runs under the CLR, use the /clr option but use the particular compiler (or cross-compiler) for that architecture. Visual C+ + 2005 ships cross-compilers...

Ngày tải lên: 05/10/2013, 07:20

14 485 0
data entry and validation with c sharp and vb .net windows forms 2003

data entry and validation with c sharp and vb .net windows forms 2003

... access to some screens and other users to have access to other screens. You could easily use CheckBoxes to allow an administrator to check off which screens are allowed for which users. You can ... a VB 6.0 collection: Add Remove Count Item (you will need to implement an iterator for this) For Each p In tc1.TabPages For Each c In p.Controls c. Enabled = True Next Next cmdEdit.Enabled ... must close one document before editing another. Calculator: You can use only one calculator at a time. In a classic SDI program such as Notepad, if you want to edit two documents at once you...

Ngày tải lên: 17/04/2014, 09:16

568 484 0
network programming .net with c sharp and vb.net 2004

network programming .net with c sharp and vb.net 2004

... listenerSocket.Bind(ipepServer) listenerSocket.Listen(-1) clientSocket = listenerSocket.Accept() If clientSocket.Connected Then Do bytesReceived = clientSocket.Receive(recv) tbStatus.Text += Encoding.ASCII.GetString(recv) ... the call to AcceptSocket. Execution will not continue until an incoming connection has been detected; when it has, a new socket is created and dedicated to handling this particular client. Once ... EndPoint. AcceptSocket() Accepts a pending connection request. Returns Socket. AcceptTcpClient() Accepts a pending connection request. Returns TcpClient. Pending() Determines if there are pending connection requests....

Ngày tải lên: 17/04/2014, 09:17

562 2,5K 0
gdi programming with c sharp phần 1 pptx

gdi programming with c sharp phần 1 pptx

... the device context (HDC), which is used by GDI to send information to the device. In GDI+, the concept of device context and handle to the device context is replaced by the Graphics object. The ... the application needs to call the SelectObject function, which takes the device context and pen handle as arguments. Now the application can draw any graphics object. The application calls the ... GDI+Painter Application SUMMARY Chapter 5. Colors, Fonts, and Text Section 5.1. Accessing the Graphics Object Section 5.2. Working with Colors Section 5.3. Working with Fonts Section 5.4....

Ngày tải lên: 12/08/2014, 19:20

71 448 0
gdi programming with c sharp phần 2 ppt

gdi programming with c sharp phần 2 ppt

... rectangle. Intersect Replaces a rectangle with the intersection of itself and another rectangle. IntersectsWith Determines if a specified rectangle intersects with rect. Offset Adjusts the location of a specified ... menu click event handler. The Form class provides the CreateGraphics method, which returns a Graphics object. The following code snippet creates a Graphics object using the CreateGraphics method ... background color of the surface as the background color of the form. Caution When you create a Graphics object using the CreateGraphics method, you must dispose of that object explicitly by calling...

Ngày tải lên: 12/08/2014, 19:20

70 298 0
gdi programming with c sharp phần 3 docx

gdi programming with c sharp phần 3 docx

... (rect, startColor, endColor, mode); } // Gamma correction check box is checked if(checkBox1.Checked) { lgBrush.GammaCorrection = true; } // Fill rectangle g.FillRectangle(lgBrush, rect); ... this class. Alternatively, an application can refer to the HatchBrush class as System.Drawing.Drawing2D.HatchBrush. public HatchBrush(HatchStyle, Color); public HatchBrush(HatchStyle, Color, Color); The ... hatch with the appearance of horizontally layered bricks. LargeCheckerBoard A hatch with the appearance of a checker-board with squares that are twice the size of SmallCheckerBoard. LargeConfetti A...

Ngày tải lên: 12/08/2014, 19:20

70 681 0
Tìm hiểu C Sharp và viết ứng dụng minh họa

Tìm hiểu C Sharp và viết ứng dụng minh họa

... viện ph c vụ cho vi c xây dựng c c ứng dụng web, c c dịch vụ web và c c ứng dụng Windows; c n c CLR - Common Language Runtime: (ngôn ngữ th c thi dùng chung) để th c thi c c đối tượng đư c xây ... lớp g c System.Object. Ngoài ra .Net c n bao gồm Common Language Specification - CLS (đ c tả ngôn ngữ chung). Nó cung c p c c qui t c cơ bản mà ngôn ngữ muốn tích hợp phải thỏa mãn. CLS chỉ ... Data. C c vùng tên này chứa c c lớp thu c về tầng c a mình. Một vùng tên chứa c c lớp và c c vùng tên con kh c. Vậy trong ví dụ trên ta sẽ tạo một vùng tên chung cho ứng dụng là MyApplication...

Ngày tải lên: 16/08/2012, 11:34

282 828 20
Giáo trình C Sharp

Giáo trình C Sharp

... tập tin nguồn (.cs) và c c tập tin th c thi. C ng như giữ c c tập tin nguồn chúng ta c ng c n thiết phải giữ c c tập tin kh c như là c c tài nguyên bên ngoài c c icon, image, form Chúng ta sẽ lưu ... th c thành viên c a lớp. Phương th c chính là c c hàm đư c định nghĩa trong lớp. Do đó, ta c n c thể gọi c c phương th c thành viên là c c hàm thành viên trong một lớp. C c phương th c này chỉ ... C# c thể chạy trên bất c máy nào? Trả lời 1: Không phải tất c . Một chương trình C# chỉ chạy trên máy c Common Language Runtime (CLR) đư c cài đặt. Nếu chúng ta copy một chương trình exe c a...

Ngày tải lên: 16/08/2012, 14:00

389 1,3K 9
Expert Service Oriented Architecture in C Sharp

Expert Service Oriented Architecture in C Sharp

... illustrates an architecture in which two separate Web services access the same back-end business components. Each Web service provides a distinct service interface, each of which is suitable for a different ... service guarantee in the form of a policy description that is contained within the WSDL contract. So-called policy assertions are published with the contract to describe what level of service the ... pick and choose which specifica- tions are important for a particular Web service. To enable this, Web services supports service composition, which allows developers to selectively pick specifications...

Ngày tải lên: 20/08/2012, 13:57

271 588 0
w