I have multiple classes that all contain the same property along with a whole of different other properties. The classes don’t use any kind of Interface. What I would like to do is pass an instance of each class to a method that can check for the property.
Can generics be used for this? If so, how can I construct a method to perform this task?
Sounds like a use for dynamic (in C# 4.0)
http://msdn.microsoft.com/en-us/library/dd264736.aspx