K
Kevin
If I had the following variables defined:
System.Collections.Generic.BindingList<String> obj1;
System.Collections.Generic.BindingList<Int32> obj2;
And then I wanted to tell if an object was any type of generic
BindingList what would the syntax be? I can get it to work with
non-generic types, but can't seem to get the statement to return back
true for both obj1 and obj2. Something like the following doesn't work:
if (obj1 is System.Collections.Generic.BindingList<object>) ...
Thanks.
System.Collections.Generic.BindingList<String> obj1;
System.Collections.Generic.BindingList<Int32> obj2;
And then I wanted to tell if an object was any type of generic
BindingList what would the syntax be? I can get it to work with
non-generic types, but can't seem to get the statement to return back
true for both obj1 and obj2. Something like the following doesn't work:
if (obj1 is System.Collections.Generic.BindingList<object>) ...
Thanks.