Latest answer: Dispose() is called by as an
indication for an object to release any unmanaged resources it has
held...........
Read answer
Latest answer: The XmlSerializer constructor
generates a pair of classes derived from XmlSerializationReader and
XmlSerializationWriter by analysis of the classes using
reflection........
Read answer
Latest answer: A circular reference is a
run-around wherein the 2 or more resources are interdependent on
each other rendering the entire chain of references to be
unusable........
Read answer
Latest answer: The following code can be called
on some event like page load or onload of some image or even a user
action like onclick.......
Read answer
Latest answer: An extender provider is a
component that provides properties to other
components..........
Read
answer
Latest answer: The Machine.Config file, which
specifies the settings that are global to a particular
machine.......
Read
answer
Latest answer: The Protected Internal access
modifier can be accessed by:.....
Read
answer
Latest answer: Debug.Write: Debug Mode, Release
Mode (used while debuging a project).......
Read answer
Latest answer: The virtual keyword enables a
class to be overridden. If it has to be prevented from being
overridden, then the sealed keyword needs to be used.........
Read
answer
Latest answer: A primary interop assembly
contains type definitions (as metadata) of types implemented with
COM. Only a single PIA can exist, which needs to be signed with a
strong name by the publisher of the COM type
library............
Read answer
Latest answer: Static members are not associated
with a particular instance of any class.
They need to be
qualified with the class name to be called.............
Read
answer
Latest answer: Polymorphism is when a class can
be used as more than one type through inheritance. It can be used as
its own type, any base types, or any interface type if it implements
interfaces........
Read answer
Latest answer: Implementation inheritance is
achieved when a class is derived from another class in such a way
that it inherits all its members...........
Read
answer
Latest answer: Properties can be made read-only
by having only a get accessor in the implementation........
Read answer
Latest answer: The sealed modifier is used to
prevent derivation from a class. An error occurs if a sealed class
is specified as the base class of another class.............
Read
answer
Latest answer: Generic collection classes in the
System.Collections.Generic namespace should be used instead of
classes such as ArrayList in the System.Collections
namespace............
Read answer
Latest answer: With GetCommandLineArgs() method,
the command line arguments can be accessed.
The value returned
is an array of strings.............
Read
answer
Latest answer: The System.Environment class can
be used to retrieve information like:.......
Read
answer
Latest answer: The read only can be modified by
the class it is contained in. However, the const cannot be modified.
It needs to be instantiated only at the compile
time.........
Read answer
Latest answer: The use of the CLR procedure
makes it possible to do the complex database operations without
having an in-depth knowledge of T-SQL..........
Read answer
Latest answer: C# generics and templates in C++
are more or less similar syntactically..........
Read answer
Latest answer: It is a list of ready to use
objects. Whenever a new request comes in for creating an object,
then the application is served from this pool. This reduces the
overhead of creating an object over and over again.............
Read answer
Latest answer: The request for the creation of
an object is served by allocating an object from the pool. This
reduces the overhead of creating and re-creating objects each time
an object creation is required.............
Read
answer
Latest answer: In Object pooling, you can
control the number of connections. In connection pooling, you can
control the maximum number reached........
Read
answer
Latest answer: using System;
using
System.Collections;..........
Read
answer
Latest answer: SOAP (Simple Object Access
Protocol)
UDDI (Universal Description, Discovery and
Integration)
WSDL (Web Services Description
Language)...........
Read answer
Latest answer: C# generics are a simpler
approach to parameterized types without the complexity of C++
templates In addition, C# does not attempt to provide all of the
functionality that C++ templates provide...........
Read
answer
Latest answer: ILDASM (Intermediate Language
Disassembler)
De-Compilation is the process of getting the source
code from the assembly...........
Read answer
Latest answer: Obfuscator simply renames all
types and namespace etc to meaningless code making it non human
readable. This diminishes the possibility of reverse
engineering...........
Read answer
Latest answer: Exceptions are errors that occur
during the runtime of a program.
The advantage of using
exceptions is that the program doesn’t terminate due to the
occurrence of the exception...........
Read answer
Latest answer: Exceptions should never be
handled by catching the general System.Exception errors, rather
specific exceptions should be caught and handled....:......
Read
answer
Latest answer: Custom exception needs to derive
from the System.Exception class. You can either derive directly from
it or use an intermediate exception like SystemException or
ApplicationException as base class...........
Read answer
Latest answer: Delegates are like type safe
function pointers. We need delegates as they can be used to write
much more generic functions which are type safe
also............
Read answer
Latest answer: Here is an implementation of a
very simple delegate that accepts no parameters............
Read answer
Latest answer: A CLR trigger could be a Date
Definition or Date Manipulation Language trigger or could be an
AFTER or INSTEAD OF trigger.............
Read answer
Latest answer: Follow these steps to create a
CLR trigger of DML (after) type to perform an insert
action:.............
Read
answer.