How to pass int,string and float to the method called using reflections ? Basically,different types while invoking like this:
method.Invoke(service, null);
i can pass an object array but how will it know what types i am passing?
Thanks
How to pass int,string and float to the method called using reflections ? Basically,different
Share
Your method info is coupled to exactly one method. Two different methods can have the same name when their signature (parameters’ types) is different.
So if you have an overloaded method, you can get either of them by using
providing the parameters’ types in the array.