Using Functions in C#

Using Functions in C#

  • Comments 1

In the video that I have embedded in this blog post, I am restarting my blog and will work out the curriculum issues that I have been talking about.  Got caught up in the Imagine Cup, it all worked out really well for the team I am on, have to shout out for Cy Khormaee, Bradley Jensen and Krishna Kumar, these guys rocked the Software Design category in the US!

 

Anyway, back to Functions, what is a function, why are they important?  Functions allow you to write code once and then reuse it.  In the history of computers, functions have been around for most of the history of computers.  For instance the “bombs” used by the Enigma decoding system was a type of mechanical function that looked for likely pathways through the Enigma encoding/decoding machine.

Some languages treat functions and variables exactly the same, for example OCAML and F# (a new language in VS 2010) do this.

The video includes demonstrations on how to use the Functions, where to place them, and how to use functions with events.

The video is black due to a bug for some reason I haven’t figured out, but the video works if you click on the black square. 

Get Microsoft Silverlight
Leave a Comment
  • Please add 5 and 4 and type the answer here:
  • Post
  • hi Surf4Fun

    how to download this video

Page 1 of 1 (1 items)
Generic Content

Legal Note:

  1. The author, Sam Stokes, is an employee of Microsoft
  2. There is no guarantee that anything I write is correct, I do try to make sure that what I write is correct.
  3. Use anything written in this blog at your own risk
  4. Test what I write about before using the information
  • Sometimes posts will disappear because I realized that they really don't fit with the total chaos of what I write about
  • Links are tested and available on date of publication, what others do with their links are out of my control

Restrictions:

  • Whatever I write on this blog is unedited by management or anyone, which should be obvious from the randomness of the blog.  I simply write about things I like.
  • Microsoft does not restrict me in anyway, so I generallyblather about whatever I want to.
  • For personal reasons I will not write about:
    • Company confidential stuff, mainly because Microsoft is more transparent than any company I have ever worked for.
    • Other people unless they give me permission to write about them