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
Why doesn't C# support static method variables?
OR
In C++, it's possible to write a static method variable, and have a variable that can only be accessed from inside the method. C# doesn't provide this feature. Why?
There are two reasons C# doesn't have this feature.

1 - it is possible to get nearly the same effect by having a class-level static, and adding method statics would require increased complexity.
2 - method level statics are somewhat notorious for causing problems when code is called repeatedly or from multiple threads, and since the definitions are in the methods, it's harder to find the definitions.

What are Resource Files? How are they used in .Net?
Resource files are the files containing data that is logically deployed with an application. These files can contain data in a number of formats including strings, images and persisted objects. It has the main advantage of if we store data in these files then we do not need to compile these if the data get changed. In .Net we basically require them storing culture specific information by localizing applications resources. You can deploy your resources using satellite assemblies.
What is the difference between .dll extension and .exe extension?
The main difference between .dll and .exe is

.dll is the In process component where it take up the client's memory space to run. So the communication between the application and component(dll) is very fast.

.EXE is the Out of process component. It uses its own memory(not application memory) to run the component. The communication between the application and component is slow when compared to .dll
What is the difference between an .EXE and a .DLL?
Exe is executable and independent program/process to run which has its own reserved memory space whereas DLL (Dynamic Link Library) is neither executable and not even independent, it used by other DLL/program.
What is the GAC? What problem does it solve?
GAC stands for Global Access Cache where shareable/public assemblies (DLL) stored to be used by multiple programs. It gives a shared platform for programs to use single assembly and can store same assembly (of same name) with different versions and can help to solve DLL HELL.
FirstPreviousDisplaying page 5 of 5
What does Dispose method do with the connection object?
Is it possible to have a static indexer in C#?
Does C# support jagged arrays?
What is Process?
What is maximum dimension technically posible in C#?
Can I use inline assembly or IL in C# code?
Where is the output of TextWriterTraceListener redirected?
Can you allow class to be inherited, but prevent the method from being over-ridden?
How do I use an alias for a namespace or class in C#?
What is the Abstract class (C#)?