C# Reflection and Dynamic Method Invocation

Gopalan Suresh Raj has written up a detailed article on the subject. I used it for dynamically creating objects of a class whose name was read in as a String.

Advertisements

More C#.NET Resources

MeshPlex, a community-driven, wiki-based tutorial database, has a fairly good collection of C# knowledge here. It is divided into “Basics” and “Advanced”, so you are sure to find something that meets your requirement.

Check out a clean and very well-explained set of C#.NET articles from Jon Skeet here.

ExtremeExperts.com hosts some interesting technical articles and HOWTOs for Microsoft .NET based technologies.

And these, ripped from the Visual Studio product datasheet:

Using BackgroundWorker for Thread Finished Notifications

A handy MSDN post with an example of using the BackgroundWorker class for running a worker thread in the background and receiving a notification when it completes execution.

String to Byte Array Conversion

String to Byte Array

String strSource = ...
System.Text.ASCIIEncoding  encoding = new System.Text.ASCIIEncoding();
Byte[] arrDest = encoding.GetBytes(strSource);

Byte Array to String

Byte[] arrSource = ...
System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding();
String strDest = encoding.GetString(arrSource);

Building a Plugin Architecture with C#

An excellent tutorial written by Nathan Baker on how to use C# to create an extensible application using plugins, posted at ScratchProjects.com. Nathan actually took time out to answer some design-related queries I had, which was really wonderful of him.

C#, “C-Sharp”

C# is Microsoft’s attempt at combining C++, Java and Delphi. They just couldn’t resist it. The “C# language” is an ECMA and ISO standard; Microsoft’s implementation of that standard is known as “Microsoft Visual C#” or sometimes “Microsoft Visual C#.NET” because of the strong dependence of Microsoft Visual C# on the Microsoft .NET Framework.

Resources:

References:

  • Professional C# 2005 with .NET 3.0, By Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson and Morgan Skinner (Wrox, 2007)
  • C# Black Book, By Matthew Telles (Coriolis Group, 2001)
  • Inside C# (2nd Edition), By Tom Archer and Andrew Whitechapel (Microsoft Press, 2002)
  • MCAD/MCSD Training Guide (70-316): Developing and Implementing Windows-Based Applications with Visual C# and Visual Studio.NET, By Amit Kalani (Que, 2002)