Posted by Phil in Uncategorized
on Aug 17th, 2012 | 1 comment
This is a minor annoyance at worst, but the VS2012 rules for <legend /> being mandatory in a <fieldset /> is wrong, legend should be optional.
If you’re like me, and refuse to stand for such things, you can easily hack a couple of files to fix it, the files are as follows:
C:Program Files (x86)Microsoft Visual Studio 11.0BlendHtmlSchemasenhtml_5.xsd
C:Program Files (x86)Microsoft Visual Studio 11.0Common7Packagesschemashtmlhtml_5.xsd
C:Program Files (x86)Microsoft Visual Studio 11.0Common7Packagesschemashtmlxhtml_5.xsd
In each of the files, find the following line and change...
Posted by Phil in Uncategorized
on May 18th, 2012 | Comments Off on ASP.NET MVC3 EditorFor that looks for inheritance
Today I ran into issue with MVC 3 where a view with a model type TModel won’t check to see if the model’s instance is a subclass of TModel, resulting in any attributes on overridden properties being ignored. This is because the metadata is read from the type specified in the view, and not the actual instance.
For example, with the following class structure and view will never render “SomeProperty” as “required”, even if the model is an instance of InheritedClass.
Classes:
public class BaseClass
{
public virtual string SomeProperty { get; set; }
}
public class...
Posted by Phil in Uncategorized
on Jun 30th, 2011 | Comments Off on Red-Black Tree in F#
Here’s some F# just for fun, it’s some code translated from the Qi code here.
Posted by Phil in Uncategorized
on Mar 11th, 2009 | Comments Off on Hello world!
Hi, my names Phil, and this is my blog. I’m a .net developer and architect that’s trying to find his way through the trials and tribulations of working on a ambitious personal project. I hoping that I’ll be able to share with you my successes and failures as I try things that are new to me and also share ideas and code that that I’ve found useful and needs to be blogged about!
So that’s about it for the first post! I’m going to be posting at least once a week, with my second post in progress already. I hope this’ll give you an idea what to expect (and you stay tuned,) and at least it’s...