Csharphelp - csharphelp.com - C# Help
General Information:
Latest News:
C# Strings – Getting Started with Strings 21 Jun 2011 | 06:26 pm
Working with strings is a very common task for most C# developers. The .NET Framework offers good variety of tools for working with strings, but care must be taken as there are several gotchas to trip...
Passing Parameters in C# 21 Jun 2011 | 05:21 pm
There are three primary methods of passing parameters to C# methods: Regular Parameter Passing This is passing parameters with no modifying keywords : In the above example MyMethod takes two parame...
C# Custom Number Formatting 16 Jun 2011 | 06:24 pm
Very often the inbuilt numerical formatting in C# will be insufficent and you will want to apply the custom formatting for your numbers. The String.Format method is very flexible and can be used to a...
Formatting Numerical Data in C# 14 Jun 2011 | 06:23 pm
C# ships with several inbuilt formatting specifies which can be used to quickly format a number, for example the ‘c’ specifier will format the number as a currency: This will output the numerical val...
Strings are Immutable! 9 Jun 2011 | 05:29 pm
Working with strings is a common task in most apps but there are several ‘gotchas’ that can arise due to the immutable nature of a String in .NET. Immutable simply means that once created it doesn’t...
Groupon – A Tech Company With Zero Research and Development 14 Mar 2011 | 04:21 pm
This Post was originally published at Core Earnings.com In its offering prospectus Groupon billed itself as a ‘local e-commerce’ company which brings ‘the brick and mortar world of local commerce ont...
Using the .NET Stopwatch class to Profile Your Code 16 Feb 2011 | 02:37 am
The Stopwatch class in the System.Diagnostics namespace can be used a as a basic tool to profile blocks of .NET code. This outputs the below: Sum of square roots : 666666166.45882210823608 Millisec...
Ensure a .NET App Works in Both 32 bit and 64 bit Environments 4 Feb 2011 | 01:40 am
With 64 bit versions of Windows fast becoming the standard it is imperative that an app work in both 32 bit and 64 bit environments. This done using a basic configuration setting, with a few caveats o...
Call C++ Functions in a DLL using C# 1 Feb 2011 | 12:53 am
P/Invoke is an efficient method for calling native code functions in an unmanaged DLL. The below code samples show the source code a native code library which defines a very simple C++ function which ...
Measure Memory Usage of .NET Applications 1 Feb 2011 | 12:09 am
There are two main methods for measuring the memory usage of a .NET application, using the GC class or using System.Diagnostics Retrieve Your App’s Memory Utilization using the GC class The .NET Fra...