2024年5月25日发(作者:)
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
}
static void DisplayTypeInfo(Type type)
{
foreach (FieldInfo fieldInfo in lds())
{
ine("The name of this field is:" + );
ine("The type of this field is:" + e().ToString());
if (ate)
{
ine("This field is Private!");
}
else
{
ine("This field is public");
}
}
ine(t(30, '-'));
foreach (PropertyInfo propertyInfo in perties())
{
ine("The name of this property is:" + );
ine("Type of this property is:" + ng());
if (te)
{
ine("This property can write!");
}
else
{
ine("This property can't be write");
}
}
ine(t(30, '-'));
foreach (MethodInfo method in hods())
{
ine("Method name:" + );
DisplayMethodInfo(method);
}
}
static void DisplayMethodInfo(MethodInfo method)
{
ine(t(25, '-'));
foreach (ParameterInfo parInfo in ameters())
{
ine("Parameter name is:"+);
ine("Parameter type is:" + ng());
if (onal)
{
ine("This parameter is option!");
}
else
ine("This parrameter is not option!");
if ()
{
ine("This parameter is out!");
}
else
ine("This parameter is not out!");
if (al)
ine("and is retval");
else
ine("and is not retval");
}
if (hodBody() != null)
{
GetMethodBody(hodBody());
}
}
static void GetMethodBody(MethodBody body)
{
ine(t(20, '-'));
ine("Body Information :");
ine("Max stack size:" + ckSize);
ine("Local variables are initialized:" + cals);
ine(t(15, '-'));
foreach (LocalVariableInfo local in ariables)
{
ine("Index of local var is:" + ndex);
ine("Type of local var is:"+ng());
}
ine(t(20, '*'));
}
}
}


发布评论