Life Insurance Quotes Are Here For You
| * CSharp 3.0 Language Specification released |
| Published: August 21, 2007, 5:34 am |
| Tags: Net 3 0, Csharp |
| CSharp Team @ Microsoft has released the specification document of CSharp 3.0. Its a comprehensive document and covers all earlier versions also. It includes LINQ too. Download CSharp 3.0 Spec doc What's new in CSharp 3.0 |
|
|
| * Pattern : Abstract Factory Creational Pattern |
| Published: September 20, 2007, 2:06 am |
| Tags: Design Patterns, Architecture, Csharp |
| Provides a single interface for creating families of related or dependent objects without using the concrete type name. Consider the following class diagram : In above diagram, CreateShapes acts as an single interface for creating various families of products. The diagram shows only Red shapes but it can be extended to create more color shapes. |
|
|
| * Patterns : Builder Creational Pattern |
| Published: September 21, 2007, 6:00 am |
| Tags: Design Patterns, Tutorials, Architecture, Csharp |
| Builder Creational Pattern separates the process of construction of a complex object from its actual representation. This means that the same process can create different representations of same object. Consider the following diagram : The main class here is ShapeCreator which is called Director and controls the process of construction of |
|
|
| * Patterns : Prototype Creational Pattern |
| Published: September 24, 2007, 3:19 am |
| Tags: Net, Design Patterns, Tutorials, Architecture, Csharp |
| Prototype Creational Pattern provides an interface which can be used by client to get access to already existing instance of a type which can be used as prototype by client to create new instance. Client can clone the existing object using deep or shallow copy and use it. It is used mainly when inherent cost of creating a new object is high. |
|
|
| * Patterns : Factory Method Creational Pattern |
| Published: September 24, 2007, 12:46 am |
| Tags: Net, Design Patterns, Tutorials, Architecture, Csharp |
| It provides an interface for creating an object but lets subclass decide which class to instantiates. So, it can also be called as virtual constructor. Consider the following class diagram : ShapeCreator class provides an factory method to create objects of BaseShape. Client always uses ShapeCreator and BaseShape type variables to work on |
|
|
| * Singleton Creational Pattern |
| Published: September 28, 2007, 12:40 am |
| Tags: Net, Design Patterns, Tutorials, Architecture, Csharp |
| One of the most popular creational pattern. It is used to restrict the number of instances of a type to one and so all clients use the same instance. Consider the following class diagram : Client creates two variables of type Singleton, s1 and s2. The client code looks like following : public class Client Singleton s1,s2; |
|
|
| * Patterns : Adapter Structural Pattern |
| Published: October 3, 2007, 4:10 am |
| Tags: Net, Design Patterns, Tutorials, Architecture, Csharp |
| /*white-space: pre;*/ .csharpcode pre margin: 0em; .csharpcode .rem color: #008000; .csharpcode .kwrd color: #0000ff; .csharpcode .str color: #006080; .csharpcode .op color: #0000c0; .csharpcode .preproc color: #cc6633; .csharpcode .asp background-color: #ffff00; .csharpcode .html color: #800000; .csharpcode .attr |
|
|
| * Patterns : Bridge Structural Pattern |
| Published: October 5, 2007, 1:24 am |
| Tags: Net, Design Patterns, Tutorials, Architecture, Csharp |
| Bridge Structural Pattern decouples an abstraction from its implementation so that the two can vary independently. Multiple variants of abstraction can be created provided they implement the common interface. Similarly, multiple variants of implementations can be created provided they implement the common interface. Given the option of multiple |
|
|
| * Patterns : Composite Structural Pattern |
| Published: October 9, 2007, 12:38 am |
| Tags: Net, Design Patterns, Tutorials, Architecture, Csharp |
| Book cSharpBook,vbBook,historyBook,religion; LibrarySection techBooks, nonTechBooks, library; public void Run() cSharpBook = new Book("CSharp Book"); |
|
|
| * Patterns : Decorator Structural Pattern |
| Published: October 15, 2007, 6:22 am |
| Tags: Net, Design Patterns, Architecture, Csharp |
| The primary use of 'Decorator Structural Pattern' is to add behaviors to object at runtime. It generally involves wrapping the original object with the decorator object which adds the new behaviors but keep the structure of original object intact. Multiple behaviors can be added out of given options based on decision criteria. Consider the class |
|
|
| * Patterns : Facade Structural Pattern |
| Published: October 18, 2007, 6:39 am |
| Tags: Net, Design Patterns, Tutorials, Architecture, Csharp |
| 'Facade Structural Pattern' is primarily used to unify and simply a set of interfaces of subsystems. This helps the client in using the interface with less effort. Consider the class diagram below : Above shows a typical scenario of a Bank where a new Customer approaches the Bank to open new account and also deposit some initial amount. |
|
|
| * Patterns : Flyweight Structural Pattern |
| Published: November 6, 2007, 12:32 am |
| Tags: Net, Design Patterns, Tutorials, Architecture, Csharp |
| Flyweight Structural Pattern is used to manage large number of shared objects. They are maintained in a collection and same instances used whenever required. These objects have their own attributes/features but they can have a common feature also which can be externalized. Consider a scenario where a picture has to be drawn which consists of |
|
|
| * Patterns : Proxy Structural Pattern |
| Published: November 12, 2007, 4:13 am |
| Tags: Net, Tutorials, Architecture, Csharp |
| Proxy Structural Pattern or Proxy object can be used in multiple ways. Some of them could be following : Act as a simpler interface to a complex object. Can be used to transform call from one format to another. can be used to load balance multiple objects. can be used to track concurrency or object numbers. Consider this example |
|
|
| * Free Book on .NET and CSharp |
| Published: November 12, 2007, 3:51 am |
| Tags: Net, Csharp |
| Check out this free book from Windows Programming Guru Charles Petzold. What the C or C++ Programmer Needs to Know About C# and the .NET Framework Supporting source code is also available for download. |
|
|
| * Patterns : Command Behavioral Pattern |
| Published: January 15, 2008, 2:20 am |
| Tags: Design Patterns, Tutorials, Architecture, Csharp |
| Command Patterns helps encapculating/mapping a request to object called command. All commands are derived from base command which has mainly two methods Execute & UnExecute. The commands forwards the request data to Receiver for further processing. Either client can decide which Command and Receiver to be invoked or it can be |
|
|