Console Application on Reflection in C# 1.1 and 2.0 (Dot Net)
Console Application on Reflection in C# 1.1 and 2.0 (Dot Net)
// Refjlection in C#
using System;
using System.Reflection;
namespace reflection
{
class reflection
{
public static void Main()
{
Type t=typeof(reflec);
Type t1=typeof(sec);
MemberInfo []b=t.GetMembers();
MemberInfo []c=t1.GetMembers();
foreach(MemberInfo a in b)
{
Console.WriteLine(a.ReflectedType+" "+a.DeclaringType+" "+a.Name+" = "+a.MemberType);
}
foreach(MemberInfo a in c)
{
Console.WriteLine(a.ReflectedType+" "+a.DeclaringType+" "+a.Name+" = "+a.MemberType);
}
Console.ReadLine();
}
}
class reflec
{
public void del(){}
public void welcome(){}
}
class sec:reflec
{
public int a=5;
public sec(int a){}
public void cosec(){}
}
}
Nothing Found!
Why not submit your own content? Signup here.
-
XA Transaction - Solution for Transaction More Than One Database | By H4d1 | in Programming
Have you ever think that it's too difficult for making database transaction in two different places (or databases) ...
-
Javascript functions for : trim, right trim, left trim, no Apostrophe, is Empty , is Digit , VarChar To Number , is integer , check Is Zero , Get Que | By xxris | in Programming
Javascript functions for : trim, right trim, left trim, no Apostrophe, is Empty , is Digit , VarChar To Number , i...
-
How to access and use a Window's command line | By MaxwellPayne | in Programming
Learn about the Window's command line in DOS and how to use it....
-
How to Learn to Program Your Computer | By dsj8760 | in Programming
This article is about learning to program a computer. It is a general article giving tips on how to learn about pro...
-
Jailbroken iPhones get RickRolled | By explorer | in Programming
First iPhone worm, attacks via SSH and does the classic rick roll gag on the user....
-
Javascript functions for : trim, right trim, left trim, no Apostrophe, is Empty , is Digit , VarChar To Number , is integer , check Is Zero , Get Que | By xxris | in Programming
Javascript functions for : trim, right trim, left trim, no Apostrophe, is Empty , is Digit , VarChar To Number , i...
-
C# Code for Diagonal Addition of Two Matrix (Dotnet) | By xxris | in Programming
C# Code for Diagonal Addition of Two Matrix (Dotnet)...
-
C# Code for converting Digits to words from number 1 to 100099 (Dotnet) | By xxris | in Programming
This Program is For numbers less Than equal to 100099....
-
C# code for Transpose Of Matrix (C Sharp) ( Dot net) | By xxris | in Programming
C# code for Transpose Of Matrix (C Sharp) ( Dot net)...
-
Simple welcome and Console Print application in C# ( C sharp ) (Dot Net) | By xxris | in Programming
Simple welcome and Console Print application in C# ( C sharp ) (Dot Net)...








No comments yet.