Search - Articles
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Tuesday, March 03, 2009
Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 


Home >Search > Sample Chapters > C-Sharp


Search:
What's New - What's Hot
Chapter 7 "To Inherit or Contain? That is the Question."     
Total Hits: 144  |  Today: 0Author: Jeff Louie      Rating:  
Read Reviews | Write Review |  Your Rating: 

In Chapter 2, you visited the design conundrum of using inheritance or containment. In this chapter you will use both. First you will use implementation inheritance to create a custom, type safe, null safe collection. You will then use containment to wrap the custom collection and "adapt" the read/write collection interface to a read only interface. Here again is the discussion from Chapter 2: One difficult design decision is to decide if a class should inherit from a parent class or hold a refe...

Chapter 5 "C++ and Java Gumption Traps"     
Total Hits: 410  |  Today: 0Author: Jeff Louie      Rating:  
Read Reviews | Write Review |  Your Rating: 

It's time for another break from theory and on to some real world programming challenges. In this chapter, you take a detour into the world of gumption traps. A gumption trap is a situation that is so frustrating that it sucks the "gumption" or energy out of you. Surprisingly, a lot of gumption traps come from preconceived notions of what "should" be correct. C++ and Java programmers are prone to gumption traps due to their assumptions about the C# language. In other words, C++ and Java programm...

Chapter 3 "Model--View/Controller"     
Total Hits: 516  |  Today: 0Author: Jeff Louie      Rating:  
Read Reviews | Write Review |  Your Rating: 

Enough theory. It's time to code! In this chapter, you will learn about the most basic design pattern, the Model--View/Controller architecture (M-VC). This lesson contains the complete source code of a Model class that encapsulates the complex math required to do mortgage calculations. You will then create a working Mortgage calculator as a Windows Form application. Finally, you will reuse the Model class to create a working calculator as a Web Form application. This is all working C# code that ...

Programming C#: Attributes and Reflection     
Total Hits: 479  |  Today: 0Author: Jesse Liberty      Rating:  
Read Reviews | Write Review |  Your Rating: 

Throughout this book, I have emphasized that a .NET application contains code, data, and metadata. Metadata is information about the data -- that is, information about the types, code, assembly, and so forth -- that is stored along with your program. This chapter will explore how some of that metadata is created and used....

Attributes and Reflection     
Total Hits: 147  |  Today: 0Author: Jesse Liberty      Rating:  
Read Reviews | Write Review |  Your Rating: 

Throughout this book, I have emphasized that a .NET application contains code, data, and metadata. Metadata is information about the data--that is, information about the types, code, assembly, and so forth--that is stored along with your program. This chapter will explore how some of that metadata is created and used....

101 Visual Basic and C# Code Samples     
Total Hits: 2277  |  Today: 0Author: Microsoft      Rating:  
Read Reviews | Write Review |  Your Rating: 

This download includes a master set of Visual Basic and Visual C# code samples demonstrating various aspects of the language in the following areas: syntax, data access, Windows Forms, Web development and Web services, XML, security, the .NET Framework, file system and file I/O, interop and migration issues, COM+, ADO.NET, and advanced topics including graphics with GDI+, remoting, serialization, MSMQ, and Windows services....

A Sample Chapter from C# Programmers Reference      
Total Hits: 1928  |  Today: 0Author: Wrox Publication      Rating:  
Read Reviews | Write Review |  Your Rating: 

The type is the basic building block of any C# program. Every piece of data in a C# program has a strongly-defined type (there is no variant type or direct equivalent). This is rue not just of the primitive types such as bytes and integers, but also of objects, structs, and enumerations. A variable's type identifies its nature, both to the developer, and to the compiler and runtime. The C# language and .NET Framework define an efficient system for categorizing, accessing, and manipulating differ...

Introducing C# and the .NET Framework     
Total Hits: 1429  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

Sample chapter 1 from C# in a Nutshell
C# is a new programming language from Microsoft designed specifically to target the .NET Framework. Microsoft's .NET Framework is a runtime environment and class library that dramatically simplifies the development and deployment of modern, component-based applications....

C# Language Introduction     
Total Hits: 1234  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

Sample chapter 1 from C# Essentials, 2nd Edition
C# is a language built specifically to program the Microsoft .NET Framework. The .NET Framework consists of a runtime environment called the Common Language Runtime (CLR), and a set of class libraries, which provide a rich development platform that can be exploited by a variety of languages and tools....

Attributes and Reflection     
Total Hits: 637  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

Sample Chapter 18 from Programming C#, 2nd Edition
Throughout this book, I have emphasized that a .NET application contains code, data, and metadata. Metadata is information about the data--that is, information about the types, code, assembly, and so forth--stored along with your program. This chapter explores how some of that metadata is created and used....

HOW TO: Wait for a Shelled Application to Finish Using C# (Q305369)     
Total Hits: 1621  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article demonstrates how to use the .NET Framework Process class to start another application from your code and have the code wait for the other application to close before it continues....

Properties, Arrays, and Indexers     
Total Hits: 1236  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

A Sample Chapter from Inside C#.
It’s always a good goal to design classes that not only hide the implementation of the class’s methods, but that also disallow any direct member access to the class’s fields. By providing accessor methods whose job it is to retrieve and set the values of these fields, you can be assured that a field is treated correctly—that is, according to the rules of your specific problem domain—and that any additional processing that’s needed is performed....

A sample chapter from Professional C#     
Total Hits: 2095  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

Chapter 21, Graphics with GDI+ will explain how to use GDI+ to create a customised user interface. It shows how to create items within the area of the screen covered by your application, and how to use your code to control them. The book as a whole will equip you to program in C#, while at the same time providing the necessary background in how the .NET architecture works....

Sharp as C     
Total Hits: 247  |  Today: 0Author: George Shagov      Rating:  
Read Reviews | Write Review |  Your Rating: 

In the beginning was � a word. And the word was � an algorithm!? Or should I say al-khwarizm? What Wikipedia says about the term algorithm?

Citing: �An algorithm (the word is derived from the name of the Persian mathematician Al-Khwarizmi), is a finite set of well-defined instructions for accomplishing some task which, given an initial state, will terminate in a corresponding recognizable end-state�.

Al-Khwarizmi? Citing: �Abu Abdullah Muhammad bi...

Why oh why     
Total Hits: 243  |  Today: 0Author: Joseph A Reddy      Rating:  
Read Reviews | Write Review |  Your Rating: 

For me, in software development, it is all about why. I feel a very strong need to understand why I am doing everything and anything I do. Furthermore, I am upset with myself when I cannot clearly state why, and on the flip side take pride in knowing why: why I choose a minimum of three layers in darn near any application, why I rarely if ever read books on a language, why I don’t blindly choose auto numbers for primary keys in databases, why I prefer business-object-oriented development, why I...

Asynchronous Named Pipe Server using Overlapped I/O in C#     
Total Hits: 281  |  Today: 0Author: Boris Kolesnikov      Rating:  
Read Reviews | Write Review |  Your Rating: 

Lately I’ve read CLR via C# by J. Richter dedicated to the internals of NET 2.0 and C# peculiarities deriving from it. So I’ve decided to practice a little and write my new application in C#. The part of this application I present here. It’s an asynchronous named pipe server using overlapped I/O plus a synchronous (or they also say blocking) named pipe client....

Single App instance in C#: yet another way     
Total Hits: 247  |  Today: 0Author: Vitaly Zayko.      Rating:  
Read Reviews | Write Review |  Your Rating: 

It is very common situation when for some reason you should allow only one instance of an app could be active in on a PC. Unfortunately C# (just like many others languages) does not have such function, so you have to implement it by your self. I found few methods in the Internet how to do this in C#. Some of them are here - on CodeProject. But I would like to introduce one more, which is probably fastest and easiest but has some limitations described below....

C#, Visual Basic and C++ .NET Line Count Utility     
Total Hits: 341  |  Today: 0Author: richnewman.      Rating:  
Read Reviews | Write Review |  Your Rating: 

The attached program is a line count utility written in C#. This:

* Counts the number of lines in a .NET solution, project or individual code file.
* Works with C#, Visual Basic and C++ (.NET solutions and projects only).
* Works with both Visual Studio 2003/.NET 1.1 and Visual Studio 2005/.NET 2.0 (but needs .NET 2.0 to run).
* Provides a sortable grid of results so you can easily find your biggest projects or biggest code files.
* Caches results at all le...

Isolated Storage in .NET to store application data     
Total Hits: 275  |  Today: 0Author: T Manjaly.      Rating:  
Read Reviews | Write Review |  Your Rating: 

Many programmers use the config file to keep the application configuration data. But one disadvantage with this is, it is a read only mechanism. You cannot update data in application config files, using the ConfigurationSettings classes in .NET. In earlier days, .ini files or registry was used to save application specific data....

String.Split     
Total Hits: 554  |  Today: 0Author: Salman Ahmed      Rating:  
Read Reviews | Write Review |  Your Rating: 

This method finds all the substrings in a string that are seperated by one or more characters, returning a string array. This method also has 1 overload where you can specifiy the maximum number of elements in an array to return from the string....


1  2  3  4  Next >> 


Disclaimer - Privacy
© 2002-2017 DevASP.net