There's something I don't completely understand about generics. Can somebody elaborate based on the below.
Consider the following code:
public class SampleProcessor(Of TModel)
public function DoSomething(byval m as TModel) as boolean
' m.PropertyName doesn't work here as you might expect
end function
end class
How do I access the methods and properties of the input instance? I could use CallByName or reflection I suppose, but one seems antiquainted, and the other I no little about. There has to be a simpler way.






Bookmarks