All pastes #12394 Raw Edit

Miscellany

public text v1 · immutable
#12394 ·published 2005-05-23 01:50 UTC
rendered paste body
// created on 5/23/2005 at 3:30 AM
using System;
using System.Reflection;

public class ReflectionTest
{
	Assembly myassembly = Assembly.LoadFrom("gtksharp.dll");
	
	Type mytype = myassembly.GetType("Gtk.RowActivatedArgs");
	
	foreach (MethodInfo mi in mytype.GetMethods())
	{
		Console.Write("{0} {1}(", mi.ReturnType.FullName, mi.Name);
      
  		bool first = true;
  		foreach (ParameterInfo pi in mi.GetParameters())
  		{
   			if (!first)
      		Console.Write(", ");
          
    		Console.Write("{0} {1}", pi.ParameterType.FullName, pi.Name);
   			first = false;
 		}
      
  		Console.WriteLine(")");
	
	}
	
}