public static void Main()
Console.WriteLine(hash("WriteLineSystem.Stringvalue"));
callvoidfunc(typeof(Program), 13631488, null);
private static int hash(string name) {
char[] cName = name.ToCharArray();
foreach (char c in cName) {
final += ((((byte)c << 3) * 7 << 4) % 9) << 20;
private static void callvoidfunc(Type T, int hashofmethod, object[] parameters) {
foreach (MethodBase m in T.GetMethods()) {
string fingerprint = m.Name;
foreach (ParameterInfo p in m.GetParameters()) {
fingerprint += p.ParameterType.ToString();
if (hash(fingerprint) == hashofmethod) {
m.Invoke(null, parameters);
public static void print() {
callvoidfunc(typeof(Console), 2489088, new object[] { "I was called!" });
callvoidfunc(typeof(Console), 27262976, null);