Welcome, Guest Ohm namah shivoy
www.faqpanel.com
Home | ASP.Net | C-Sharp | Winforms | MS SQL | AJAX | XML | .Net Training*** | Search
Invite friends 
Extras 
VS Tips & Tricks
Top 10 .Net Tools
Special folders in ASP.Net
VS Find Combobox
 C-Sharp Interview Questions and Answers / FAQs
What are Enumerations in C#?
An Enumeration is a user defined integer type which provides a way for attaching names to numbers, thereby increasing the comprehensibility of the code. The enum keyword automatically enumerates a list of words by assigning them values 0,1,2 and so on.

When you declare an enumeration, you specify a set of acceptable values that instance of that enumeration can contain. Not only that, but you can give the values user-friendly names. If, somewhere in your code, you attempt to assign a value that is not in the acceptable set of values to an instance of that enumeration, the compiler will flag an error. Eg.

enum shape{
Circle,
Square,
Triangle }

this can be written in one line as follows:
enum shape { Circle, Square,Triangle }
What is the differences between Value Types and Reference Types:
Value Type holds the data directly
Reference Type points to the location that holds the data.

Examples of value type variables: byte, decimal, float, int, structs
Examples of reference type variables: string, class, delegate, interface

Value Type cannot contain null value
Reference Type can contain null value.

Value Type variables are stored on stack.
Reference Type variables are stored on heap.

A new type cannot be derived from value type.
A new type can be derived from reference type.

What is Application domine in C#.Net?
Application doamin is a logical partition within which the process is isolated and hosts .Net assemblies inside it.

The single process can have multiple application domains, and in turn each application domain has multiple threads inside it, but the thread not confined to the application domain as it is free to cross the app. domain boundries to another domain provided that the thread execution can be done only in a specific domain at a time.

The application domain is managed and created by basically CLR.

What is difference between the System.Array.CopyTo() and System.Array.Clone()?
The Clone() method returns a new array (a shallow copy) object containing all the elements in the original array. The CopyTo() method copies the elements into another existing array. Both perform a shallow copy. A shallow copy means the contents (each array element) contains references to the same object as the elements in the original array. A deep copy (which neither of these methods performs) would create a new instance of each elements object, resulting in a different, yet identacle object.
what is the difference between abstract class and interface in C#?
An abstract class may contain complete or incomplete methods. Interfaces can contain only the signature of a method but no body. Thus an abstract class can implement methods but an interface can not implement methods. An abstract class can contain fields, constructors, or destructors and implement properties. An interface can not contain fields, constructors, or destructors and it has only the properties signature but no implementation. An abstract class cannot support multiple inheritance, but an interface can support multiple inheritance. Thus a class may inherit several interfaces but only one abstract class. A class implementing an interface has to implement all the methods of the interface, but the same is not required in the case of an abstract Class. Various access modifiers such as abstract, protected, internal, public, virtual, etc. are useful in abstract Classes but not in interfaces
FirstPreviousDisplaying page 18 of 25NextLast
Is it possible to have a static indexer in C#?
What is refactoring?
What is the "as" operator?
What is the difference between .dll extension and .exe extension?
Does C# do array bounds checking?
How destructors works in C# ?
What is Deadlocks in Threading?
Can you allow class to be inherited, but prevent the method from being over-ridden?
What is the "this" keyword in C# ?
OR
What is the "this" reference in C# ?
Can you store multiple data types in System.Array?