| How do I get application full path & .exe? |
Try this:
string path = System.Reflection.Assembly.GetExecutingAssembly().Location.ToString();
It will return the full path and the name of the executable.
To get only the full path, you can use:
string pathOnly = Application.StartupPath.ToString(); |
|
|
|
|
|
| What is the "Reflection"? |
| Reflection is a generic term that describes the ability to inspect and dmanipulate program elements at runtime. For example, reflection allows you to: 1. Enumrate the members of a type
2. Instantiate a new object
3. Execute the member of an object
4. Find out the information about a type
5. Find out the information about a assembly
6. Inspect the custom attributes applies to a type.
7. Create and compile new assembly |
|
|
|
|
|
| What is a pre-requisite for connection pooling? |
| Multiple processes must agree that they will share the same connection, where every parameter is the same, including the security settings. |
|
|
|
|
|
| Can you change the value of a variable while debugging a C# application? |
| Yes, if you are debugging via Visual Studio.NET, just go to Immediate window. |
|
|
|
|
|
| What are three test cases you should go through in unit testing? |
| Positive test cases (correct data, correct output), negative test cases (broken or missing data, proper handling), exception test cases (exceptions are thrown and caught properly). |
|
|
|
|
|