Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Visual C#
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual C# Getting Started
Getting Started with Visual C#

The following topics help you start developing applications by using Visual C# 2008. These topics will also introduce you to the many new features in Visual Studio 2008 as well as version 3.0 of the C# language.

What's New in Visual C#

What's new in Visual C# 2008.

Visual C# 2008 Breaking Changes

Lists all breaking changes in the C# compiler since Visual Studio 2005 RTM.

Visual C# Documentation Roadmap

Provides a high-level orientation of the contents of the Visual C# documentation.

Introduction to the C# Language and the .NET Framework

Provides an overview of the C# language and the .NET platform.

Creating Your First C# Application

Explains how to write, compile and run a simple C# application.

Additional Help Resources (Visual C#)

Provides links to other help resources.

How Do I in C#

Includes links to topics that show how to perform a wide variety of specific tasks.

Visual C# Guided Tour

Includes a high-level review of the C# language and introduction to the C# IDE and compiler.

Using the Visual C# IDE

Provides a guide to using the Visual C# integrated development environment.

Migrating to Visual C#

Explains how to convert Java and Visual J++ applications to Visual C#.

Writing Applications with Visual C#

Provides brief overviews that demonstrate the breadth of domains in which you can use C#.

C# Programming Guide

Provides information about C# programming concepts, and describes how to perform various tasks in C#.

C# Reference

Provides detailed reference information about C# keywords, operators, preprocessor directives, compiler switches, and compiler errors and warnings.

Visual C# Samples

Includes sample source code demonstrating how to program by using Visual C#.

C# Terminology

Provides a glossary of C# terms.

Community Content   What is Community Content?
Add new content RSS  Annotations
example 4 know how i put methods      GeneraL Hamdy   |   Edit   |   Show History
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace G_H_S_H.Groups
{
////do new class
class Keki
{
///add 4 methods
public int add(int x, int y)
{ return x + y; }
public int subract(int x,int y)
{ return x - y; }
public int divide(int x, int y)
{ return x / y; }
public int multiplay(int x, int y)
{ return x * y; }
}

class G_H_S_H
{
static void Main(string[] args)
{
Keki add = new Keki();
Keki sub = new Keki();
Keki div = new Keki();
Keki mult = new Keki();
int G, H, S, H_;

G = add.add(5, 5);
H = sub.subract(10, 5);
S = div.divide(4, 2);
H_ = mult.multiplay(12, 12);

Console.WriteLine("Result GeneraL===>" + G);
Console.WriteLine("Result HaMdY ===>" + H);
Console.WriteLine("Result SaMy ===>" + S);
Console.WriteLine("Result Halwany===>" + H_);
Console.Read();
Console.WriteLine("Good Bye& thx 4 ur visit 2 us --Generals TeaM :)");
Console.ReadLine();

Console.ReadLine();

}
}
}
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker