Hi All,
Apologies if my 2AM post wasn't clear or didn't make sense. I should learn
to not send questions at the tail end of a long work day ;) (On a side
note, have you heard about the phone service that will let you specify
certain numbers to make unavailable after a certain hour? The idea is to
prevent drunken calls to ex boyfriends/girfriends. Funny)
Anyway, the reason for my question can be understood here (2nd bullet under
"What I need to do":
http://pmddirect.com/sklett/PMDTextBoxReview.html
I'd like to avoid making my control class a generic and instead find some
way to pass in data via a generic method and get it back out on the same
type-safe manner.
I hope that clears up any confusion. Thanks for the replies and again I'm
sorry if the question didn't makse sense.
-Steve
"Steve K." <no***@nowhere.comwrote in message
news:uv**************@TK2MSFTNGP06.phx.gbl...
>I know this code is garbage but it should give you an idea of what I'm
after:
<code>
class Test
{
Type _t = null;
public void SetSourceList<T>(Dictionary<string, TsourceList)
{
_t = typeof(T);
}
public _t DoSomething()
{
return default(_t);
}
}
</code>
Basically I've got two related methods of a class that I want to be
generic and I don't want to make the whole class generic.
Anyway to accomplish what I'm after? I've been reading:
http://msdn2.microsoft.com/en-us/lib...pe(vs.80).aspx
But it's not sinking in too well, maybe I need to get some rest ;0)
-Steve