| Back to Questions Page |
| |
| Question |
Is IIS is required for installing the deployment of windows
C#.netapplication and to run.
|
Rank |
Answer Posted By |
|
Question Submitted By :: Jaishankar |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | i hope its not necessary to install for windows
application.it means with out IIS windows application can be
run...  |
| Pavan Guptha |
| |
| |
| Question |
What are properties and indexer? |
Rank |
Answer Posted By |
|
Question Submitted By :: Soft.narayan@gmail.com |
| This Interview Question Asked @ TCS |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | This answer posted by me soft.narayan@gmail.com,If u have
any query please let me know......
Using an object like an array is called Indexer.
Indexer is similar to properties.Indexer is a collection of
set and get procedures.Indexer name must be "this" only.
One class can have only one indexer.
Syntax to create Indexer:
string s
public string firstname
{
set{ s=value;}
get (return s;}
}
string[] x=new string[5];
public string this[inti]
{
set {x[i]=value}
get { return x[i]}
}
}
 |
| Soft.narayan@gmail.com |
| |
| |
| Answer | 1. An index is identified by it's signature. But a property
is identified it's name.
2. An indexer is always an instance member, but a property
can be static also.
3. An indexer is accessed through an element access. But a
property is through a member access.  |
| Priya |
| |
| |
|
|
| |
| Question |
What is use of
super class |
Rank |
Answer Posted By |
|
Question Submitted By :: Arifkhan017@gmail.com |
| This Interview Question Asked @ NIIT |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Super class is one from which we derive a new class.
Only Existing class can be made as Super class.
C# has a super class or root class called "object" from
which all classess are derived.  |
| Preeti |
| |
| |
| Question |
Hi to everybody. Lastweek i had taken an interview on c#.
They ask what is boxing & unboxing, Masking.Please tell the
answer and it is useful for me. |
Rank |
Answer Posted By |
|
Question Submitted By :: Jaishankar |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Boxing:converting from value types to reference type is
known as boxing.
Unboxing:Converting from reference types to value type is
known as unboxing.  |
| Saubhagya |
| |
| |
| Answer | class Test
{
static void Main()
{
int i = 1;
object o = i; // boxing
int j = (int) o; // unboxing
}
}  |
| Mr. D [Vignaraj Infotech] |
| |
| |
| Question |
explain synchronous and asynchronous in C# |
Rank |
Answer Posted By |
|
Question Submitted By :: K_arunpatro |
| This Interview Question Asked @ Synechron |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Usually the methods are synchronous. That means that you
call them, they gets executed. And when they finish you get
the control back.
The asynchronous methods are different. You call them. They
start executing, but return the control over the execution
back to the thread which called them while they continue to
execute in different thread.  |
| Sharad Yadav |
| |
| |
| Question |
How we free the memory in C#.NET. |
Rank |
Answer Posted By |
|
Question Submitted By :: K_arunpatro |
| This Interview Question Asked @ Synechron |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | by desructor or globilization
 |
| Geetanjali |
| |
| |
| Answer | Actually the freeing of the memory is done by the CLR
automatically by calling the garbage collection routine.
But the declared objects by the user can be deallocated
manually by using dispose function in the class by
implementing IDisposable interface in the object class.
Otherwise it can also be done by implementing a destructor
in the class, as the destructor defined will help
deallocating the object allocation after the usage of the
object gets over, i.e the object is not used anywhere else
in the program.  |
| Prashanth S [NIIT] |
| |
| |
| Question |
How u call destructor and dispose methode in c#.NET |
Rank |
Answer Posted By |
|
Question Submitted By :: K_arunpatro |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Destructor: They are special methods that contain the
cleanup code for the object.You cannot call them explicitly
as they are called by GC implicitly.
Class MyClass
{
~MyClass()
{
}
}
public interface IDisposable
{
void Dispose();
}
Class Test:IDisposable
{
protected void Dispose()
{
if(disposing)
{
// Code to dispose the managed resources of the class
}
// Code to dispose the un-managed resources of the class
isDisposed = true;
}
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
}
}  |
| Ruchika Mathur |
| |
| |
| Question |
int i,string s, String s1 Which is valuetype which is
refrence type. |
Rank |
Answer Posted By |
|
Question Submitted By :: K_arunpatro |
| This Interview Question Asked @ Synechron |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | String s1  |
| Bala |
| |
| |
| Answer | int i as valuetype
string s,string s1 are reference types....  |
| Spvarma [NIIT] |
| |
| |
| Answer | int i is value type
strings,s1 are refrence type
 |
| Geetanjali [NIIT] |
| |
| |
|
| |
|
Back to Questions Page |