Reflection

Currently Browsing Posts Tagged 'Reflection'

Caching Data Operations Using Delegates

by Captain Database on Sep 19th in C#

Not too long ago, I had a situation where I wanted to enforce a caching policy on an SOA data model. While this is a pretty trivial alteration, it’s one of those situations where the code will only be as easy to maintain as it is generic. Luckily, insane levels of abstraction (among other things) [...]

Dynamic Code Execution Class

by Captain Database on Jan 29th in C#

So there are times when, in applications of a certain complexity, the need arises to run dynamically generated code. Whether its code from an administrator data rule or template code from a sandbox playground, we’ll need to do it from time to time. So I wrote this simple class that explores the beginnings of dynamic [...]

ViewState Properties

by Captain Database on Dec 5th in ASP.NET, C#

If you do much control creation in ASP.NET, you’ve surely had more than your fill of defining ViewState-bound properties. Yes, it’s nice that Visual Studio provides you with a pretty nice default handler, but still, it requires a little too much customization per property. This is a simple task, and personally, I don’t want to [...]

Hybrid Clone

by Captain Database on Mar 30th in C#

OK, since this is a pretty hefty bit of code, I’m going to break this up a little bit.  First, let’s talk about the problem that this code solves and some of the code used to support it. When using a Web Reference in your applications, the development environment is good enough to automatically build [...]

Powered By Wordpress Designed By Ridgey