Hello,
I am using reflections to get Parameters and their types of a COM Interop
Assembly method. ParameterType.FullName returns "System.Boolean&" what's the
significance of & at the end?
Here's my code:
/* Project1.Class1Class has 1 method doA, second param is boolean type */
//Get Type from Assebly
Assembly asm = Assembly.Load("Interop.Project1");
//Create Type instance
Type asmT = asm.GetType("Project1.Class1Class");
//get Method Info and Parameter info
MethodInfo mInfo = asmT.GetMethod("doA");
ParameterInfo[] paramsInfo = mInfo.GetParameters();
//display type full name
MessageBox.Show(paramsInfo[1].ParameterType.FullName);