Functionally dynamic?

I was just playing with this tonight, but I don’t know it’s worth anything. I thought of it after some conversations with Matt Podwysocki back at KaizenConf on how do apply some functional ideas in C#. First, I started with a simple class:

It’s still not dynamic typing, as I can’t add new members at runtime. I have no idea if this is useful or not, as the structure is rather weird, and you’d need to do some interesting things to get polymorphism in play. But, it might have some interesting applications in some strange scenario.

About Jimmy Bogard

I'm a technical architect with Headspring in Austin, TX. I focus on DDD, distributed systems, and any other acronym-centric design/architecture/methodology. I created AutoMapper and am a co-author of the ASP.NET MVC in Action books.

I, on the other hand, do have the clout. That’s my fake feedcount. I need the daily ego boost.

Ads

About Me

I'm the chief architect at Headspring in Austin, TX. I focus on DDD, distributed systems, and any other acronym-centric design/architecture/methodology. I created AutoMapper and am a co-author of the ASP.NET MVC in Action books.