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
 

FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

Home >Search > Sample Chapters > C-Sharp


Search:
What's New - What's Hot
Professional C# Sample Chapter: Graphics with GDI+     
Total Hits: 1064  |  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....

"Soft Delete" or "Logical Delete" in ORM  Version: 0.00     Price: $0.00  
Total Hits: 47  |  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: 96  |  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....

Ohm's Problem     
Total Hits: 445  |  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 ...

Utility Belt: Xray Demo C#     
Total Hits: 424  |  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....

Murach's C# 2005  Version: 1890774375     Price: $52.50  
Total Hits: 628  |  Today: 0Author: Joel Murach      Rating:  
Read Reviews | Write Review |  Your Rating: 

Become the C# developer that companies compete for. Whether you’re new to C# or upgrading to 2005, this book teaches you how to develop 3-layer Windows Forms applications that do database processing…the applications that businesses rely on each day....

A Preview of C# - Chapter 7: Namespaces and the Base Classes     
Total Hits: 797  |  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...

Stress Testing and Monitoring ASP.NET Applications     
Total Hits: 197  |  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....

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

IN MOST PROGRAMMING LANGUAGES, some information is expressed through declaration,and other information is expressed through code. For example, in the following class member declaration
public int Test;the compiler and runtime will reserve space for an integer variable and set its protection so that it is visible everywhere. This is an example of declarative information;it’s nice because of the economy of expression and because the compiler handles the details for us.Typically, the types of de...

CHAPTER 12 Delegates and Events     
Total Hits: 506  |  Today: 0Author: Jesse Liberty      Rating:  
Read Reviews | Write Review |  Your Rating: 

When a head of state dies, the president of the United States typically does not have time to attend the funeral personally. Instead, he dispatches a delegate. Often this delegate
is the vice president, but sometimes the VP is unavailable and the president must send someone else, such as the secretary of state or even the first lady. He does not want to “hardwire” his delegated authority to a single person; he might delegate
this responsibility to anyone who is able to execute the correct ...

Interfaces and the .NET Framework     
Total Hits: 407  |  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...

Chapter 17 "Designing Extendable Classes"     
Total Hits: 610  |  Today: 0Author: Jeff Louie      Rating:  
Read Reviews | Write Review |  Your Rating: 

In Chapter 7, we investigated the conundrum of using implementation inheritance versus containment. Some authors have argued that composition or containment by ownership is generally preferable to implementation inheritance. Joshua Block argues in "Effective Java" to "favor composition over inheritance." He quotes Snyder that "Unlike method invocation, inheritance breaks encapsulation." He concludes that since "a subclass depends on the implementation details of its super class for its proper fu...

Chapter 16 "Designing Interfaces"     
Total Hits: 739  |  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 15 "Using IComparer"     
Total Hits: 742  |  Today: 0Author: Jeff Louie      Rating:  
Read Reviews | Write Review |  Your Rating: 

In Chapter 13, I demonstrated the use of encapsulation and polymorphism to load a plug-in at runtime. In this chapter, I am going to demonstrate how to use the IComparer interface to reuse the generic sort and binary search algorithm provided by the ArrayList class. The ArrayList class defers the final implementation of the sort and binary search algorithm to a more knowledgeable class. The more knowledgeable class must provide a useful concrete implementation of the IComparer interface. Properl...

Chapter 10 "Indirection and Loose Coupling"     
Total Hits: 330  |  Today: 0Author: Jeff Louie      Rating:  
Read Reviews | Write Review |  Your Rating: 

Some would argue that indirection is a basic principle of OOP (object oriented programming) and a basic tenant of Software Engineering 101. The concept of a class that encapsulates or hides the actual implementation details can be considered an example of the use of indirection. In this example, the use of indirection adds flexibility and eases code maintenance. A closely related, but poorly defined topic in software engineering, is the concept of loose coupling....

Chapter 21 "Just Print It!"     
Total Hits: 331  |  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!...

Chapter 23 "Backward Compatibility"     
Total Hits: 259  |  Today: 0Author: Jeff Louie      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this brief chapter, we examine the problem of backward compatibility. If we add a new "fill" feature to the DrawableShape class, it is desirable that this new feature does not break the existing Draw application. One way to solve this problem is to rely on our decision to program to the IDrawableShape interface and the ability of the DrawYourself method to encapsulate or hide the actual implementation of the drawing behavior. In this chapter we create a new interface IFillable, implement the ...

Chapter 8 "Shadow Fields, Override Virtual Methods"     
Total Hits: 230  |  Today: 0Author: Jeff Louie      Rating:  
Read Reviews | Write Review |  Your Rating: 

Well, I am going to finish this "nuts and bolts" chapter before I flame out! I promised that I would discuss overriding, so I am going to make good on this promise. In general when you extend a class, you shadow fields with the same name in the base class and override virtual methods with the same name and parameter list in the base class. Overriding makes the base class method invisible. Shadowing a field, only hides the field from view. You can still explicitly touch the hidden shadowed field ...

Chapter 5 "C++ and Java Gumption Traps"     
Total Hits: 352  |  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...


1  2  3  4  Next >> 


Disclaimer - Privacy
© 2002-2012 DevASP.net