Geeks With Blogs

News



Microsoft Store

Support This Site


AddThis Social Bookmark Button

Locations of visitors to this page

Subscribers to this feed

TwitterCounter for @sdorman

Creative Commons License


Scott Dorman Microsoft MVP, Software Architect, Developer, Author .NET (C#) .NET topics covering C# only.

Cloud hosted CI for .NET projects
Continuous integration (CI) is important. If you don’t have it set up…you should. There are a lot of different options available for hosting your own CI server, but they all require you to maintain your own infrastructure. If you’re a business, that generally isn’t a problem. However, if you have some open source projects hosted, for example on GitHub, there haven’t really been any options. That has changed with the latest release of AppVeyor, which bills itself as “Continuous integration for busy ......

Posted On Monday, June 2, 2014 9:26 AM

URL File Downloader for .NET Updates, Part 2
Just yesterday I mentioned that I updated my FileDownloader article and class on The Code Project. In that post, I mentioned that there was another update pending that added the ability to set the User-agent HTTP header. I received the notification from The Code Project this morning that they have updated the article so this new feature is included in the download. Remember, these changes are only available in the .NET 2.0 version of the class ......

Posted On Friday, August 17, 2007 9:58 AM

URL File Downloader for .NET Updates
It's been a while since I wrote the first version of my FileDownloader article and class. Since that time, there have been a lot of positive comments about the article and a handful of feature requests. I finally made the time to update the classes and the article and resubmit it to The Code Project. This update has the following new methods and properties: BlockSize Gets or sets the download block size in Kilobytes (KB). DownloadHtml Gets or sets a value indicating if HTML pages should be allowed ......

Posted On Thursday, August 16, 2007 7:35 PM

Data Binding an Enum with Descriptions on Code Project
I decided to turn my blog post on data binding an enum into an article on Code Project as well. I did this for two reasons: It gives the topic a much wider audience It provides a ready to use solution with the source code so you don't have to copy & paste it from the blog entry This article (or blog post) should provide a clean and simple way to allow you to bind an enumerated type with support for custom and localizable descriptions to any UI element that supports data binding ......

Posted On Sunday, August 12, 2007 10:47 PM

C# 3.0 Object Initializers
A few days ago, I wrote about automatic properties in the upcoming release of C#. While this is a cool feature, it does have some practical limitations once you need to go beyond simple get/set logic. Another new feature coming up is the idea of object initializers. Object initializersare an important aspect of the Linq extensions to .NET, but they aren't limited to being used only in Linq expressions. If you are familiar with attribute programming, you have probably used something similar. In most ......

Posted On Sunday, August 12, 2007 2:23 PM

C# 3.0 Automatic Properties
Defining properties can be very tedious. Suppose you have a class 1: public class UserProfile 2: { 3: private int userrId; 4: private string firstName; 5: private string lastName; 6: 7: public int UserId 8: { 9: get { return this.userId; } 10: set { this.userId = value; } 11: } 12: 13: public string FirstName 14: { 15: get { return this.firstName; } 16: set { this.firstName = value; } 17: } 18: 19: public string LastName 20: { 21: get { return this.lastName; } 22: set { this.lastName = value; } 23: ......

Posted On Wednesday, August 8, 2007 10:00 PM

Visual Studio Extensions
As a product, Visual Studio has been around for a long time. In fact, it’s been 18 years since the first Visual Studio product was launched. In that time, there have been some major changes but perhaps the most important (or at least influential) changes for the course of the product have been in the last few years. While we can argue over what was and wasn’t an important change or what has and hasn’t changed, I want to talk about what I think is the single most important change Microsoft has made ......

Posted On Friday, October 18, 2013 2:22 PM

MVP Spotlight
Each week, the different MVP Leads send out an email communication to their MVPs letting us know about upcoming events and other things relevant to us. As part of that newsletter, an individual MVP is often highlighted. This week, I’m the featured MVP! Thanks, Heather, for spotlighting me and the Windows Phone Marketplace Requests site ......

Posted On Friday, February 17, 2012 7:42 PM

Difference between "throw" and "throw ex" in .NET
Exception handling seems to be a common problem for .NET developers, particularly younger developers. We pretty much all know that you should wrap operations that have the potential for failing in a try/catch block if you are interested in being able to do something about the error that occurred. I'm not going to talk about the rules and guidelines for using exception handling. Instead I'm going to focus on a particular aspect of exception handling, which I tend to call exception bubbling. Exception ......

Posted On Monday, August 20, 2007 11:26 AM

C# 3.0 Extension Methods
At one time or another most of us have wished we could add functions to one of the intrinsic .NET classes. The solution has always been to either create a static (or sealed) class that contains these "helper" functions or derive a new class that adds the desired functionality. A good example of this is testing a string to see if it contains only alphanumeric characters. In order to do this, we need to define a helper class: 1: namespace DataValidationHelpers 2: { 3: public static class DataValidation ......

Posted On Sunday, August 19, 2007 1:06 AM

Copyright © Scott Dorman | Powered by: GeeksWithBlogs.net | Join free