C# tip: Use Path Combine for file or directory path information 13 years ago .NET provides in its System.IO namespace the Path class which performs operations on String instances that contain file or directory… Documentation comment your C# code use GhostDoc at least 13 years ago Recently have been going through some old code to review the comments in them from other developers and what I… LINQ tip – Ordering collection using existing array/collection using OrderBy 13 years ago Here is a LINQ tip where you may wish to order a collection with an existing ordering of another collection.… C# tip – Marking method or class as Obsolete/Deprecated 13 years ago Obsolete or Deprecated? How do you mark a class or method as deprecated/obsolete? By using the Obsolete attribute [crayon-6a743f55170dd300987601/] C# Null Coalescing Operator 13 years ago The ?? operator is called the null coalescing operator. It is used for providing a default value for Nullable types… C# tip property with different accessibility scopes 13 years ago In C# you can have property with different scope (property accessors). Properties in C# can be marked as public, private,… C# optional parameters 13 years ago C# 4.0 allows one to use named and optional parameters. Example: [crayon-6a743f55181cd116678281/] One can call the method in multiple ways… The using statement in C# 13 years ago The using statement in C# is a form of shortcut for try and finally block of code. Things to note… I refuse to answer your stupid singleton question in interview 13 years ago In interviews there is always the Singleton question, I personally refuse to answer it on interview. The reason is very… What is the as keyword in C#? When to use it? 13 years ago C# has the as keyword, it is mainly used to cast object of one type to another, and if it… Next» « Previous