R4R
Right Place For Right Person TM
 

R4R C #

R4R provide basic C# Tutorials concept with C# Examples . Through R4R you can develop C# programming concept. R4R provide C# Interview Questions with answers.R4R provide C# Languages study materials in easy way.

C# Tutorials

1.1    C# Basic Tutorials (Examples)

C# Examples

2.1    C# Basic Examples

Introduction to .NET Technology

.Net Technology is developed by Microsoft in 2000. .Net technology is the new addition to Windows. The .NET ("dot - net") environment is effectively a "virtual computer" that runs on a real computer, through which a developers can create a .NET application in any .NET - compatible language and participate in the same software project writing code in the .NET languages in which (such as Visual C++.NET, Visual Basic .NET, C#, Java, J# and more others).

.NET Core Technology-  .NET  Technology has quite a few different parts

  • Common Language Runtime (CLR)

  • Common Language Infrastructure (CLI)

  • Common Language Specification (CLS)

  • .NET Framework tools (examples include gacutil, sn, and all the compilers)

  • .NET Framework is FREE (including the compilers!)

  • .NET development is made MUCH easier by using Visual Studio .NET

Introduction of .NET Framework-

 .NET Framework is a software framework developed by Microsoft for Microsoft Windows operating systems. .NET Framework has a large library, and it supports several programming languages which allows language interoperability (each language can use code written in other languages.)

Features of framework's Base Class Library-

  • User Interface

  • Web Application Development and

  • Database Connectivity

  • Data Access

  • Network Communications.

  • Cryptography

The class library is used by programmers, who combine it with their own code to produce applications.

Versions of .NET Frameworks-

Version

Version Number

Release Date

Visual Studio Framework

 Operating System

1.0

1.0.3705.0

13-02-2002

Visual Studio .NET

Windows Server 2003

1.1

1.1.4322.573

24-04-2003

Visual Studio .NET 2003

Windows Server 2003

2.0

2.0.50727.42

07-11-2005

Visual Studio 2005

Windows Server 2003 R2

3.0

3.0.4506.30

06-11-2006

Visual Studio 2005

Windows Vista, Windows Server 2008

3.5

3.5.21022.8

19-11-2007

Visual Studio 2008

Windows 7, Windows Server 2008 R2

4.0

4.0.30319.1

12-04-2010

Visual Studio 2010

Windows 7, Windows Server 2008 R2

Architecture of .NET Framework-

History of C#

C#(C Sharp) was designed for developing application in a fully object-oriented manner as part of the Microsoft .NET initiative. C# debuted in the year 2000 by Microsoft founder Bill Gates. At the same time, Visual Studio .NET was announced. C# is an object-oriented programming language as part of their .NET initiative in response to the success of Sun Microsystems' Java programming  language. C# source code—as well as those of other .NET languages—is compiled into an intermediate byte code called MSIL (Microsoft Intermediate Language. C# is primarily derived from the C, C++, and Java programming languages with some features of Microsoft's Visual Basic in the mix. C# is used to develop applications like

  • Console Application

  • Window Base Application

  • Web Based Application

  • Mobile Application    

 

.NET offers an alternative to Java development. Microsoft's Visual Studio .NET development environment incorporates several different languages including ASP.NET, C#, C++, and J# (Microsoft Java for .NET), all of which compile to the Common Language Runtime.

Why C# is better than other languages-

C# and Java- Here are some features that C# has but Java does not:

  1. Delegates- You can kind of do this in Java, but it’s not as clean.

  2. Lambdas- Which are way better than anonymous inner classes. (C# has anonymous inner classes, too.)

  3. LINQ (Language Integrated and Query )

  4. Operator overloading- This feature can be abused, but it is still occasionally useful, especially in libraries and DSLs.

  5. Properties- No need to write getters and setters. Everything looks like a direct field access, even if it isn’t.

  6. Yield CO-Routine capability- This is a powerful and highly useful capability, especially for lazy iterators.

  7. Extension methods- They permit you to “extend” existing classes.

  8. Null coalescing operator that provides a simple syntax for dereferencing a reference and supplying a default if the reference is null.

C# and VB

  1. C# is a new, type-safe language, object-oriented language. It has automatic garbage collection feature. It is developed solely for running along with CLR frameworks. We can use pointers, if needed, though unsafe. On the other hand, VB.NET is developed from VB.

  2. Comments in C# are just better. You can do Multiline comments, XML comments, single line comments, etc.

  3. Regions in C# are far better. The key here is that you can place a region inside a function, thus breaking up the implementation into logical pieces.

C# and C++

  1. C++ too complex and unsafe

  2. C++ system-dependent

  3. C++ not Web-ready

  4. C++ does not manage memory

  5. C++ has pointer types

Conclusion

  •  C# nicely improved on Java, VB and C++.

  •  C# can be used for everything like -sockets, threading, events, sql, …XML.

  •  C# by Dissection: a plug  Parallel treatment

Advance features of C# -

  1.LINQ (Language Integrated and Query)-

  •        LINQ to SQL

  •        LINQ to OBJECT

   2. XML Web Services

   3. Cryptography

Most Important Advantages of C# -

  1. C# is supported by Microsoft.

  2. C# is type safe which comes with its advantages.

  3. Nothing is better when you are developing windows applications.

  4. Its syntax is also very well designed. Code looks pretty good.

  5. Its intelligence IDE

  6. Its worth learning because lots of code is written and is being written in it.

  7. It feels so good when you code in C# in Visual Studio.

  8. With C# you can explore lots of interesting things .NET,WPF,WCF,XNA,ASP.NET


Tolal:2 Click: 1
Username :avinash
Comments :tnx sir....
URL :http://r4r.co.in/c1/

Username :subramanyam kumaari
Comments :c# such a nice language
URL :http://r4r.co.in/c1/

1 Show All Comments

Post Your Comments

Your Name:

Your Email ID :
Comments :
URL
  =* Enter SUM

New Updates

10:New Updates
Tutorials,examples and Interview Questions with answers
Posted By: Shashi     Posted Date:02.10.14

9:C# Tutorials,C# examples and C# Interview Questions with answers
R4R provide C# Tutorials,C# examples and C# Interview Questions with answers. Through R4R you can develop a small application and small programs.We cover C# Tutorials,C# examples and C# Interview Questions and answers for freshers as well experienced programmer.
Posted By: Shashi     Posted Date:11.17.13

8:Java/J2EE(Servlet,JSP,JNDI,Struts,Spring,Hibernate,EJB,JSF,JMS,Web-Services)
In this section R4R covers Java/J2EE(Servlet,JSP, JNDI, Struts, Spring, Hibernate, EJB,JSF,JMS,Web-Services) Tutorials with Examples.R4R provide Java/J2EE (Servlet,JSP, JNDI,Struts, Spring, Hibernate, EJB, JSF, JMS, Web-Services) Interview Questions with answers study materials for freshers and experienced.
Posted By: Shashi     Posted Date:11.13.13

7:CoreJava Tutorials , CoreJava Examples and CoreJava Interview Questions with answers
In this section R4R covers CoreJava Tutorials with CoreJava Examples. R4R covers CoreJava programming concept in easy way. R4R provide CoreJava Interview Questions with answers study materials for freshers and experienced.
Posted By: Shashi     Posted Date:11.04.13

6:Microsoft.net Technology ASP.NET,c# ,ADO.NET,WCF,WPF,Silverlight ,VB.net
R4R provides Microsoft Technologies(like ASP.NET,c# ,ADO.NET,WCF,WPF, Silverlight and VB.ne)Tutorials with Examples,programming concept and Interview Questions with answers study materials for freshers and experienced.
Posted By: Shashi     Posted Date:11.04.13

5:J2me Tutorials concept with Examples with Netbean IDE and J2ME Application Examples.
R4R cover basic J2me Tutorials concept with Examples and provide a way to develop J2me programming concept in easy way. R4R provide J2me Interview Questions with answers.R4R provide J2me Languages study materials with examples uing Netbean IDE and J2ME Application Examples.
Posted By: Shashi     Posted Date:10.30.13

4:J2me Tutorials concept with Examples ith netbean IDE and J2ME Application Examples.
R4R cover basic J2me Tutorials concept with Examples and provide a way to develop J2me programming concept in easy way. R4R provide J2me Interview Questions with answers.R4R provide J2me Languages study materials with examples uing Netbean IDE and J2ME Application Examples.
Posted By: Shashi     Posted Date:10.30.13

3:Java ebooks , Java tutorials , Java examples , Java interview questions and answers
R4R provides study materials for Java/j2EE technologies. R4R covers core java, advanced java, servlet, JSP, Struts, Spring, Hibernate, EJB, JSF, J2ME, ANT, JUnit and Some APIS .R4R also provides ebooks,tutorials,examples, interview questions and answers.
Posted By: Shashi     Posted Date:10.30.13

2:Learn basic C++ Tutorials with Examples , C++ Interview Questions with answers
R4R is a free E-learning website.You can learn basic C++ Tutorials with Examples , C++ Interview Questions with answers and also some hot topics.
Posted By: Shashi     Posted Date:10.30.13

1:C Tutorials with Example C subjective and objective interview questions and answers
R4R provide C Tutorials with Example and also provides C subjective and objective interview questions and answers.You can learn C in easy way.We cover basics of C here and give some examples.
Posted By: Shashi     Posted Date:10.30.13

R4R
R4R
R4R
R4R
R4R
R4R
R4R
R4R