| c# Programming Glossary: varHow do you do a deep copy an object in .Net (C# specifically)? http://stackoverflow.com/questions/129389/how-do-you-do-a-deep-copy-an-object-in-net-c-specifically  method as such public static T DeepClone T T obj using var ms new MemoryStream var formatter new BinaryFormatter formatter.Serialize.. static T DeepClone T T obj using var ms new MemoryStream var formatter new BinaryFormatter formatter.Serialize ms obj ms.Position.. 
 How do you convert Byte Array to Hexadecimal String, and vice versa? http://stackoverflow.com/questions/311165/how-do-you-convert-byte-array-to-hexadecimal-string-and-vice-versa  ba return hex.Replace  There are even more variants of doing it for example here . The reverse conversion would.. hex.Length 2 byte bytes new byte NumberChars using var sr new StringReader hex for int i 0 i NumberChars i bytes i.. 
 Deserialize JSON into C# dynamic object? http://stackoverflow.com/questions/3142495/deserialize-json-into-c-sharp-dynamic-object   _dictionary dictionary  public override string ToString  var sb new StringBuilder  ToString sb return sb.ToString  private.. sb.ToString  private void ToString StringBuilder sb  var firstInDictionary true foreach var pair in _dictionary   if.. StringBuilder sb  var firstInDictionary true foreach var pair in _dictionary   if firstInDictionary  sb.Append  firstInDictionary.. 
 Sending email in .NET through Gmail http://stackoverflow.com/questions/32260/sending-email-in-net-through-gmail  hacky extensions. using System.Net using System.Net.Mail var fromAddress new MailAddress from@gmail.com From Name var toAddress.. var fromAddress new MailAddress from@gmail.com From Name var toAddress new MailAddress to@example.com To Name const string.. const string subject Subject const string body Body var smtp new SmtpClient  Host smtp.gmail.com  Port 587  EnableSsl.. 
 Dynamic LINQ OrderBy on IEnumerable<T> http://stackoverflow.com/questions/41244/dynamic-linq-orderby-on-ienumerablet  Func CallSite object object GetCallSiteLocked string name  var callSite CallSite Func CallSite object object callSites name..  object val object target   for int i 0 i arr.Length i     var cs arr i   val cs.Target cs val     return val    else  var.. cs arr i   val cs.Target cs val     return val    else  var callSite GetCallSiteLocked name  accessor target     return.. 
 WebBrowser Control in a new thread http://stackoverflow.com/questions/4269800/webbrowser-control-in-a-new-thread  use of the DocumentComplete event. How can I overcome this var item new ParameterizedThreadStart ClicIt.Click var thread new.. this var item new ParameterizedThreadStart ClicIt.Click var thread new Thread item Name ClickThread thread.Start uriItem.. thread.Start uriItem public static void Click object o var url UriItem o Console.WriteLine @ Clicking url.Link var clicker.. 
 |