answersLogoWhite

0

📱

.NET Programming

.NET Programming involves the use of the .NET Framework, a software framework for Microsoft Windows operating systems. The framework supports several programming languages. The .NET library is available to all the programming languages that .NET supports.

607 Questions

What is mendelow framework?

Mendelow framework is to help understand the influence of each stakeholder, its to attempt to understand the influence that each stakeholder have over the organisations objectives or strategy . The aim of the framework is to estimate which stakeholder has the most influence by (power x interest = influence) over the organisations objectives

Power is the individuals ability to influence the objectives

Interest is the individuals willingness (how much they bother about the organisation)

What is clr and its function?

It is execution engine of .net also called as heart of .net architecture

What are assemblies and What are static and dynamic assemblies?

Assembly is a basic element of packaging in .NET. An assembly consists of IL code, metadata that describes what is in the assembly, and any other files or information that the application needs to run, such as graphics and sound files.

Assemblies can be static or dynamic.

Static assemblies can include .NET types (interfaces and classes), as well as required resources for the assembly(bitmaps, JPEG files, resource files, and so on). Static assemblies are stored on disk in PE files.

Dynamic assemblies are one which run directly from memory and are not saved to disk before execution. They can be saved to disk after they have executed.
Assemblies are the basic elements of packaging in .NET. An assembly consists of IL code, metadata that describes what is in the assembly, and any other files or information that the application needs to run, such as graphics and sound files.

Static Assemblies can include .NET types (interfaces and classes), as well as required resources for the assembly (bitmaps, JPEG files, resource files, and so on). Static assemblies are stored on disk in PE files.

Dynamic Assemblies are one which run directly from memory and are not saved to disk before execution. They can be saved to disk after they have executed.

What is the difference between a process and thread?

The same metaphor: the difference of a person (thread) and a family (process)

A process has at least 1 thread and may have many threads, while 1 thread must live within a process

What is serialization in NET What are the ways to control serialization?

SerializationSerialization is a process of taking an object and converting into a form so that it can be transported across the network or can be persisted in the storage location. This storage location can be physical file, database or ASP.NET Cache. The form contains the state of the object so that by this format, we can construct the same object a later point in time, which is called Deserialization.

There are three formats of serialization

Binary Serialization : Light and compact used in Remoting

SOAP Serialization : interoperable use SOAP and used in web Services

XML Serialization : Custom Serialization

XML Serialization

For XML serialization, you need to use the attributes and specify them for each and every public member that you need. But since it is limited that it can serialize only public members, Serization done by it is called custom serialization. It is also known as Shallow Serialization

SOAP and Binary Serialization

XML serializes only public members of the class. You use SOAP or Binary serialization when you need to transport data across the network. SOAP sends it using HTTP Protocol which makes it most interoperable while Binary serialization is known for its light and compact nature. Web Services uses the SOAP Serialization and Remoting uses the Binary Serialization. Infact Serialization is always necessary when you need the object to transfer across a network. Advantage of using the SOAP or Binary serialization is that you can serialize the entire object and all those object that are being refrenced by it. This is why it is also called Deep Serialization. If you want any class to serialize through any of these methods then you should use [Serializable] attribute on that class and then you can use the SoapFormater class or BinaryFormatter class to do the serialization. These classes have Serialize and DeSerialize method. If you will not use SerializableAttribute for the class, then it will raise the exception.

Though this is the easiest way but at time you need the way so that you can decide what fields to serialize and how the serialization actually occurs. You can implement the ISerializable interface in the class. You need two things for that

  1. Constructor that is overridden and can handle the Deserialization process
  2. GetObject method that tracks about which data is serialized.

A small example below illustrate this all.

public class Employee :ISerializable

{

private int emp_no;

private string name;

protected TestData(SerializationInfo info,StreamingContext context)

{

this.emp_no = info.GetInt32("emp_no");

this.name = info.GetString("name");

}

void ISerializable.GetObjectData(SerializationInfo info,

StreamingContext context)

{

info.AddValue("emp_no", this.emp_no);

info.AddValue("name", this.name);

}

}

}

What is the advantage of a net meeting?

"Net meetings offer the advantage of being able to do more work and communicate information quickly, without having to travel. It's also great for times when all employees can't be at the same place at the same time. You can also do presentations, have a board meeting and get important time crucial information relayed from one person to another, right from your computer."

What is dotnet 35sp1?

Hi

In order to run .Net programmed applications, you have to have .Net Framework installed in your computer.

It depends that the programmer programmed with which version of .Net?

.Net Framework's versions are:

.Net Framework 1.0

.Net Framework 2.0

.Net Framework 3.0

.Net Framework 3.5

.Net Framework 3.5 Service Pack 1 (SP1)

.Net Framework 4.0

Usually, a .Net programmer has all of these .Net versions installed in his computer. But, as a client you have to have the .Net version that your programmed is coded by.

Usually, the programmer makes the application installation file equipped with.Net Framework, so it installs on your computer and you don't have to do anything more.

What is the difference between ASP.net and ASP?

The main difference between ASP and ASP.Net is that ASP is interpreted whereas, ASP.NET is compiled. This implies that since ASP uses VBScript; therefore, when an ASP page is executed, it is interpreted. On the other hand, ASP.NET uses.NET languages, such as C# and VB.NET, which are compiled to Microsoft Intermediate Language. Below some other difference are given.

1. Classic ASP uses a technology called ADO to connect and work with databases. ASP.NET uses the ADO.NET technology.

2. ASP has Mixed HTML and coding logic where in asp.net html and coding part are separated by code behind files.

3. ASP.NET purely object oriented whereas ASP is partially object oriented.

4. For ASP No in-built support for XML whereas in ASP.NET full XML Support for easy data exchange.

I think above details help you a lot. I hosted my website at Asp.net hosting of Mywindowshosting.com.

What kinds of problems do computers cause?

There are a number of problems computers can cause. Here are some of the areas of problems.

1. Health problems - If you're body is not well-supported while you use the computer, you could face problems with your wrists, back, shoulders, neck, etc. Eyestrain is a common computer problem too. If you have epilepsy, certain sounds and flashing images could possibly trigger a seizure.


2. Waste and environmental problems - Eventually, you will likely discard an old computer. It could go to a landfill and take up space if you don't recycle it. It takes petroleum products to make plastic, and quite a bit of plastic is used in computers. So if a petroleum tanker turns over and dumps its cargo in the ocean, that could harm wildlife and fish.


3. Mistakes, errors, and dangerous glitches - When the Pentium processors first came out, they had a problem with their floating point package, where certain mathematical computations resulted in grossly erroneous results. That could cause problems if you were trying to compute certain business or scientific things. However, there were workarounds to the problem, and that is not the most serious type of problem of this type.


Years ago, there were computers to give therapeutic doses of radiation to cancer patients. However, some patients were getting "cooked" by the radiation or facing lifelong problems after treatment. There were several reasons for this, and a number of safeguards and protections that were missed. The routines to take the input from the technician did not trap invalid responses. Some operators entered the wrong thing and then used the wrong key sequence to correct their error. However, they only blanked out what they typed, not really deleted it, and the computer took that as something other than the 2 valid choices given. The code of the program also contained "race conditions," meaning that there is a possibility that the data needed for a computation sometimes doesn't get where it needs to be in time. Then on the radiation and mechanical end of things, there were missing safeguards. It should have been impossible for both the high dose "antenna" and the low dose "antenna" to both be in operation at the same time -- but sometimes that happened, giving much more radiation than the intended high dose. There should have been interlock switches, physical barriers, or other protections in place.


Traffic lights are often controlled by computers. Imagine if the signals were contradictory, such as green lights in all directions. That could cause serious wrecks for sure.


4. Laziness - While humans are to blame for this, computers do make it easier, where you forget how to do certain things without a computer. In a typical store, if the power goes out and they only have emergency lights, most cashiers won't be able to ring up transactions, even if store policy says they could do it by hand.


5. Preoccupation, personal injury and carelessness - From time to time, there are stories of people texting or using other technology and jumping in front of cars, running into trees, etc.

What is WPF?

WPF stands for Windows Presentation Foundation and it is essentially a new API for creating a graphical user interfaces for the Windows platform. It provides a consistent programming model for building applications and provides a clear separation between the user interface and the business logic. WPF employs the use of 2D and 3D drawing, fixed and adaptive documents, advanced typography, vector graphics,raster graphics, animation, data binding, audio and video thanks to the presence of DirectX in one of the lower levels of its architecture. WPF comes pre-installed on Windows Vista and i based on .NET 3.0. Although like its predecessor, WinForms, it too incorporates the use of buttons, combo-boxes, list-boxes etc, instead of using a designer generated code file or a resource file as the source of a UI definition, it makes use of XAML (Extensible Application Markup Language) which is a unique way of including code in a mark up.

PS: I apologize if this answer seems inadequate for i answered only because of the statement : Even if you can't offer a complete answer, help us get things started

If you are interested in WPF, also check out the Silverlight which is a cross-browser, cross platform plugin, that provides rich web based content to your browser. Silverlight is basically the web implementation of WPF.

Can a derived class call the static constructor of a base class in .Net?

No. not directly.

The static constructor is called by .net framework, not by your code.

I always treat static constructor is the class initializer (not the instance one). The initialization routine is only called when the class definition being loaded.

When the derived class is loaded, since this class derived from the base, it makes to go up the chain (of the hierarchy) to call those static constuctors.

So, when a derived class is loaded, the static constructors of the hierarchy is called up. (any one of them had been loaded, the calling sequence stops).

You cannot call those static constructor directly, nor you can skip "not to execute" them.