R
rajamanickam
hi,
I am rajamanickam.. working as a software developer....
i tried to create a general class in vb.net to access an
incoming parameter object's methods and properties.. by
Object.GetType.InvokeMethod in System.Reflection.It is
working and calling methods of the parameter object.But i
couldnot get values from properties of the incoming
parameter object.......
for an example.. -----------------------
public class gen_class
public function call_Method_fromChild(byref incomingObj as
object,byval methodName as string,byval arguments as
string)
incomingObj.getType.InvokeMethods(methodname.......)
end function
public function getValueFromChild(byref incomingObj as
object,byval propertyName as string)
dim propertyObj as system.reflection.PropertyInfo
propertyobj=incomingobj.getType.getProperty
(propertyname,Reflection.BindingFlags.Default)
propertyobj.getValue()
.....
...
end function
end gen_class
-------------- but the above.. coding is not working..and
not getting value from property... but method calling is
working..
if u know plz.. send me the points.. what mistake i
committed.. to use this great option.....
bye
Rajamanickam
I am rajamanickam.. working as a software developer....
i tried to create a general class in vb.net to access an
incoming parameter object's methods and properties.. by
Object.GetType.InvokeMethod in System.Reflection.It is
working and calling methods of the parameter object.But i
couldnot get values from properties of the incoming
parameter object.......
for an example.. -----------------------
public class gen_class
public function call_Method_fromChild(byref incomingObj as
object,byval methodName as string,byval arguments as
string)
incomingObj.getType.InvokeMethods(methodname.......)
end function
public function getValueFromChild(byref incomingObj as
object,byval propertyName as string)
dim propertyObj as system.reflection.PropertyInfo
propertyobj=incomingobj.getType.getProperty
(propertyname,Reflection.BindingFlags.Default)
propertyobj.getValue()
.....
...
end function
end gen_class
-------------- but the above.. coding is not working..and
not getting value from property... but method calling is
working..
if u know plz.. send me the points.. what mistake i
committed.. to use this great option.....
bye
Rajamanickam