Skip to content

Tag Archives: reflection

How To Determine if Object Derives From Collection Type

16-Apr-09

Ever wanted to know how to determine if an object derives or implements from a collection type? I figured as all collections I understand in .NET 2.0+ derive unequivocally back to IEnumerable I could test if my object implemented this class. However after trying a few of my own ideas (the obvious Obj is IEnumerable, [...]

Cloning Object Properties via Reflection

16-Feb-09

I had a case today where I needed to clone all properties of an object from one class to another of different types. The originating type was a LINQ 2 SQL entity class type which represents the data model for my database table and the destination object which needed to be cloned to was a [...]

My name is Graham O'Neale and I'm a software architect from Gold Coast, Australia. I am an overtime thinker, full time coder and awake part time in the real world. I have a keen interest in software development, particularly in the realm of programming (C#, ASP.NET, ASP.NET MVC, LINQ (2 SQL), Entity Framework, Silverlight, Blend, WCF, WPF) and a keen interest in the cutting edge and innovation. I have a new found love for design patterns, ALT.NET practices and well crafted software architecture. The purpose of this blog is to express any thoughts, findings, tips and gripes along my travels in the wonderful world of coding and technology...