Sunday, November 23, 2008

What is .Net Assembly?

An assembly is a single deployable unit that contains all the information about the implementation of classes, structures, and interfaces. An assembly stores all the information about itself. This information is called metadata, and it includes the name and version number of the assembly, security information, information about the dependencies, and a list of the files that constitute an assembly.

Difference between Simple binding and complex binding?

Simple data binding is the process of binding a control, such as a TextBox or a Label control, to a value in a dataset. The dataset value can be bound to the control by using the properties of the control. A Textbox control is used for simple binding. While simple data binding involves binding a control to a dataset value, complex data binding is the process of binding a component to display multiple values for a column from the dataset rows. The DataGrid, Listbox, and ComboBox controls are used for complex binding.

What is Runtime Host?

.NET framework supports different type of applications like Web, windows, console etc. Each type of application needs a runtime host to start it. This runtime host loads the runtime into a process, creates the application with in the process and loads the application code into the process. Runtime hosts included in .NET framework are:

  1. ASP.NET.
  2. Microsoft Internet Explorer.
  3. Shell executables. 1)It loads the runtime that can handle a web request into the process. ASP.NET also creates an application domain for each Web application that will run on a Web server. 2)It creates an application domain to run managed controls. 3)When ever a runtime executable is launched from the shell, this executable invokes the corresponding runtime host.

What is .Net Remoting ?

Operating systems and run-time environments provide application isolation to ensure that the code in one application does not adversely affect another application. Isolating applications helps ensure that an application does not access the address space of another application. In the .NET Framework, the CLR uses application domains to isolate applications. Thus, an application domain is a secure unit of processing in the .NET Framework.Microsoft .NET Remoting provides a framework to allow objects to interact with other objects residing in different application domains, different processes, and on different computers. .NET remoting provides services, such as channels, formatters, object activation and life cycle, and object registration to achieve interaction between remote objects. Channels are used as transport mediums when a client invokes a method of a remote object.A remote object may provide more than one channel. The client can select the channel that best suits its requirement.Formatters are used to encode and decode messages before the channel transports the messages.

What are the Various componenets in .Net framework?

The .NET Framework consists of Web Forms, Windows Forms, and Console applications that pertain to the presentation layer of an application. Besides these three components, the .NET Framework consists of two other components, the .NET Framework Base Classes and the Common Language Runtime (CLR).

What is Common language runtime?
The Common Language Runtime is the execution engine for .NET Framework applications. It performs a number of functions, such as loading and executing an application, performing automatic memory management, ensuring type safety, and handling exceptions. It is one of the most important components of the .NET Framework.

No comments:

Post a Comment