Full Version: C# Basics Quick Reference (Cheat Sheet)
Dream.In.Code > Programming Tutorials > C# Tutorials
skyhawk133
C# Basics Quick Reference Sheet (Cheat Sheet)

Download and print the C# Basics Quick Reference Sheet for FREE! Our members have put together this great resource for beginner and expert programmers. Please download and print the PDF below. Our quick reference sheets include syntax and information for commonly used tasks, syntax, and more!
IPB Image
Download & Print the C# Basics Reference Sheet (900K, PDF)


C# Basics Quick Reference Sheet Includes:
  • Namespace
  • Data Types
  • Variable Declaration
  • Type Declaration
  • Suffixes
  • Arrays
  • Comments
  • Line Continuation
  • Arithmetic Operators
  • String Concatenation
  • Relational Operators
  • Logical Operators
  • String Manipulation
  • If/Else Statement
  • Inline If Statement
  • For Loop
  • For Each Loop
  • While Loop
  • Do-While Loop
  • Select Case Statement
  • Function Structure
  • Class Structure
  • Error Handling
Download All Our Other Reference Sheets!
root_hacker
its only a single black page in downloaded pdf. Anyone else got this same problem or not please reply

root_hacker
i have got now a pink page with no text
PsychoCoder
I just downloaded this reference sheet and it looks like it supposed to as far as I can tell. If you want post it as an attachment so I can look at what you have smile.gif
skyhawk133
What version of Adobe Reader are you using?

It's a progressive download and it can take a few seconds to render properly. Lots of layers.
csmanoj
thanks a lot for this guys... been looking for something like this. Now that C#'s done, can i put down a request for a Python Cheat Sheet?

QUOTE(root_hacker @ 12 Oct, 2007 - 04:25 AM) *

i have got now a pink page with no text

try the foxit pdf reader. it's so light and renders faster than adobe reader (as far as i observed).
skyhawk133
If you liked the reference sheet, please vote for it on DZone: http://www.dzone.com/links/c_reference_cheat_sheet.html
srtech
Once again... another great resource. I've added it to my site.

Looking forward to more... if there are any languages left smile.gif
baavgai
I just recommend the VB.NET sheet to someone on this board, so figured I'd check out C#...

Um, pink? It looks like Hello Kitty had an accident on my screen. No other sheets seem to extend into the laxative side of the color pallet. I guess we know were C# ranks around here. tongue.gif

Content is fine, of course. smile.gif However, I did spot a curiosity. First, <expression> seems to be used consistently for "condition", e.g. while(<expression>). However, here it lacks brackets if(expression). Which brings us to an odd entry.

CODE
C# version of IIF()
variable == ?true:false;


This seems to be written wrong, or at least confusingly. Also, what's IIF() and why should a C# programmer care? Again, C# just isn't feeling the love. wink2.gif

I'd write it like so, to be reasonably consistent:
CODE

Inline If
variable = <expression> ? <value_if_true> : <value_if_false>;


I based this off the one in the VB.NET sheet which, I'm afraid, has a typo.
CODE

Inline If
variable = IIf( condition, value_if_false, value_if_true )

khairynero
thanks very much
Thomsoningreen
icon_up.gif Thanks for the C# cheat sheet it has been helpful so far in this class and the C++ on was Helpful in my last class. Thanks again.
rgraylint
Thanks! Great Reference Tool!
janebush08
You have done great work... thank you dear friend...
bunny20
I only got 1 pink page
kokita
thanks alot it is very usefull for me great jop
startpoint2009@gmail.com
Thanks for ur share.
But if there is a .chm version, It will be better for me smile.gif
azeiot
thank you very much.. i highly appreciate your help.....
TheStorm1
Not looking at sheet really closely, but browsing through ... you are declaring a variable with "AS"

You give a Line Continuation explanation for C# ... again, a VB reference ... *** SIGH ***

I may look closer later, but sheet needs to be redone ... rolleyes.gif
PsychoCoder
@TheStorm1 In C# the @ symbol is used for 3 things:
  1. Multi-line strings (thus a line continuation character)
  2. Escaping a string (such as one containing a path)
  3. It allows you to use keywords (i.e. 'class', 'string', 'public') as identifiers in your code.

So that part of the sheet is technically correct. As for the AS keyword, I helped write this sheet and dont recall that ever being in there. I'll let the powers that be know that it needs to be removed and the sheet reimaged smile.gif
Toterminat
QUOTE(root_hacker @ 12 Oct, 2007 - 03:10 AM) *

its only a single black page in downloaded pdf. Anyone else got this same problem or not please reply



Yup dude .,,

I hv Got The SAME problem mad.gif
PsychoCoder
@Toterminat I just downloaded it with no problems. What program are you using to open it?
gryphin
I only had a chance to read a few of the comments on the first page... But this is awesome. I hope it helps me as much as I think it will. I am learning C# now, and trying to do a project far beyond my skills and I think this will help me learn as I go. Thank you for this. As for blank sheet and what not it looks fine to me and if there are mistakes that have not been fixed then I will just be posting questions in the forums. Anyway, just wanted to say thanks and that this was a great idea.

Gryphin.
kalpeshpatelbyk
file is damaged plz replace if possible
paperclipmuffin
AWESOMENESS!!!!

Pink? I hate pink!

Damn good thing I have a black-and-white printer... tongue.gif tongue.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.