Skip to content

Instantly share code, notes, and snippets.

@tdshipley
Last active June 1, 2016 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tdshipley/4a395556de920e725d5ad8e7c5fcece4 to your computer and use it in GitHub Desktop.
Save tdshipley/4a395556de920e725d5ad8e7c5fcece4 to your computer and use it in GitHub Desktop.
User and Compiler Defined Types in C#
// User defined type
int myUserDefinedTypeNumber = 1;
string myUserDefinedTypeString = "Hello";
bool myUserDefinedTypeBool = true;
// Compiler defined type
var myCompilerDefinedTypeNumber = 1;
var myCompilerDefinedTypeString = "Hello";
var myCompilerDefinedTypeBool = true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment