Original Post
It seems C# doesn't handle generics like C++ handles templates. I need a way to do this:
public void DoSomething<T>(object o, T thing)
{
_member = thing.Value;
}
The error is 'T' does not contain a definition for 'Value'... well, of course it doesn't :) That's what a template type is. Anything I would call "DoSomething" for would have "Value" defined. But apparently not what a generic type is :/ Is there a way to accomplish this in C#--and if so, what is it? Thanks and Greetings Chad