Search:
Namespaces
Discussions
.NET v1.1
Feedback
ASPFriends.com 'ngfx-reflection' list Archive - November 2001
Messages
Page:
1
Reflection conundrum. (2 replies)
ASPFriends.com 'ngfx-reflection' list
Hi, In my infinite search to reduce the number of lines of code I write, I have a problem. Consider the following situation, where I have 5 panels, names panelX, with X 3D1 to 5. 20 I want to change the Visible property of each of them to true, using a loop. I've invented a mythical GetObject(string objectName) function, which returns a reference to the object specified by the string. Initially, i...
System.Reflection - Loading Assemblies (5 replies)
ASPFriends.com 'ngfx-reflection' list
I'm having some difficulty with the Reflection class and I'm at my wits end. If I do this everything works fine: public void invokeMethod(string sMethodName) { object obj null; Type type typeof(MyNameSpace.MyClass); // Create an instance of AccountEnumeration in Memory obj Activator.CreateInstance (type); //Get info for method MethodInfo mi type.GetMethod(sMethodName); //invoke method mi.Invoke(ob...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com