Adam K Dean

Posts tagged with csharp

Private set property - public get, private set

Published 29 December 2010 in archive with tags csharp Just come across something I haven't needed before, a property read-only from the outside, but writeable from the inside.. I present to you the private set property! Continue reading …

Non-blocking Console.ReadKey()

Published 16 December 2010 in archive with tags csharp , consoleapplication Just a quick snippet for today. Continue reading …

Dynamic CSS with ASP.NET - in one line of code

Published 24 September 2010 in archive with tags csharp , aspnetwebforms Whether you want a separate sheet for each browser, or you want to track when people print a page from your site (as is my case), how do you get code to run in a CSS file? You can't. How do you get an ASPX file to serve up CSS? Well, you can't. But like House MD, I have the answer and I'll tell you eventually. Continue reading …

Indexers - make your classes act like arrays

Published 4 September 2010 in archive with tags csharp , hashtable , indexers Indexers are great, I've only really started using them consciously today, but they're a great discovery I'll be sure to incorporate into more of my code from now on. Continue reading …

Remove annoying beep from pressing enter in textbox

Published 31 August 2010 in archive with tags csharp , winforms And there you have it. Very easy, very simple and very very useful. Continue reading …



Newer Page 3 of 4 Older