[RESOLVED] reflection issue
can someone tell me ?why the following code is not working let me know some hints.
Code:
using System;
using System.Collections.Generic;
using System.Text;
namespace Reflection_sample2
{
public class sample2
{
private int i;
public void multiply(int n,int j)
{
i=n*j;
}
public string s;
{
get
{
return s;
}
set
{
s = value;
}
}
public static int Main()
{
Type t1=typeof(sample2);
Memberinfo[] mem_info=t1.GetMembers();
Foreach (Memberinfo m_info in mem_info)
{
console.Writeline(m_info);
}
return 0;
}
}
}