Professional Documents
Culture Documents
cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
namespace hello
{
class ref1
{
public int x;
public void fun1()
{
x = 10;
System.Reflection.MemberInfo typeInfo;
typeInfo = typeof(Program);
//object[] attrs = typeInfo.GetCustomAttributes(false);
Console.WriteLine(typeInfo);
Console.WriteLine(attrs);
}
}
}
Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace hello
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("hello world");
ref1 r = new ref1();
r.fun1();
Console.ReadKey();
}
}
}
assembly information
go to solution explorerdouble click on Properties opens assembly information in GUI
OR