School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
Welcome to Dream.In.Code
Become an Expert!

Join 340,162 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 4,042 people online right now. Registration is fast and FREE... Join Now!



C# Basics Quick Reference (Cheat Sheet)

  • (2 Pages)
  • +
  • 1
  • 2

C# Basics Quick Reference (Cheat Sheet)

#1 skyhawk133  Icon User is online

  • Head DIC Head
  • Icon
  • View blog
  • Group: Webmaster
  • Posts: 17,429
  • Joined: 17-March 01


Dream Kudos: 1650

Expert In: Web Development

Post icon  Posted 09 October 2007 - 05:34 PM

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!
Posted 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!

Was This Post Helpful? 0
  • +
  • -


#2 root_hacker  Icon User is offline

  • New D.I.C Head
  • Icon
  • View blog
  • Group: Contributors
  • Posts: 22
  • Joined: 15-February 05


Dream Kudos: 50

Posted 12 October 2007 - 03:10 AM

its only a single black page in downloaded pdf. Anyone else got this same problem or not please reply
Was This Post Helpful? 0
  • +
  • -

#3 root_hacker  Icon User is offline

  • New D.I.C Head
  • Icon
  • View blog
  • Group: Contributors
  • Posts: 22
  • Joined: 15-February 05


Dream Kudos: 50

Posted 12 October 2007 - 03:25 AM

i have got now a pink page with no text
Was This Post Helpful? 0
  • +
  • -

#4 PsychoCoder  Icon User is offline

  • apt-get install DIC.bin
  • Icon
  • View blog
  • Group: Admins
  • Posts: 16,214
  • Joined: 26-July 07


Dream Kudos: 12400

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net, jQuery

Posted 12 October 2007 - 03:59 AM

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 :)
Was This Post Helpful? 0
  • +
  • -

#5 skyhawk133  Icon User is online

  • Head DIC Head
  • Icon
  • View blog
  • Group: Webmaster
  • Posts: 17,429
  • Joined: 17-March 01


Dream Kudos: 1650

Expert In: Web Development

Posted 12 October 2007 - 04:52 AM

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.
Was This Post Helpful? 0
  • +
  • -

#6 csmanoj  Icon User is offline

  • D.I.C Head
  • Icon
  • Group: Contributors
  • Posts: 144
  • Joined: 06-August 07


Dream Kudos: 50

Posted 15 October 2007 - 07:50 AM

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?

View Postroot_hacker, on 12 Oct, 2007 - 04:25 AM, said:

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).
Was This Post Helpful? 0
  • +
  • -

#7 skyhawk133  Icon User is online

  • Head DIC Head
  • Icon
  • View blog
  • Group: Webmaster
  • Posts: 17,429
  • Joined: 17-March 01


Dream Kudos: 1650

Expert In: Web Development

Posted 16 October 2007 - 07:38 AM

If you liked the reference sheet, please vote for it on DZone: http://www.dzone.com...heat_sheet.html
Was This Post Helpful? 0
  • +
  • -

#8 srtech  Icon User is offline

  • New D.I.C Head
  • Icon
  • Group: Contributors
  • Posts: 6
  • Joined: 29-August 06


Dream Kudos: 50

Posted 18 October 2007 - 10:15 AM

Once again... another great resource. I've added it to my site.

Looking forward to more... if there are any languages left :)
Was This Post Helpful? 0
  • +
  • -

#9 baavgai  Icon User is offline

  • Dreaming Coder
  • Icon
  • View blog
  • Group: Expert w/DIC++
  • Posts: 4,727
  • Joined: 16-October 07


Dream Kudos: 575

Expert In: C, C++, Java, C#, ASP.NET, PHP, Perl, Python, Oracle, SQL Server, MySql, HTML, JavaScript, Lua, Cheese

Posted 19 December 2007 - 10:28 AM

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. :P

Content is fine, of course. :) 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.

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. ;)

I'd write it like so, to be reasonably consistent:
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.
Inline If
variable = IIf( condition, value_if_false, value_if_true )


Was This Post Helpful? 0
  • +
  • -

#10 khairynero  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 1
  • Joined: 21-July 08


Dream Kudos: 0

Posted 21 July 2008 - 03:15 AM

thanks very much
Was This Post Helpful? 0
  • +
  • -

#11 Thomsoningreen  Icon User is offline

  • New D.I.C Head
  • Pip
  • View blog
  • Group: New Members
  • Posts: 5
  • Joined: 28-September 08


Dream Kudos: 0

Posted 30 October 2008 - 06:37 PM

:^: 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.
Was This Post Helpful? 0
  • +
  • -

#12 rgraylint  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 1
  • Joined: 22-December 08


Dream Kudos: 0

Posted 22 December 2008 - 08:28 AM

Thanks! Great Reference Tool!
Was This Post Helpful? 0
  • +
  • -

#13 janebush08  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 5
  • Joined: 22-December 08


Dream Kudos: 0

Posted 22 December 2008 - 10:34 PM

You have done great work... thank you dear friend...

This post has been edited by Core: 04 July 2009 - 04:53 AM

Was This Post Helpful? 0
  • +
  • -

#14 bunny20  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: Members
  • Posts: 22
  • Joined: 29-December 08


Dream Kudos: 0

Posted 29 December 2008 - 06:57 AM

I only got 1 pink page
Was This Post Helpful? 0
  • +
  • -

#15 kokita  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 5
  • Joined: 30-December 08


Dream Kudos: 0

Posted 30 December 2008 - 04:34 AM

thanks alot it is very usefull for me great jop
Was This Post Helpful? 0
  • +
  • -

#16 startpoint2009@gmail.com  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 2
  • Joined: 16-March 09


Dream Kudos: 0

Posted 16 March 2009 - 10:39 PM

Thanks for ur share.
But if there is a .chm version, It will be better for me :)
Was This Post Helpful? 0
  • +
  • -

#17 azeiot  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 1
  • Joined: 17-March 09


Dream Kudos: 0

Posted 17 March 2009 - 09:28 AM

thank you very much.. i highly appreciate your help.....
Was This Post Helpful? 0
  • +
  • -

#18 TheStorm1  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 2
  • Joined: 13-June 08


Dream Kudos: 0

Posted 22 May 2009 - 02:02 PM

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:
Was This Post Helpful? 0
  • +
  • -

#19 PsychoCoder  Icon User is offline

  • apt-get install DIC.bin
  • Icon
  • View blog
  • Group: Admins
  • Posts: 16,214
  • Joined: 26-July 07


Dream Kudos: 12400

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net, jQuery

Posted 22 May 2009 - 02:46 PM

@TheStorm1 In C# the @ symbol is used for 3 things:
  • Multi-line strings (thus a line continuation character)
  • Escaping a string (such as one containing a path)
  • 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 :)
Was This Post Helpful? 0
  • +
  • -

#20 Toterminat  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 2
  • Joined: 25-May 09


Dream Kudos: 0

Posted 25 May 2009 - 08:11 AM

View Postroot_hacker, on 12 Oct, 2007 - 03:10 AM, said:

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 :angry:
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2


Fast Reply

  

3 User(s) are reading this topic
0 members, 3 guests, 0 anonymous users



Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month