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
Microsoft Visual C#.NET 2003 Kick Start - Chapter 3 - Object-Oriented Programming in C#     
Total Hits: 300  |  Today: 0Author: Steven Holzner      Rating:  
Read Reviews | Write Review |  Your Rating: 

This chapter discusses object-oriented programming in C#. OOP is what C# is all about; in this chapter, we're
going to specialize on this topic. You may well be an accomplished OOP programmer already, in which case it's
still a good idea to scan this chapter. OOP in C# has several differences from all other object-oriented
languages.If you're an OOP programmer, you know that object-oriented programming centers on creating types. The simple type int lets you declare integer variables, an...

Chapter 12 "Unified Modeling Language"     
Total Hits: 484  |  Today: 0Author: Jeff Louie      Rating:  
Read Reviews | Write Review |  Your Rating: 

I decided to try my hand at annotating the chapters using the UML (Unified Modeling Language) graphical notation. I am having no success finding a standard, language neutral way to represent a C# Property! The use of a <> attribute stereotype and get/set operations is a language dependent notation useful when documenting a Java Bean Property. I have resorted to using the <> stereotype and tagged attribute constraints ({get}, {set} or {get, set}) to represent a generic Propert...

Chapter 4 "Static Methods, Factories & Constructors"     
Total Hits: 155  |  Today: 0Author: Jeff Louie      Rating:  
Read Reviews | Write Review |  Your Rating: 

Well, I've tried as long as possible to avoid the the "nuts and bolts" of object oriented programming. It's sort of like going in to the dentist for a root canal. You know it needs to be done, but it is going to be painful and you want to put it off. The good news is that once you have the root canal the pain goes away! So just dive in. In this chapter you will learn about static methods, factory methods and constructors. You will be introduced to the creational patterns "Class Factory" and "Sin...

"Soft Delete" or "Logical Delete" in ORM  Version: 0.00     Price: $0.00  
Total Hits: 136  |  Today: 0Author: Alex Kofman      Rating:  
Read Reviews | Write Review |  Your Rating: 

People often ask which ORM supports "Soft Delete" or "Logical Delete". Let's try to figure out what it is and whether ORM should internally support it.

"Soft Delete" is a way of removing business entities, which implies that we mark an entity as deleted instead of physically removing it from the database. This approach is often used in Line of Business applications because of its several advantages:

* It allows us to keep history for different auditing sceneries. For example, ...

An Analog Clock Design by openTk C#  Version: 0.00     Price: $0.00  
Total Hits: 230  |  Today: 0Author: kdgupta87      Rating:  
Read Reviews | Write Review |  Your Rating: 

The Open Toolkit is an advanced, low-level C# library that wraps OpenGL, OpenCL and OpenAL. It is suitable for games, scientific applications and any other project that requires 3D graphics, audio or compute functionality. In short, its called OpenTK....

Insertion Sort     
Total Hits: 208  |  Today: 0Author: en.csharp-online.net      Rating:  
Read Reviews | Write Review |  Your Rating: 

The Insertion sort works just like its name suggests - it inserts each item into its proper place in the final list. The simplest implementation of this requires two list structures - the source list and the list into which sorted items are inserted. To save memory, most implementations use an in-place sort that works by moving the current item past the already sorted items and repeatedly swapping it with the preceding item until it is in place....

Quick Sort     
Total Hits: 197  |  Today: 0Author: en.csharp-online.net      Rating:  
Read Reviews | Write Review |  Your Rating: 

The quick sort is an in-place, divide-and-conquer, massively recursive sort. As a normal person would say, it's essentially a faster in-place version of the merge sort. The quick sort algorithm is simple in theory, but very difficult to put into code. The recursive algorithm consists of four steps:
1. If there are one or less elements in the array to be sorted, return immediately.
2. Pick an element in the array to serve as a "pivot" point. (Usually the left-most element in the array...

Merge Sort     
Total Hits: 185  |  Today: 0Author: en.csharp-online.net      Rating:  
Read Reviews | Write Review |  Your Rating: 

The merge sort splits the list to be sorted into two equal halves, and places them in separate arrays. Each array is recursively sorted, and then merged back together to form the final sorted list. Elementary implementations of the merge sort make use of three arrays - one for each half of the data set and one to store the sorted list in. The below algorithm merges the arrays in-place, so only two arrays are required. There are non-recursive versions of the merge sort, but they don't yield any s...

Ohm's Problem     
Total Hits: 546  |  Today: 0Author: Tom Dziedzic.      Rating:  
Read Reviews | Write Review |  Your Rating: 

I have been interested in making electronic components not just for the computer but for the everyday life and self entertainment. I wanted to make all the calculations from ohm's law into a simple program that will enable quick calculations while using the .net framework v.2.0 and in the process using a new language: C#, normally I use C++ but I wanted to switch to the newest technologies out so far. Anyways I have found alot about computer programming like an interesting fact is that the .net ...

Get Logging with the Enterprise Library     
Total Hits: 309  |  Today: 0Author: Piers Lawson      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article is a major re-working of my earlier Getting started with the Logging Application Block article. Whereas that article used Microsoft's Enterprise Instrumentation Framework and the stand-alone Logging Application Block, this article deals with the Logging and Instrumentation Application Block supplied as part of the Enterprise Library.

Have you ever encountered a system where the logging is a twisted pile of spaghetti? One where it seems to save trace messages to five different...

Utility Belt: Xray Demo C#     
Total Hits: 524  |  Today: 0Author: Charles Carroll      Rating:  
Read Reviews | Write Review |  Your Rating: 

The code below calls "Utility Belt" functions.
The Array Manipulation Code is one demo of Array "Utility Belt" functionality including tracing of arrays and datatables....

A Preview of C# - Chapter 7: Namespaces and the Base Classes     
Total Hits: 910  |  Today: 0Author: Wrox      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this chapter we're going to look at the base classes – the vast number of .NET classes that Microsoft has written for you, and also namespaces – the system by which classes are grouped together.A significant part of the power of the .NET framework comes from the base classes supplied by Microsoft as part of the .NET framework. These classes are all callable from C# and provide the kind of basic functionality that is needed by many applications to perform, amongst other things, basic system, W...

Professional C# Sample Chapter: Graphics with GDI+     
Total Hits: 1210  |  Today: 0Author: Wrox Publishing      Rating:  
Read Reviews | Write Review |  Your Rating: 

This is chapter 21 of the book Professional C# from Wrox Publishing, titled Graphics with GDI+. It shows you how to use GDI+ to create a customised user interface. It explains how to create items within the area of the screen covered by your application, and will show you how to use your code to control them....

Stress Testing and Monitoring ASP.NET Applications     
Total Hits: 289  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this paper, we discuss the concepts behind performance testing and its role in the development and testing cycles. We cover performance testing fundamentals and general methodologies for testing aWeb application. We also describe the features of the Microsoft Application Center Test (ACT) tool and provide a step-by-step tutorial on how to utilize the tool on an ASP.NET application....

Teach Yourself C# in 21 Days - Chapter 3 - Storing Information with Variables in C#     
Total Hits: 302  |  Today: 0Author: Bradley Jones.      Rating:  
Read Reviews | Write Review |  Your Rating: 

When you start writing programs, you'll quickly find that you need to keep track of different types of information.
This might be the tracking of your clients' names, the amounts of money in your bank accounts, or the ages of your
favorite movie stars. To keep track of this information, your computer programs need a way to store the values. In this sample chapter, you'll learn what a variable is, as well as how to: create variable names in C#, use different types of numeric variables, eval...

Interfaces and the .NET Framework     
Total Hits: 518  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

Besides calling into interfaces that are implemented by library classes,many .NET classes call standard interfaces. If we provide our own implementation of such interfaces, we can have .NET library code call our own code in appropriate ways, customizing the behavior of library code. We will look at examples, including object cloning and comparison of objects. This behavior of your program being called into has traditionally been provided by “callback” functions. In C# there is a type-safe, objec...

An Executable Specification of C #     
Total Hits: 213  |  Today: 0Author: Horatiu V. Jula, Nicu G. Fruja      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this paper we present our implementation of the Abstract State Machine(ASM) model, that has been defined in [4] to formalize the C# static and dynamic semantics. We show all the techniques we have used to get an efficient execution.
This work is part of a larger project which aims to establish some outstanding properties of C# and CLR virtual machine by mathematical proofs, such as the C# type safety and the correctness of the CLR bytecode verifier. As part of this
effort, an ASM model ...

Chapter 16 "Designing Interfaces"     
Total Hits: 842  |  Today: 0Author: Jeff Louie      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this chapter we are going to further explore the subject of interfaces. We are going to investigate the challenges of designing an interface, using composite interfaces and providing skeletal abstract classes. In Chapter 13, we defined an interface IDrawable to enable a plug-in architecture. Trying to modify the IDrawable interface provides a good example of the challenges of an evolving interface design....

Chapter 11 "User Defined Structures"     
Total Hits: 175  |  Today: 0Author: Jeff Louie      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this chapter you will learn how to create a user defined error structure for use as a return value. Again, this is a very twisted use-case example that could be hazardous to your mental health! Hopefully, this twisted code will also stimulate your interest in error handling idioms....

Chapter 21 "Just Print It!"     
Total Hits: 405  |  Today: 0Author: Jeff Louie      Rating:  
Read Reviews | Write Review |  Your Rating: 

It is surprisingly easy to add full printing support to our Draw program. Although this is certainly a detour from the topic of object oriented programming, it is just too cool to skip. You can add "Page Setup", "Print Dialog" and "Print Preview" support to the Draw program by simply dragging the controls onto the Draw form! Read the chapter to learn more!...


1  2  3  4  Next >> 


Disclaimer - Privacy
© 2002-2017 DevASP.net