Browse by Tags
All Tags »
C# (RSS)
By default, parameters are always pass by value. However, the CLR does allow you to pass parameters by reference. In C#, you can use the out or ref keywords for passing parameters by reference. When the compiler sees that you’ve used these keywords, it
Read More...
I’m guessing that I won’t be giving any news when I say that parameters are used for passing values into methods. By default, parameters are passed by value. Here’s a quick example which will let us discuss this behavior: public class Student { public
Read More...
I’ve already written a little bit about extension methods in the past. However, since I’ve decided to create a new basics series, I think that I probably should go back and write about it again. I guess that the first thing I need to do is define the
Read More...
Last night most of the DotNetnuke team and I traveled into Burnaby, to the BCIT campus where I gave a real quick (1 hour) presentation on the WebMatrix Beta, and Razor Syntax. I was happy to see that we had over 60 people attend. It was awesome to see
Read More...
ASP.NET MVC2 has the new RequireHttpsAttribute that you can use to decorate any action to force any non-secure request to come through HTTPS (SSL). It can be used as simply as this: [RequireHttps]
Read More...
Data validation is an important part of any application. If you've written code to validate data in Silverlight applications prior to the release of Silverlight 4, you've probably discovered that there isn't a great way to ensure that data is entered
Read More...
Introduction The folks over at Microsoft recently pushed a open source release of their Sprite and Image Optimization Framework onto Codeplex last week. And after a few tweaks I was able to get it running within DotNetNuke, here is how… Download
Read More...
I’ve had the opportunity to give a lot of presentations on the Model-View-ViewModel (MVVM) lately both publicly and internally for companies and wanted to put together a post that covers some of the frequent questions I get on commanding. MVVM relies
Read More...
I had the opportunity to give a 1-day workshop covering new Silverlight 4 features at the TechReady conference on Microsoft’s Redmond campus this weekend and wanted to post some of the sample code shown for the people who attended and anyone else who’s
Read More...
Are you a .NET Developer wanting to get into developing on the Apple iPhone and iPad? Learn iPhone Programming for Free with Wrox, Novell, and McClure. Wrox/Wiley has released Wallace McClure’s Wrox Blox on Novell’s MonoTouch for free. The MonoTouch Wrox
Read More...
So, you have a simple class that has a bunch public properties and you want to be able to use ToString() on it to show some data? It’s easy. All you have to do is override the ToString()...
This site is a resource for asp.net web programming. It has examples by Peter Kellner of techniques for high performance programming
Introduction Imagine, for a second, you have a server sided JavaScript interpreter built right into a Content Management System. It should have full access to the entire Server sided API’s, depending on security requirements of course. You could literally
Read More...
I had a Linq2Sql statement like this: var q = from o in db.OrderItem where o.UserId == UserId
Read More...
I’ve recently started using CodeRush with Visual Studio 2010 and am so far very impressed with the convenience it adds to coding. One thing that is very clear is that the creators of CodeRush...
This site is a resource for asp.net web programming. It has examples by Peter Kellner of techniques for high performance programming
Even though I haven’t been as active as I wished, I have still managed to get some time to read several interesting blog posts lately. Unfortunately, it seems like two guys that I have a lot of respect for (though I haven’t had the pleasure of meeting
Read More...