Logo 
Search:

.net framework Interview FAQs

Submit Interview FAQ
Home » Interview FAQs » .net frameworkRSS Feeds
.Net Framework
Comments: 0

How can I find out what the garbage collector is doing?

Lots of interesting statistics are exported from the .NET runtime via the '.NET CLR xxx' performance counters. Use Performance Monitor to view them.
Posted By:Aaliyah Khan      Posted On: Sep 08

.Net Framework
Comments: 0

What is the lapsed listener problem?

The lapsed listener problem is one of the primary causes of leaks in .NET applications. It occurs when a subscriber (or 'listener') signs up for a publisher's event, but fails to unsubscribe. The failure to unsubscribe means that the publisher mainta...
Posted By:Maurice Hanson      Posted On: Oct 02

.Net Framework
Comments: 0

When do I need to use GC.KeepAlive?

It's very unintuitive, but the runtime can decide that an object is garbage much sooner than you expect. More specifically, an object can become garbage while a method is executing on the object, which is contrary to most developers' expectations. Ch...
Posted By:Bellona Lopez      Posted On: Sep 06

.Net Framework
Comments: 0

What is serialization?

Serialization is the process of converting an object into a stream of bytes. Deserialization is the opposite process, i.e. creating an object from a stream of bytes. Serialization/Deserialization is mostly used to transport objects (e.g. during remot...
Posted By:Jonathan Harrison      Posted On: Oct 29

.Net Framework
Comments: 0

Does the .NET Framework have in-built support for serialization?

There are two separate mechanisms provided by the .NET class library - XmlSerializer and SoapFormatter/BinaryFormatter. Microsoft uses XmlSerializer for Web Services, and SoapFormatter/BinaryFormatter for remoting. Both are available for use in your ...
Posted By:Gerald Cruz      Posted On: Sep 22

.Net Framework
Comments: 0

I want to serialize instances of my class. Should I use XmlSerializer, SoapFormatter or BinaryF

It depends. XmlSerializer has severe limitations such as the requirement that the target class has a parameterless constructor, and only public read/write properties and fields can be serialized. However, on the plus side, XmlSerializer has good supp...
Posted By:Zoar Mizrachi      Posted On: Mar 20

  1  2  3  4  5  6  7  8  9  10