Online Test Banks
Score higher
See Online Test Banks
eLearning
Learning anything is easy
Browse Online Courses
Mobile Apps
Learning on the go
Explore Mobile Apps
Dummies Store
Shop for books and more
Start Shopping

It’s not always easy to sort out C#’s variables. The following table offers a comparison of all C# variable types except integer and floating point, which are covered elsewhere.

Type Range In Use
decimal Up to 28 digits decimal d = 123M;
BigInteger NA Too humongous to list.
char 0 to 65,535 (codes in the Unicode character set) char x = 'c';
char y = '\x123';
char newline = '\n';
string From Empty (“”) to a very large number of characters in the Unicode character set string s = "my name";
string empty = "";
bool True and False bool b = true;
Dynamic Determined at runtime Dynamic f = foo()
  • Add a Comment
  • Print
  • Share
blog comments powered by Disqus

SERIES
C# 2010 All-In-One For Dummies Cheat Sheet

Advertisement

Inside Dummies.com

Dummies.com Sweepstakes

Win $500. Easy.