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

Home >Search > Sample Chapters > C-Sharp

What's New - What's Hot
C# Essentials     
Total Hits: 303  |  Today: 0Author: Ben Albahari, Peter Drayton, Brad Merrill      Rating:  
Read Reviews | Write Review |  Your Rating: 

Concise but thorough, C# Essentials introduces the brand-new Microsoft C# programming language and the Microsoft .NET Common Language Runtime (CLR) and Base Class Libraries (BCL) that support it. The compact format and terse presentation of key concepts serve as a roadmap to the online documentation included with the Microsoft .NET Framework SDK; the many examples provide much-needed context....

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

Sample chapter7 from Inside C#. This chapter will break the pattern of presenting one major feature of the language per chapter. In this chapter, you’ll learn about properties, arrays, and indexers because these language features share a common bond. They enable you, the C# class developer, to extend the basic class/field/method structure of a class to expose a more intuitive and natural interface to your class’s members....

Server.HtmlEncode vs HttpUtility.HtmlEncode  Version: 0.00     Price: $0.00  
Total Hits: 96  |  Today: 0Author: Tulika45      Rating:  
Read Reviews | Write Review |  Your Rating: 

Server.HtmlEncode is equivalent to System.Web.HttpContext.Current.Server.HtmlEncode. The Server Object is an instance of the System.Web.HttpServerUtility class and it is readily accessible through any .aspx page since they inherit from the Page object which in turn has a Server Object instance....

WSDL and Schema Parser  Version: 0.00     Price: $0.00  
Total Hits: 173  |  Today: 0Author: Thanh Dao      Rating:  
Read Reviews | Write Review |  Your Rating: 

If you want to aggregate a web service with your application service, or if you are trying to implement someone else's WSDL, then you need to pay attention while viewing them. That means you are encountering the web service interoperability problem. That was the problem I had too, and I thought that having a GUI for viewing a WSDL like tree structure could be really cool....

Shell Sort     
Total Hits: 114  |  Today: 0Author:      Rating:  
Read Reviews | Write Review |  Your Rating: 

The shell sort is a "diminishing increment sort", better known as a "comb sort" to the unwashed programming masses. The algorithm makes multiple passes through the list, and each time sorts a number of equally sized sets using the Insertion Sort. The size of the set to be sorted gets larger with each pass through the list, until the set consists of the entire list. (Note that as the size of the set increases, the number of sets to be sorted decreases.)...

Fast late-bound calls with generics in .NET     
Total Hits: 146  |  Today: 0Author: Alexey Zubritsky      Rating:  
Read Reviews | Write Review |  Your Rating: 

Imagine that you are using a dynamically created library. Imagine you are constructing a plug-in engine for your application. You will attach assemblies dynamically in both these cases. Then it will be necessary to create instances of some unknown classes from attached assemblies. Maybe you even will need to call some unknown functions of these unknown classes. You can solve a part of such problems with usage of base classes and interfaces. However, several situations require reflection anyway. ...

Teach Yourself C# in 24 Hours - Chapter 21 - Working with a Database in C#     
Total Hits: 364  |  Today: 0Author: James Foxall and Wendy Haro-Chun.      Rating:  
Read Reviews | Write Review |  Your Rating: 

You've heard it so many times that it's almost a cliché: This is the information age. Information is data, and managing information means working with databases. Database design is a skill unto itself, and entire books are devoted to database design and management. In this hour, you'll learn the basics of working with a database using ADO.NET, Microsoft's newest database technology. Although high-end solutions are built around advanced database technologies such as Microsoft's SQL Server, the Mi...

C# Unleashed - Chapter 16 - C# and Graphical User Interfaces     
Total Hits: 569  |  Today: 0Author: Joseph Mayo      Rating:  
Read Reviews | Write Review |  Your Rating: 

In This Chapter
-N-Tier Architecture
Windows Forms are the Graphical User Interface (GUI) libraries of the Microsoft .NET Frameworks. The
Windows Forms library contains most of the graphical controls familiar to GUI programmers. All of the concepts
learned in previous chapters are applied when doing GUI programming. Of special significance is the use of events to connect GUI controls, such as buttons, to the code that implements the program's behavi...

Advanced C# Class Construction Techniques     
Total Hits: 229  |  Today: 0Author: ANDREW TROELSEN      Rating:  
Read Reviews | Write Review |  Your Rating: 

This chapter rounds out your introduction to the core aspects of the C# language by examining a number of advanced (but extremely useful syntactic constructs.To begin, you learn how to construct and use an indexer method. This C# mechanism
enables you to build custom types, which exposes internal subtypes using the familiar bracket operator (i.e., []). If you have a C++ background, you will find that creating a C# indexer method is analogous to overloading the [] operator on a C++ class. Once...

Chapter 19 "An Object Oriented Draw Program"     
Total Hits: 525  |  Today: 0Author: Jeff Louie      Rating:  
Read Reviews | Write Review |  Your Rating: 

Congratulations! If you have survived these past 18 chapters, it is finally time to put together a working program that demonstrates many of the concepts presented in this "Twisted Tutorial on Object Oriented Programming". The following "Draw" program dynamically populates a "Shape" menu with DrawableShape choices and draws the shapes on mouse up. The program then adds the DrawableShape object to an ArrayList named drawHistory. Each DrawableShape object in the ArrayList stores its own state incl...

Chapter 18 "Dynamic Class Factories"     
Total Hits: 512  |  Today: 0Author: Jeff Louie      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this chapter you will learn two approaches to creating a "growable" class factory. The first approach simply makes use of Types and Activator.CreateInstance to build a class factory. The second approach abstracts object creation into an Interface, IConstructDrawableShape. The interface based class factory makes use of a helper class to adapt an existing Drawable class to a menu driven class factory. The first step is to declare the IDrawableShape interface and code an abstract base class, Abs...

Chapter 14 "Exceptions and Exception Handling"     
Total Hits: 438  |  Today: 0Author: Jeff Louie      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this chapter, I am going to ramble about and suggest one alternative system for declaring, using and handling exceptions. I will then go on to discuss checked exceptions, design by contract, validation pre-conditions and assertions. The first fundamental question is "What is an exception?" or "When should an exception be thrown?" In the past, exceptions were said to signal an exceptional condition, not routine errors. David Abrahams has argued that one person's exception is another person's e...

Chapter 9 "Interfaces"     
Total Hits: 700  |  Today: 0Author: Jeff Louie      Rating:  
Read Reviews | Write Review |  Your Rating: 

Although I danced around this subject in the tutorial, I never explicitly tried to explain an interface. C# has a key word interface which allows you to describe a contract without any implementation. An interface can contain zero or more abstract methods. You cannot create an instance of an interface. As I suggested in the tutorial, an interface is similar to a pure virtual class in C++. It describes a set of method signatures, but does not provide any implementation details. An interface descr...

Chapter 25 "Multi-Threaded Programming"     
Total Hits: 193  |  Today: 0Author: Jeff Louie      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this chapter I will touch upon the difficult topic of multi-threaded programming including concurrency, locks and threads. I will present an approach to coding safe multi-thread code using inheritance. In a nutshell, I suggest a division of labor in which all "critical sections" are encapsulated into an abstract base class. This base class encapsulates or hides the complexity of thread safe access and operations on shared variables....

Chapter 2 "Where Is My Inheritance?"     
Total Hits: 134  |  Today: 0Author: Jeff Louie      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this chapter you will learn how the fictional character Phaedrus explains the complex subject of a class hierarchy in "Zen and the Art of Motorcycle Maintenance," Robert M. Pirsig, Quill, 1974, 418 pp. You will also learn the art of "black box programming" with abstract classes and abstract methods....

C# For Beginners     
Total Hits: 526  |  Today: 0Author: Anand Narayanaswamy      Rating:  
Read Reviews | Write Review |  Your Rating: 

These are the sample chapters on C#, introduces All About Microsoft. NET, .NET Framework Process, Terms Associated with Microsoft. NET, Begin C-sharp Introduction, Basic Requirements to begin C# Programming, First C# Program, Getting Started with Hello C-Sharp....

Introduction to SLP Services Environment Setup     
Total Hits: 264  |  Today: 0Author: Sateesh Kumar      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this article, we will look into setting up the environment for SLP Services. For small ISVs, it is hard to maintain their own licensing systems. So, it is feasible to go with SLP online services provided by Microsoft. In order to use SLP online services, we need to have an account. Go to SLP Site and click on New User as shown below:...

Heap Sort     
Total Hits: 224  |  Today: 0Author:      Rating:  
Read Reviews | Write Review |  Your Rating: 

The heap sort does not require massive recursion or multiple arrays to work. This makes it an attractive option for very large data sets of millions of items. The heap sort works as it name suggests - it begins by building a heap out of the data set, and then removing the largest item and placing it at the end of the sorted array. After removing the largest item, it reconstructs the heap and removes the largest remaining item and places it in the next open position from the end of the sorted arr...

Asynchronous implementation of SMTP Mailing in .Net     
Total Hits: 132  |  Today: 0Author: Diablo iii      Rating:  
Read Reviews | Write Review |  Your Rating: 

A simple article on Asynchronous implementation of SMTPClient for sending emails through SMTP Server.......

1  2  3  4  

Disclaimer - Privacy
© 2002-2017