Category Code snippets

C# Concepts: Value vs Reference Types

Edited by: Patrick Goudjo-Ako | Reading time: 20 minutes. This text comes from an extra documentation provided by Joe Albahari, creator of LinqPad, on his website. If you work on the Microsoft stack (with LINQ) and haven’t started using LinqPad, you better start now and properly learn the language. Introduction One area likely to cause […]

Ten LINQ Myths

Edited by: Patrick Goudjo-Ako | Reading time: 15 minutes. This text comes from an extra documentation provided by Joe Albahari, creator of LinqPad. He explains 10 myths about Language Integrated Query (LINQ). I found them pretty interesting and useful. If you work on the Microsoft stack and haven’t started using LinqPad, you better start now […]

DateTime.ToString

Sometimes, I’ve been formatting date in order to display them in an application. DateTime.ToString Converts the value of the current¬†DateTime¬†object to its equivalent string representation using the specified format. Here is some nice code from msdn that shows you that. using System; public class DateToStringExample { public static void Main() { DateTime dateValue = new […]