You are on page 1of 3

ref.

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 explorerdouble click on Properties opens assembly information in GUI

OR

Go to solution explorer expand Properties Double click on assembly.cs opens assembly


information in the form of statements or instructions or cs

You might also like