Marc’s Lib goes mainstream
http://www.codeplex.com/Wiki/View.aspx?ProjectName=Dynamic
Sweet! Awe, it’s all grown up now!
http://www.codeplex.com/Wiki/View.aspx?ProjectName=Dynamic
Sweet! Awe, it’s all grown up now!
I traditionally hated testing for between-ness, because I had to order the endpoints. Like to determine if x was between y and z I had to make sure that y and z were arranged in the right order and then do if x < z and x > y then return true. Well [...]
Read the rest of this entry »Sorry I haven’t been very postative lately but I’m thoroughly engrossed in writing a compiler at the moment. It’s a virtual machine (virtual virtual machine cause it’s in .net, the irony) and I just need it to compile code to read and write things for me from a non-relational database without getting lots of [...]
Read the rest of this entry »Now with Vitamin C!
THIS IS COMPLETELY REVISED, so it bears almost no resemblence, except for the only slightly less than clever title of the article, to it’s former bug-ridden self. All of this code is now included in RegGen 0.4.6 available (again) at http://sourceforge.net/projects/refgen.
First thing’s first, you need an interface to denote cachable objects, [...]
Ok, I’ve heard people rambling off and on about how they don’t like the ObjectDataSource for this and that, but now I’m really seeing what they mean… If you don’t use a static object for the objectdatasoure’s backing source (DataTypeName) then you’re going to get an EMPTY object, freshly baked every single postback! What good [...]
Read the rest of this entry »… is what you feel when you’re slowly digging a ditch to run a pipeline from the well, as you watch everyone else go by all day carrying buckets two at a time.
Read the rest of this entry »Mr Parr,
You never met me, but I’m very well acquainted with you and your work. You’ve produced a set of good tools, and I’ll have to admit that I’ve been inspired by your endeavors. If it weren’t for you and ANTLR, I’d not know what a parser is. [...]
Dynamic Casting at Runtime
Now you might think that c# is a strongly typed language, but I’ve just discovered a way that you can squeeze yourself through the door of reasonable doubt, if you happen to be in court trying to prove to the contrary.
Now, no fair emitting IL to emulate VB’s cast, and no fair [...]
RefGen is very useful. The UI generation is neat, but the best part is the Introspector. Take anywhere you’d use reflection to enumerate properties and access them dynamically and replace that Type.GetProperty().GetValue() with Introspector.GetProperty(srcObject, “propertyName”). Even better, use it to set properties. Even enumerating properties and their types is a breeze, [...]
Read the rest of this entry »Ok, I admit it. It was all there in blue and white on microsoft’s site the whole time, and I just didn’t read it.
DynamicMethod, how to do it with generics, and yes… also… how to invoke generic type parameters at runtime and even how to return value types….wait for it…. without boxing.
http://msdn2.microsoft.com/en-us/library/exczf7b9.aspx
I hate that [...]