Learning C# (CSharp)

I have taken up the task of learning C#. I like it, it is a nice cross between Visual Basic and C++.
This post is more a test of ways to post code. My modification of the normal "Hello World" application is below:

C#:
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4.  
  5. namespace ConsoleApplication1cs
  6. {
  7.     class Program
  8.     {
  9.         static void Main(string[] args)
  10.         {
  11.             Console.WriteLine({0}”, DisplayHelloWorld(”Hello”)) ;
  12.         }
  13.  
  14.         static string DisplayHelloWorld(string hello)
  15.         {
  16.             return “Hello World”;
  17.         }
  18.     }
  19. }

About Brian A. Thomas

I am the father of Ari and Sidd. I am the owner and administrator of this site.
CSharp, Programming, Testing , ,

2 responses to Learning C# (CSharp)


  1. khoa

    can you give me a proSourceCode
    thankyou

  2. Sorry? A copy of what? A Google search of proSourceCode didn't turn up anything.
    If it is something that one needs to buy, then no, I can't. For editing code I use Visual C# 2005, Express Edition. This will be available from Microsoft around November 7th for only $50 or so. If that is too much there is C# Studio, which is a free IDE.
    If you are talking about the plugin that I use in WordPress to color the source code, then I used PraColorizer which allows you to post colorized code in WordPress in C#, C++, C, and Java.
    If you mean a pro level C# code... then no. I am not there yet. There are plenty of open source C# projects out there to study however.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>