@@ -10,37 +10,37 @@ public ref class MyMethodInfo
10
10
{
11
11
Console::WriteLine (" Reflection.MethodInfo" );
12
12
// Gets and displays the Type.
13
- Type^ MyType = Type::GetType (" System.Reflection.FieldInfo" );
13
+ Type^ myType = Type::GetType (" System.Reflection.FieldInfo" );
14
14
// Specifies the member for which you want type information.
15
- MethodInfo^ Mymethodinfo = MyType ->GetMethod (" GetValue" );
16
- Console::WriteLine (MyType ->FullName + " ." + Mymethodinfo ->Name );
15
+ MethodInfo^ myMethodInfo = myType ->GetMethod (" GetValue" );
16
+ Console::WriteLine (myType ->FullName + " ." + myMethodInfo ->Name );
17
17
// Gets and displays the MemberType property.
18
- MemberTypes Mymembertypes = Mymethodinfo ->MemberType ;
19
- if (MemberTypes::Constructor == Mymembertypes )
18
+ MemberTypes myMemberTypes = myMethodInfo ->MemberType ;
19
+ if (MemberTypes::Constructor == myMemberTypes )
20
20
{
21
21
Console::WriteLine (" MemberType is of type All" );
22
22
}
23
- else if (MemberTypes::Custom == Mymembertypes )
23
+ else if (MemberTypes::Custom == myMemberTypes )
24
24
{
25
25
Console::WriteLine (" MemberType is of type Custom" );
26
26
}
27
- else if (MemberTypes::Event == Mymembertypes )
27
+ else if (MemberTypes::Event == myMemberTypes )
28
28
{
29
29
Console::WriteLine (" MemberType is of type Event" );
30
30
}
31
- else if (MemberTypes::Field == Mymembertypes )
31
+ else if (MemberTypes::Field == myMemberTypes )
32
32
{
33
33
Console::WriteLine (" MemberType is of type Field" );
34
34
}
35
- else if (MemberTypes::Method == Mymembertypes )
35
+ else if (MemberTypes::Method == myMemberTypes )
36
36
{
37
37
Console::WriteLine (" MemberType is of type Method" );
38
38
}
39
- else if (MemberTypes::Property == Mymembertypes )
39
+ else if (MemberTypes::Property == myMemberTypes )
40
40
{
41
41
Console::WriteLine (" MemberType is of type Property" );
42
42
}
43
- else if (MemberTypes::TypeInfo == Mymembertypes )
43
+ else if (MemberTypes::TypeInfo == myMemberTypes )
44
44
{
45
45
Console::WriteLine (" MemberType is of type TypeInfo" );
46
46
}
0 commit comments