I use an RPC method from a third party library that takes the class name and varargs to pass constructor parameters.
Is it possible to write a custom code analysis that is specific to this particular method?
What I would like to do is take the first parameter (which is the class name), use reflection to find out the number of constructor args and their types then compare those to the other parameters that have been passed as varargs.
Can this be done? If so, where do I get started with examples of how to do it?