Browse by Tags
All Tags »
Windows »
Web (
RSS)
When using generics, and you get an error "Given Expression is Never of <X> Type", it is usually how it is assigned. For example, I was trying to do this: public IInterface<T> CreateProvider<T>() { if (typeof(T) is ObjectA...
Recently, I've been seeing the value of application frameworks, like the Membership and Roles frameworks. Having the capabilities for your application, custom controls, and other objects to work together through a common API, components working together...
IFormattable is an interface that defines a version of a ToString method that include a format, and a format provider, if necessary. Within the method is a series of if statements, determining whether the format provide is null. If it isn't, it gets an...
I wrote an article on DotNet John talking about the benefits of creating a custom page class. One of the modules was called SecurityZone, which uses the Microsoft Enterprise Library Security Block (January 2006 version) to authorize users against specific...