Skip to content

Instantly share code, notes, and snippets.

@jasoncable
Last active November 21, 2019 13:09
Show Gist options
  • Save jasoncable/52390cab83959489b080230fc3524cdd to your computer and use it in GitHub Desktop.
Save jasoncable/52390cab83959489b080230fc3524cdd to your computer and use it in GitHub Desktop.
C# - standard "using" statements
// these should cover 99% of what you need in C#.
// I find it easier to just copy/paste them then go to town.
// Of course, if you are adventurous, you can
// change your Visual Studio templates!
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Dynamic;
using System.IO;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
using System.Xml;
using System.Xml.Linq;
/*
NOTES for .NET Core:
• The following NuGet packages may need to be installed to enable certain features.
○ System.Dynamic.Runtime (for dynamic keyword and ExpandoObject)
○ System.Reflection
○ System.Runtime
○ System.ValueTuple
○ System.IO.FileSystem
○ Microsoft.Windows.Compatibility (WMI, System.Drawing [aka. GDI+], etc.)
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment