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 )

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-2008 Invision Power Services, Inc.