I see that there are some ways to get the application folder path: Application.StartupPath System.IO.Path.GetDirectoryName( System.Reflection.Assembly.GetExecutingAssembly().Location) AppDomain.CurrentDomain.BaseDirectory System.IO.Directory.GetCurrentDirectory() Environment.CurrentDirectory System.IO.Path.GetDirectoryName( System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) System.IO.Path.GetDirectory(Application.ExecutablePath) What ...
-
April 29, 2022
- 0 Comments
I see that for using objects which are not thread safe we wrap the code with a lock like this: private static readonly ...
-
April 29, 2022
- 0 Comments
The ExpandoObject class being added to .NET 4 allows you to arbitrarily set properties onto an object at runtime. Are there any advantages ...
-
April 29, 2022
- 0 Comments
How do I use RelativeSource with WPF bindings and what are the different use-cases? 14 s 14 If you want to bind to ...
-
April 29, 2022
- 0 Comments
Possible Duplicate: How do I measure how long a function is running? I have an I/O time-taking method which copies data from a ...
-
April 29, 2022
- 0 Comments
Sometimes it seems that the Name and x:Name attributes are interchangeable. So, what are the definitive differences between them, and when is it ...
-
April 29, 2022
- 0 Comments
When comparing two strings in c# for equality, what is the difference between InvariantCulture and Ordinal comparison? 9 s 9 It does matter, ...
-
April 29, 2022
- 0 Comments
All of the Func delegates return a value. What are the .NET delegates that can be used with methods that return void? 7 ...
-
April 29, 2022
- 0 Comments
I have a windows forms app with a textbox control that I want to only accept integer values. In the past I’ve done ...
-
April 29, 2022
- 0 Comments