Public Shared Function GetMethodInfoList(ByRef objClass As Type) As
List(Of System.Reflection.MethodInfo)
'get the methods of the object.
Dim objList As New List(Of System.Reflection.MethodInfo)
Dim objClassProperties() As System.Reflection.MethodInfo 'array of methodinfo.
objClassProperties = objClass.GetMethods()
Dim objMethodItem As System.Reflection.MethodInfo
For Each mi_MethodItem In objClassProperties
GetMethodParameters(objMethodItem)
Next
Return objList
End Function
Private Shared Function GetMethodParameters(ByRef objMethodInfo As
System.Reflection.MethodInfo) As List(Of MyModels.NameValue)
Dim objList As New List(Of MyModels.NameValue)
Dim objParams() As System.Reflection.ParameterInfo
objParams = objMethodInfo.GetParameters()
For Each ParamItem In objParams
Dim objNameValue As New MyModels.NameValue
objNameValue.Name = ParamItem.Name
objNameValue.Value = ParamItem.ParameterType.ToString
objList.Add(objNameValue)
Next
Return objList
End Function
1 comment:
It is great to hear people pursuing their dream and becoming successful.
Book CoverDesign Service
Calendar Design Service
Newsletter Design Service
Static banner Design Service
Animated Banner Design Service
Custom Website Development
Ecommerce Website Development
CMS Website Development
Responsive Website Development
Parallax Website Development
EMS Website Development
B2B Website Development
Android Application Development
IPhone Application Development
IPad Application Development
Facebook Application Development
Social Media Designs Service
SEO Services
Post a Comment