<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2FReflection%2FMemberInfo</id>
		<title>Csharp/C Sharp/Reflection/MemberInfo - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2FReflection%2FMemberInfo"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/Reflection/MemberInfo&amp;action=history"/>
		<updated>2026-04-29T16:43:10Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp/Reflection/MemberInfo&amp;diff=376&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/Reflection/MemberInfo&amp;diff=376&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:18Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp/Reflection/MemberInfo&amp;diff=377&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/Reflection/MemberInfo&amp;diff=377&amp;oldid=prev"/>
				<updated>2010-05-26T11:38:14Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Deeper Reflection:Finding Members==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
A Programmer&amp;quot;s Introduction to C# (Second Edition)&lt;br /&gt;
by Eric Gunnerson&lt;br /&gt;
Publisher: Apress  L.P.&lt;br /&gt;
ISBN: 1-893115-62-3&lt;br /&gt;
*/&lt;br /&gt;
// 36 - Deeper into C#\Deeper Reflection\Finding Members&lt;br /&gt;
// copyright 2000 Eric Gunnerson&lt;br /&gt;
using System;&lt;br /&gt;
using System.Reflection;&lt;br /&gt;
class MyClass&lt;br /&gt;
{&lt;br /&gt;
    MyClass() {}&lt;br /&gt;
    static void Process() {}&lt;br /&gt;
    public int DoThatThing(int i, Decimal d, string[] args)&lt;br /&gt;
    {&lt;br /&gt;
        return 55;&lt;br /&gt;
    }&lt;br /&gt;
    public int        value = 0;&lt;br /&gt;
    public float        log = 1.0f;&lt;br /&gt;
    public static int    value2 = 44;&lt;br /&gt;
}&lt;br /&gt;
public class DeeperReflectionFindingMembers&lt;br /&gt;
{    &lt;br /&gt;
    public static void Main(String[] args)&lt;br /&gt;
    {&lt;br /&gt;
        // iterate through the fields of the class&lt;br /&gt;
        Console.WriteLine(&amp;quot;Fields of MyClass&amp;quot;);&lt;br /&gt;
        Type t = typeof (MyClass);&lt;br /&gt;
        foreach (MemberInfo m in t.GetFields())&lt;br /&gt;
        {&lt;br /&gt;
            Console.WriteLine(&amp;quot;{0}&amp;quot;, m);&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
        // and iterate through the methods of the class&lt;br /&gt;
        Console.WriteLine(&amp;quot;Methods of MyClass&amp;quot;);&lt;br /&gt;
        foreach (MethodInfo m in t.GetMethods())&lt;br /&gt;
        {&lt;br /&gt;
            Console.WriteLine(&amp;quot;{0}&amp;quot;, m);&lt;br /&gt;
            foreach (ParameterInfo p in m.GetParameters())&lt;br /&gt;
            {&lt;br /&gt;
                Console.WriteLine(&amp;quot;  Param: {0} {1}&amp;quot;,&lt;br /&gt;
                p.ParameterType, p.Name);&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Get MethodInfo and MemberInfo==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt; &lt;br /&gt;
using System;&lt;br /&gt;
using System.Reflection;&lt;br /&gt;
public class Apple {&lt;br /&gt;
    public int nSeeds;&lt;br /&gt;
    public void Ripen() {&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
public class TypeOfApp {&lt;br /&gt;
    static void Main(string[] args) {&lt;br /&gt;
        Type t = typeof(Apple);&lt;br /&gt;
        string className = t.ToString();&lt;br /&gt;
        Console.WriteLine(className);&lt;br /&gt;
        Console.WriteLine(className);&lt;br /&gt;
        MethodInfo[] methods = t.GetMethods();&lt;br /&gt;
        foreach (MethodInfo method in methods) {&lt;br /&gt;
            Console.WriteLine(method.ToString());&lt;br /&gt;
        }&lt;br /&gt;
        Console.WriteLine(className);&lt;br /&gt;
        MemberInfo[] allMembers = t.GetMembers();&lt;br /&gt;
        foreach (MemberInfo member in allMembers) {&lt;br /&gt;
            Console.WriteLine(member.ToString());&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Get variable base type and public numbers==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt; &lt;br /&gt;
using System;&lt;br /&gt;
using System.Text;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.Reflection;&lt;br /&gt;
class MainClass {&lt;br /&gt;
    static void Main() {&lt;br /&gt;
        Type t = typeof(double);&lt;br /&gt;
        Console.WriteLine(&amp;quot;Type Name:  &amp;quot; + t.Name);&lt;br /&gt;
        Console.WriteLine(&amp;quot;Full Name:  &amp;quot; + t.FullName);&lt;br /&gt;
        Console.WriteLine(&amp;quot;Namespace:  &amp;quot; + t.Namespace);&lt;br /&gt;
        Type tBase = t.BaseType;&lt;br /&gt;
        if (tBase != null)&lt;br /&gt;
            Console.WriteLine(&amp;quot;Base Type:&amp;quot; + tBase.Name);&lt;br /&gt;
        Type tUnderlyingSystem = t.UnderlyingSystemType;&lt;br /&gt;
        if (tUnderlyingSystem != null)&lt;br /&gt;
            Console.WriteLine(&amp;quot;UnderlyingSystem Type:&amp;quot; + tUnderlyingSystem.Name);&lt;br /&gt;
        Console.WriteLine(&amp;quot;\nPUBLIC MEMBERS:&amp;quot;);&lt;br /&gt;
        MemberInfo[] Members = t.GetMembers();&lt;br /&gt;
        foreach (MemberInfo NextMember in Members) {&lt;br /&gt;
            Console.WriteLine(NextMember.DeclaringType + &amp;quot; &amp;quot; + NextMember.MemberType + &amp;quot; &amp;quot; + NextMember.Name);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>