Free Downloads Center, best guide, .net Programming C#
Monday, January 30, 2006
Hello World Application using C#
wanna learn C# ?? I will guide you through step by step process to create your first sample .NET application. All our sample code will be using C# syntax. Readers are suggested to stick to this new elegant language, than going back to your favorite VB style. Hello World Application using C# Let us get started the traditional way, with a 'Hello World' application. We hope you all have Visual Studio.NET installed on your computer. If you have VS.NET, goto the menu option File > New > Project. Select 'Visual C# projects' and choose the project template 'Console Application'. This will create a default A simple C# program would look like the following. using System; public class Hello { public static void Main (string[] args) { Console.WriteLine("Hello C# World"); } } When you create a new Console Application, it will create a default class and you can just insert one line of code into it: Console.WriteLine("Hello C# World"); Now compile and run your first program by pressing Ctrl + F5. You will see the following result : > Hello C# World You are done! You got your first C# program successfully running. If you do not have VS.NET, you may use any editor (including notepad) to create your first C# program. Create a new file with the name sample.cs and type the C# code shown. Now go to the command prompt and navigate to the folder where you have the .NET framework installed. Compile your csharp file by using the command 'csc': csc c:\samples\sample.cs csc is the C# compiler. The above command will produce the output file sample.exe. You can run the sample.exe and you will see the output from the program. Analyzing your first program See the first line of code : using System; "System" is a namespace and the "using" directive says that all classes in the "System" namespace can be used in this class without using the fully qualified name. In our class, "Console" is a class in the namespace "System". To use this class you have to actually write : System.Console.WriteLine ("..."); But the using System; directive on top of the class allows us to use the class without including the namespace. So, you can now simply write : Console.WriteLine("..."); If you are familiar with Object Oriented Programming, you might not need more explanation for the next line - declaring a class. public static void Main (string[] args) - is the Main method, which is the starting point of the application. string[] args is the list of arguments that are passed to this application. (In our case, we are not passing any command line parameters). Console.WriteLine("...") is another line of important code. Console is a class, part of .NET class library included in System namespace. WriteLine is a method part if this class and used to print output to the default Console. return ;)Monday, January 16, 2006
word pubblisher test
From now , I’m trying put some ASP.net 2 articles here so please visit here in few days ….Friday, April 01, 2005
Free Download XPSecurity 2005c 1219
:: Download XPSecurity 2005c 1219 :: |
XPSecurity is the most professional utility to manage and optimize the security settings of Windows XP + Service Pack 2(SP2). With the increasing amount of viruses, worms, adwares,
spywares flooding the Internet, it is particularly important to have a
secure operating system when you are surfing the web. XPSecurity is such
a professional utility to tune up the security settings of your Windows
XP system and defend your computer against various attacks. |
- Windows Firewall: To easily have a safe network
using Windows XP SP2 built-in firewall. *May be Someone left its crack or keygen on the comments! But I seriously(!) invite you to buy the software ! |