reflexon
-
hi, i'm having error "Member not found." from the following code(in time of invoking member)..
foreach (MemberInfo mi in type.GetMember("test_mdi_Init")) { type.InvokeMember (mi.Name.ToString(), BindingFlags.Default | BindingFlags.InvokeMethod, null, ibaseObject, arguments); }
what could be the problem? thanx for help :) -
hi, i'm having error "Member not found." from the following code(in time of invoking member)..
foreach (MemberInfo mi in type.GetMember("test_mdi_Init")) { type.InvokeMember (mi.Name.ToString(), BindingFlags.Default | BindingFlags.InvokeMethod, null, ibaseObject, arguments); }
what could be the problem? thanx for help :) -
The flags of the member doesn't fit the flags that you have specified. --- b { font-weight: normal; }
-
hi, i'm having error "Member not found." from the following code(in time of invoking member)..
foreach (MemberInfo mi in type.GetMember("test_mdi_Init")) { type.InvokeMember (mi.Name.ToString(), BindingFlags.Default | BindingFlags.InvokeMethod, null, ibaseObject, arguments); }
what could be the problem? thanx for help :)BindingFlags.Default
is 0, so you can remove that. I think you needBindingFlags.InvokeMethod | BindingFlags.Public | BindingFlags.Instance
.
"..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.." -- Mark McCormick
|| Fold With Us! || Pensieve || VG.Net ||
-
BindingFlags.Default
is 0, so you can remove that. I think you needBindingFlags.InvokeMethod | BindingFlags.Public | BindingFlags.Instance
.
"..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.." -- Mark McCormick
|| Fold With Us! || Pensieve || VG.Net ||
-
BindingFlags.Default
is 0, so you can remove that. I think you needBindingFlags.InvokeMethod | BindingFlags.Public | BindingFlags.Instance
.
"..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.." -- Mark McCormick
|| Fold With Us! || Pensieve || VG.Net ||