Search
Sunday, August 01, 2010 ..:: Home ::.. Register  Login
   Calendar  
     
  
   Search  
     
  
   Blogroll  
     
  
   Disclosure  
All blog entries are the opinions of the author and do not necessarily reflect the opinions of their employer. All the code presented is for explanation and demonstration purposes only. Any damages incurred to your site and/or data are not the responsibility of the author. Every effort is taken to ensure the code properly compiles, however sometimes there are some hiccups and you might be required to do your own debugging.
     
  
   TechTidBits (Blog)  
Feb 19

Written by: Peter Henry
Thursday, February 19, 2009 10:12 PM

With C# growing up from it's C/C++ roots, it seems natural for it to have semicolons.  And there's also all the brackets, parenthesis, and braces!  But do you know the technical differences between them?  I'm always forgetting, so here's my permenant reminder for myself (as long as my server stays turned on that is :>).

?

Term

AKA

Uses

( xyz )

Parenthesis

 

  • method calls (outgoing or incoming) to pass parameters
  • order of precedence

[ xyz ]

Brackets

Box Brackets or Square Brackets

  • arrays
  • attributes (.NET languages)

{ xyz }

Braces

Curley Brackets

  • code blocks
  • scope delimiters
  • composite structures

< xyz >

 Chevrons

Angle Brackets, Diamond Brackets 

  • html tag delimiters
  • generic class argument delimiters

 

 

References

Wikipedia: Bracket

Copyright ©2009 Peter Henry

Tags:

Your name:
Title:
Comment:
Add Comment    Cancel  
     
  
Copyright 1999-2010 by PCHenry.com   Terms Of Use  Privacy Statement