Saturday, September 10, 2011

What is .Net Frame Work

What is .NET?

.NET is an integral part of many applications running on Windows and provides common functionality for those applications to run. This download is for people who need .NET to run an application on their computer. For developers, the .NET Framework provides a comprehensive and consistent programming model for building applications that have visually stunning user experiences and seamless and secure communication.

The .NET Framework is an integral Windows component that supports building and running the next generation of applications and XML Web services. The .NET Framework is designed to fulfill the following objectives:

  • To provide a consistent object-oriented programming environment whether object code is stored and executed locally, executed locally but Internet-distributed, or executed remotely.

  • To provide a code-execution environment that minimizes software deployment and versioning conflicts.

  • To provide a code-execution environment that promotes safe execution of code, including code created by an unknown or semi-trusted third party.

  • To provide a code-execution environment that eliminates the performance problems of scripted or interpreted environments.

  • To make the developer experience consistent across widely varying types of applications, such as Windows-based applications and Web-based applications.

  • To build all communication on industry standards to ensure that code based on the .NET Framework can integrate with any other code.

Predefined Data Types

These data types are divided into 4 types.
  • Integral Data Types
  • Floating Data Types
  • Character Data Types
  • Other Data Types

Difference between in Reference and Value Data Type

  • Value Types
  • Value types hold the data directly.
  • Value types do not have default value.
  • Value types will be stored in stack memory at compile time.
  • Stack is faster in accessing
  • Stack is not accessible to garbage collector. Hence it will not be cleared at runtime.
  • Value type passes an exact copy to methods.
  • Example: Implicit Data Types, Structures, Enumerations.

  • Reference Types
  • Reference types do not hold the date directly.
  • Reference types have default value.
  • Reference types will be stored in heap memory at run-time.
  • Heap is slower in accessing.
  • Heap is accessible to garbage collector. Hence at run-time heap can be cleared.
  • Reference types passes a reference (handle) to methods.
  • Example: Classes, Objects, Arrays, Delegates, Interfaces.
Read about Data types

Data Types in C hash dot net

Type specifies the type of the data and the size of the data.
Working with Data Types: Data Type specifies the type of the data and the size of the data.

C# supports two types of Data Types:

C# supports two types of data or we can say that, we can use two types of data types in C#.Net

  1. Value Type
  2. Reference Type
DATA TYPES

testing

testing

Popular 5 Posts Last 7 days