C#
C# (see section on name, pronunciation) is an object-oriented programming language developed by Microsoft as part of the .NET initiative and later approved as a standard by ECMA (ECMA-334) and ISO (ISO/IEC 23270).
Article

Automated Unit Testing in .NET

A 14-part series of articles describing the use of automated unit testing techniques for the C# programmer. The tutorial includes the use of NUnit and Moq but is also relevant for other testing...
Article

Controlling Serialization of XML Elements (.NET)

When serializing classes to XML, each public property and field value is transformed into an XML element. The name of the element matches the name of the property. The XmlElement attribute allows the...
Article

Controlling XML Serialization of the Root Element (C#)

Every XML document includes a root element that contains all of the other information held. When serializing objects to XML the root element's construction is linked to the name of the class or...
Article

Determining if Values are Coprime (C#)

Two integer values are said to be coprime, or relatively prime, when they share no common divisors other than the number one. This article describes the process for determining whether two positive...
Article

Euclid's Algorithm (C#)

Euclid's algorithm, also known as the Euclidean algorithm, can be used to efficiently calculate the greatest common divisor (GCD) for two integer values. This article describes the algorithm and...
Article

C# Random Element Picking with Probability

Pick a random element in a C# list based on the probability of each element.
Article

A Basic IoC Container (C#)

Inversion of control (IoC) containers provide a specialised form of the service locator pattern that simplifies the way in which dependencies are registered and later resolved. This article describes...
Article

Service Locator Design Pattern (C# Examples)

The service locator pattern is a design pattern that is used to decouple a class from its dependencies. Rather than the dependant class instantiating its dependencies directly, they are requested...
Article

Dependency Injection (C#)

Dependency injection is a technique used in object-oriented programming languages. It promotes loose coupling of components by passing dependencies to an object, rather than having an object...
Article

The XOR Swap Algorithm (C#)

The XOR Swap algorithm provides a means to swap the values in two integer variables without requiring the use of a third, temporary variable. This algorithm is interesting to know, although its use...
Article

Binary Serialization (C#)

A standard problem with object-oriented languages is that of persisting object state. Binary serialization allows single objects or complex models to be converted to binary streams, which may be...
Article

Generic Methods

The .NET framework versions 2.0 and later support the use of generic programming, allowing greater reuse of code with classes and members that can be created without specifying the types that they...
Article

Optimal Five Object Sort

An optimal algorithm to sort five objects in C#.
Article

The Soundex Algorithm (C#)

Cultural differences and input errors can lead to words being spelled differently to a user's expectations. This makes it difficult to locate information quickly. The Soundex algorithm can alleviate...
Article

C# Double to Fraction

Simple algorithm to convert doubles to fractions in C#
1 2 3 4 5 6 7 8 9 10 11 12 13  Next
 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.