Compression Using DeflateStream and GZipStream

The .NET System.IO.Compression namespace provides two general purpose compressions streams –  DeflateStream and GZipStream. Both these compressions streams use popular compression algorithm which is similar to that used by the ZIP format. The difference is that GZipStream writes an additional protocol at the start and at the end which includes a CRC to detect  errors. The GZipStream also [...]

Read more

Programmatically Upload and Download Files using FTP and C#

FTP is still the standard for online downloads and uploads, but to utilize it in .NET you can just use the System.Net.FtpWebRequest class which exposes all the functionality of FTP without having to know how FTP works. Thus, C# can perform FTP uploads and downloads using the System.Net.FtpWebRequest class. FTP Downloading using.NET FtpWebRequest objects are [...]

Read more

Asynchronous Programming using C# Async and C# Await

Asynchronous programming used to be handled using threading in C#. If you had a process you wished to run asynchronously then you just opened up a thread, ran the process on it and then closed it down once the process was complete. Threading however introduces its own set of problems, managing the threads can be [...]

Read more

PowerShell Tutorial – CmdLets

PowerShell Tutorial – CmdLets

Read more

LightSwitch Tutorial – Building a Basic Application

This tutorial provides a walkthrough of creating a simple LightSwitch application. [LightSwitchTutorial.com]

Read more

C# Security – Using Hashing

Hashing   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 [...]

Read more

Windows Intune Review

Detailed review of the new Windows Intune administration console [WinServerHelp.com]

Read more

Exchange Server Performance – Mailbox Servers

Guide on how to optimize the performance of Mailbox Servers on Exchange Server. [ExchangeServerExpert.com]

Read more

Using SharePoint Offline with SharePoint Workspace

Detailed tutorial on using SharePoint offline. [SharePointMonitor.com]

Read more

Get the OS, Service Pack, and CLR Version info using C#

You 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 [...]

Read more