By tag: Interfaces
0
kicks
Implementing Interfaces: ICloneable and IComparable
A friend of mine was showing me about some common interfaces and some good use cases for them the other day. A discussion arose of how to accurately create a deep copy of an object and the best way to go about it. Shortly after that discussion we got into the Sort() method and how to dictate how tha...
0
kicks
Extension Methods in C# 3.0 + Fluent Interface = Ruby-like syntax
Attain highly-readable Ruby-like date syntax with C# 3.0 Extension Methods and Fluent Interface design.
0
kicks
IHttpContext And Other Interfaces For Your Duck Typing Benefit
Phil Haack has created a number of Interfaces for various classes in the System.Web namespace including IHttpContext, IHttpRequest, IHttpResponse and IHttpSession. This allows us to easily mock these classes for testing and to use our own implementations of the provided framework classes.
0
kicks
How to build a Fluent Interface in C#
Example code illustrating how to build a Fluent Interface in C#.
0
kicks
Some Groundrules for Interfaces
A few groundrules for using interfaces in your code can help maintainability go a long way.
0
kicks
CoreWeb :: IHeart Interfaces
This article, the first in a series, will catalog, explain, and provide examples of the key interfaces in the .Net framework in the hopes of bridging that gap and making it easier for us to put in practice what we know in theory.