LightSwitch Tutorial – Building a Basic Application
This tutorial provides a walkthrough of creating a simple LightSwitch application. [LightSwitchTutorial.com]
Read moreThis tutorial provides a walkthrough of creating a simple LightSwitch application. [LightSwitchTutorial.com]
Read moreHashing is a method of one-way encryption which is ideal for storing passwords in a database, as you may never require a decrypted version. To authenticate some data, simply hash what the user input and compare it with the data stored in the database.
A hash code will always be a small fixed size irrespective [...]
Detailed review of the new Windows Intune administration console [WinServerHelp.com]
Read moreGuide on how to optimize the performance of Mailbox Servers on Exchange Server. [ExchangeServerExpert.com]
Read moreDetailed tutorial on using SharePoint offline. [SharePointMonitor.com]
Read moreYou can use the System.Environment.OSVersion class to access detail s of the user’s system environment
The below code demonstrates using the OSVersion object to access environmental info:
OperatingSystem osObj = System.Environment.OSVersion;
Console.WriteLine(“Platform is: {0}”, osObj.Platform);
Console.WriteLine(“Service Pack is: {0}”, osObj.ServicePack);
Console.WriteLine(“Version is: {0}”, osObj.Version);
Console.WriteLine(“VersionString is: {0}”, osObj.VersionString);
Console.WriteLine(“CLR Version is: {0}”, System.Environment.Version);
Note that the OSVersion object will [...]
Read moreIt is normally safe to allow let multiple threads read data at the same time, but when a thread is required to perform a write, all other threads will need to be blocked. The .NET framework originally provided ReaderWriterLock for this circumstance, but it has performance issues which often outweigh its usefulness. [...]
Read moreIf you have a routine which splits data across processors using the Parallel class you may need to protect memory, files or other resources which are shared across the multiple processes. One solution to this is to use a mutex, which is similar to a Monitor object, but at the operating system level. Mutexes must [...]
Read more The Parallel Class can be used to split up the tasks which work on the data. For example if you have iterative code that looks like the below code:
//6 parts of the book
string[] inputTextFiles =
{
“part1.txt”, “part2.txt”, “part3.txt”,
“part4.txt”, “part5.txt”, “part6.txt”
};
foreach (string file in inputTextFiles)
{
string contentStr = File.ReadAllText(file);
CountCharacters(contentStr);
CountWords(contentStr);
}
The Parallel class can be used with lambda expressions [...]
The new Task Parallel Library introduced with .NET 4, allows you to easily split code execution onto multiple processors without using threads or locks.
For a task which is easily split into independent sub-tasks, or data that can be partitioned and computed separately you can use the Parallel class in System.Threading to assign [...]