Hello all,
I have a webservice that I would like to coll some of its methods dynamically.
I am using the following code:
I am getting a Missing member error but the member does exists. Can I do this or should I just code a long case statement and save the trouble.Code:Public Function getit(ByVal dictionaryname As String) As DataSet Dim methodname As String = dictionaryname + "DictionariesGet" Dim myds As DataSet Dim t As Type = GetType(ws.Rex) myds.Merge(t.InvokeMember(methodname, BindingFlags.DeclaredOnly Or BindingFlags.Public Or BindingFlags.NonPublic Or BindingFlags.Instance Or BindingFlags.GetProperty, Nothing, Nothing, Nothing)) Return myds End Function
Tal


Reply With Quote
