Skip to content

Instantly share code, notes, and snippets.

@DariusL
Created September 10, 2014 20:00
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 DariusL/6bc0f0f584e8af8f2764 to your computer and use it in GitHub Desktop.
Save DariusL/6bc0f0f584e8af8f2764 to your computer and use it in GitHub Desktop.
primitives["bool"] = Bool = new ExternalType(assembly, typeof(bool));
primitives["char"] = Char = new ExternalType(assembly, typeof(char));
primitives["int8"] = Int8 = new ExternalType(assembly, typeof(sbyte));
primitives["uint8"] = UInt8 = new ExternalType(assembly, typeof(byte));
primitives["int16"] = Int16 = new ExternalType(assembly, typeof(short));
primitives["uint16"] = UInt16 = new ExternalType(assembly, typeof(ushort));
primitives["int32"] = primitives["int"] = Int32 = new ExternalType(assembly, typeof(int));
primitives["uint32"] = primitives["uint"] = UInt32 = new ExternalType(assembly, typeof(uint));
primitives["int64"] = primitives["long"] = Int64 = new ExternalType(assembly, typeof(long));
primitives["uint64"] = primitives["ulong"] = UInt64 = new ExternalType(assembly, typeof(ulong));
primitives["float"] = Float = new ExternalType(assembly, typeof(float));
primitives["double"] = Double = new ExternalType(assembly, typeof(double));
primitives["decimal"] = Decimal = new ExternalType(assembly, typeof(decimal));
primitives["string"] = String = new ExternalType(assembly, typeof(string));
primitives["object"] = Object = new ExternalType(assembly, typeof(object));
primitives["void"] = Void = new ExternalType(assembly, typeof(void));
primitives["auto"] = Auto = null;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment