Geeks With Blogs
Tom Liversidge .net, technology and life February 2010 Entries
Using Windows Live Writer with code snippet plug-ins
Just testing the use of Windows Live Writer for blogging. I have downloaded and installed some plugins for adding code snippets. The following examples use this plugin: /// <summary> /// Resets the counters. /// </summary> public void ResetCounts() { StudentsWithFiles = 0; StudentsWithoutFiles = 0; TotalSpaceUsed = 0; TotalFilesCount = 0; } You can also change the colours and fonts: /// <summary> /// Resets the counters. /// </summary> public void ResetCounts() { StudentsWithFiles ......

Posted On Wednesday, February 24, 2010 5:44 PM

Extension method for displaying bytes as megabytes / gigabytes
Hi, I am currently involved in a project that requires information about the size of files to be displayed to a user. Quite a common scenario I'll imagine. There are many examples online of how to convert bytes to megabytes and gigabytes and display a friendly message to the user. All the ones I've seen however, involve creating a method that does this which takes a value as a parameter and returns a string. My solution for this project was to implement an extension method for variables of type long. ......

Posted On Wednesday, February 24, 2010 4:13 PM

Copyright © tomliversidge | Powered by: GeeksWithBlogs.net