While I started developing software, I faced this situation over and over again where I had to iterate thorough the whole collection and perform some action on each of the element of the
The following code snippet return the Version number of currently executing assembly -
static string
GetCurrentAssemblyVersionNumber() {
Assembly
currentAssembly =
Assembly
.GetExecutingAssembly();
return
currentAssembly.FullName.Split(
new Char
[] {
','
} )[1]; }
.Net framework’s Directory class of system.io namespace provides a static method GetFiles to search the files of a particular directory. Here is the static method detail - Using the code snippet
If we are in test driven development, we need to spend significant amount of time in writing unit tests. In VSTS unit testing framework, every test run create a unique folder in our
What is an immutable object?
By definition immutable object is the object whose state can not be changed after it is created. That means, after creating the object, its publicly exposed members can