BLOG.CSHARPHELPER.COM: Category Archive for syntax

Cast arrays from one reference type to another in C#

Validate optional arguments in C#

Use named and optional arguments in C#

Use a for loop to recursively iterate over the items in an array with an unknown number of dimensions in C#

Compare the times needed to loop over dates by using DateTime variables and integers in C#

Find all of the Friday the Thirteenths between two dates in C#

Overload == and != to make comparing two structs easy in C#

Create a class outside of any namespace statement in C#

Use a foreach loop to iterate over the items in an array or list in C#

Initialize a Dictionary in C#

Understand the "at" symbol (@) in C#

Understand when a "finally" block is executed in C#

Compare the speeds of x++, x += 3, x = x + 3, and other statements in C#

Compare the speeds of the conditional (ternary) ?: operator and the if-else statement in C#

Compare the speeds of a switch statement and a series of if-then statements in C#

Clone lists and arrays of objects in C#

Use serialization to make deep clones of a class in C#

Use the MemberwiseClone method and implement the ICloneable interface in C#

Make shallow and deep clones of objects in C#

Add delegates to combine lists of methods in C#

Use XML comments to provide IntelliSense support and documentation in C#

Initialize an array of arrays in C#

Initialize a two-dimensional array in C#

Extract comments from a C# file in C#

Convert enum values to and from strings in C#

Flush click events to prevent the user from clicking a button while its code is still running in C#

Use the conditional (ternary) ?: operator in C#

Declare and initialize empty arrays in C#

Make and use an array of controls in C#

Use the "is" operator to see if an object can be converted into another type in C#

Use try catch blocks to protect against unexpected errors in C#

Use nullable parameters in C#

Use null to simulate optional parameters in C#

Use overloaded methods to simulate optional parameters in C#

Use the using statement to automatically call Dispose in C#

Override a class's ToString method to allow controls such as ListBox to display objects in C#

Calendar

April 2013
SuMoTuWeThFrSa
123456
78910111213
14151617181920
21222324252627
282930

Subscribe


Blog Software
Blog Software