background preloader

C/C++/C#

Facebook Twitter

CollabNet User Information Center. C#, Visual Studio 2008, Silverlight, ASP.NET, WPF, WCF, WF, and. Datentypen in C# Geschrieben von: Christian Holm Kategorie: C# 159274 Zugriffe. 267 Bewertungen, Durchschnitt 2.68 In diesem Artikel möchte ich Ihnen die Datentypen von C# (sprich "C sharp") erklären.

Datentypen in C#

Obwohl C# mit C++ verwandt ist, hat sich auch einiges in der Definition und in der Behandlung der Datentypen geändert. So einfach sich dieses Thema vielleicht auch anhören mag, Datentypen stellen unter anderem die Grundstruktur eines Programmes dar, und können bei falscher Implementation zu ärgerlichen Compilerfehlern führen. Anmerkung: Dadurch daß in C#, wie auch in C++, der Sourcecode in Englisch gehalten ist, werde ich die sprachspezifischen Befehle, Schlüsselwörter etc., unverändert lassen und gegebenfalls das deutsche Äquivalent verwenden; z.B. floating point- / Fließkomma-. Einteilung der Datentypen Grundsätzlich lassen sich die Datentypen wie folgt in drei Kategorien einteilen: value-type reference-type pointer-type Value-Types Dieser Datentyp ist entweder ein struct-Typ oder ein enumeration-Typ.

Asynchronous Socket Programming in C#: Part I — CodeGuru.com. Objective The objective of this article is to demonstrate a socket-based client/server application that will allow two-way asynchronous communication between a server and multiple client applications.

Asynchronous Socket Programming in C#: Part I — CodeGuru.com

Because this example uses asynchronous methods, the server application does not use threads to communicate to multiple clients (although internally the asynchronous communication mechanism uses threads at the OS level). The Difference Between Synchronous and Asynchronous Communication in Network Programming The key difference between synchronous and asynchronous communication can be explained with an example. Consider a server application that is listening on a specific port to get data from clients. In asynchronous communication, while the server is listening or receiving data from a client, it can still process connection requests from other clients as well as receive data from those clients. Socket Class Example Application Figure 1 The BeginAccept() method has the following signature: C# Frequently Asked Questions : How can I update my user interfa. Eigenes Event erstellen - .NET Windows Forms @ tutorials.de: For.

.NET Compact Framework / Visual C# .NET - Bestseller. Main Page - ZedGraphWiki. Starting threads with parameters in C# Please note: this page is now obsolete.

Starting threads with parameters in C#

It is now part of my larger article about threading. In the C# newsgroup, quite a few people have asked how parameters should be passed to new threads. In other words, if a new thread needs specific information in order to run (as it often does), how do you get that information to the thread? The ThreadStart delegate doesn't take any parameters, so the information has to be stored somewhere else. Typically, this means creating a new instance of a class, and using that instance to store the information.

In some cases, you actually just wish to call a method in some class (possibly the currently executing class) with a specific parameter. Using ThreadPool instead One choice you should always be aware of when starting a new thread is whether it would actually make more sense to use ThreadPool, which will recycle threads for you, and queue items if the pool is full. Calling a delegate asynchronously A future solution: anonymous methods. Strings formatieren mit C#