Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
Dot Net Framework FAQ's

Dot Net Framework FAQ's

Ratings: (0)|Views: 99 |Likes:
Published by creamy_go2003

More info:

Published by: creamy_go2003 on Nov 17, 2009
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less





1. What is .NET?
.NET is a general-purpose software development platform, similar to Java. At its coreis a virtual machine (called as CLR) that turns intermediate language (IL) intomachine code. High-level language compilers for C#, VB.NET and C++ are providedto turn source code into IL. C# is a new programming language, very similar to Java.An extensive class library is included, featuring all the functionality one might expectfrom a contempory development platform - windows GUI development (WindowsForms), database access (ADO.NET), web development (ASP.NET), web services,XML etc.
2. What platforms does .NET run on?
Currently, it is supported on Windows 98, Windows 2000/2003, Windows XP andWindows Vista. ASP.NET integrates with Internet Information Server (IIS) and thusrequires that IIS be installed.
.NET Compcat Framework
runs on Windows CE or Windows Mobile.
is an open source project to provide .Net on Linux.
3. What is the CLI? Is it the same as the CLR?
The CLI (Common Language Infrastructure) is the definiton of the fundamentals of the .NET framework - the Common Type System (CTS), metadata, the VirtualExecution Environment (VES) and its use of intermediate language (IL), and thesupport of multiple programming languages via the Common Language Specification(CLS).The CLR (Common Language Runtime) is Microsoft's primary implementation of theCLI. Other implementations are; the .NET Compact Framework for mobile devices,non-Microsoft CLI implementations like Mono and DotGNU Portable.NET.
4. What is IL?
IL = Intermediate Language. Also known as MSIL (Microsoft Intermediate Language)or CIL (Common Intermediate Language). All .NET source code (of any language) iscompiled to IL during development. The IL is then converted to machine code at run-time by a Just-In-Time (JIT) compiler. Just like how Java programs are converted toBytecode, C# and VB.NET code is converted to IL.
5. What versions of .NET and when they were released?
Microsoft first announced .NET in June,2000. The following were the offical releasesof .NET.
.NET 1.0 was relased in Feb,2002
.NET 1.1 was relased in Apr,2003
.NET 2.0 was relased in Nov,2005
.NET 3.0 was relased in Nov,2006
.NET 3.5 was relased in Nov,2007The following table shows ASP.NET and C# versions along with .NET versions.
6. What's the major additon in the latest versions of .NET 3.5?
LINQ (Language Integrated Query) is a new way to access database, xml documentsand collections. It enables programmers to access all data sources with expressionsin C# and VB.NET. For example, we can access database without using any SQLusing C# or VB.NET expressions.
7. What is C#?
C# is a new language designed by Microsoft to work with the .NET framework. Intheir "Introduction to C#" whitepaper, Microsoft describe C# as follows: "C# is asimple, modern, object oriented, and type-safe programming language derived fromC and C++. C# (pronounced “C sharpâ€) is firmly planted in the C and C++
 family tree of languages, and will immediately be familiar to C and C++programmers. C# aims to combine the high productivity of Visual Basic and the rawpower of C++."C# (or VB.NET) can be used to develop all types of applications - Console, Windows,Web, Web Services and Mobile.
What does 'Managed code' mean in the .NET?
The .NET framework provides several core run-time services to the programs thatrun within it - for example exception handling, memory management and security.For these services to work, the code must provide a minimum level of information tothe runtime. Such code is called managed code.Managed data: This is data that is allocated and freed by the .NET runtime's garbagecollector.
9. What is an assembly?
Assemblies are the building blocks of .NET Framework applications; they form thefundamental unit of deployment, version control, reuse, activation scoping, andsecurity permissions. An assembly is a collection of types and resources that arebuilt to work together and form a logical unit of functionality. An assembly provides
the common language runtime with the information it needs to be aware of typeimplementations. To the runtime, a type does not exist outside the context of anassembly. An assembly may be either a .EXE or .DLL file. It contains code that thecommon language runtime executes.
10. What are different types of Assemblies?
Assemblies are classified as private assemblies and global assemblies.Private assemblies are simple and copied to bin directory of the application that isusing it.Shared assemblies (also called as gobal assemblies) are copied to a single locationcalled GAC (Global assembly cache). Hence, shared assemblies are not copied in theprivate folders of each calling application.Each shared assembly has a four part name including its name, version, public keytoken and culture information. The public key token and version information makes italmost impossible for two different assemblies with the same name or for two similarassemblies with different version to mix with each other.
11. What is the difference between a namespace and an assembly name?
A namespace is a logical naming scheme for types in which a simple type name,such as MyType, is preceded with a dot-separated hierarchical name. The .NETFramework uses a hierarchical naming scheme for grouping types into logicalcategories of related functionality.The concept of a namespace is not related to that of an assembly. A single assemblymay contain types whose hierarchical names have different namespace roots, and alogical namespace root may span multiple assemblies.In the .NET Framework, a namespace is a logical design-time naming convenience,whereas an assembly establishes the name scope for types at run time.
12. What is meant by un-safe code?
By un-safe code, it means that the managed program can access the memoryaddress using pointers. There are two points to remember here:
Un-safe code is different from un-managed as it is still managed bythe CLR
You still can not perform pointer arithmetic in un-safe code.
13. What is the difference between Unmanaged and Unsafe code?
Un-managed code runs outside the Common Language Runtime (CLR) control whilethe unsafe code runs inside the CLR’s control. Both un-safe and un-managedcodes may use pointers and direct memory addresses.

Activity (4)

You've already reviewed this. Edit your review.
1 hundred reads
Ash8306 liked this
k7scribd liked this
4A liked this

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->