Archive for October, 2006

Reflecting over properties in .NET

Friday, October 6th, 2006

I always forget the binding flags needed to reflect over properties in .NET. So this is mainly an aide-mémoire for myself.
PLAIN TEXT
C#:

PropertyInfo[] props = typeof(MyType).GetProperties(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);

I ALWAYS forget that you need to include the BindingFlags.NonPublic flag!

Java Enterprise Edition on it’s way out

Tuesday, October 3rd, 2006

I read an interesting article today about Java EE dying in an SOA world. I know a lot of people complain about its complexity but I was surprised to read the claim from a senior analyst with the Burton Group that
In five years, Java EE will be the CORBA of the 21st Century.
In my opinion, [...]