ASPFriends.com 'ngfx-reflection' list
Up to: Discussion Lists

  • RSS Syndication
  • Latest Discussions Archive
    dynamic loading of an assembly (4 replies)
    ASPFriends.com 'ngfx-reflection' list
    I am looking for a way to dynamically load an assembly given the name of the assembly. Is it appropriate to use the Assembly.Load() method and specify the assembly name. I assume that this method will pick up the private assemblies as well as those in the GAC. Is this correct? Wally PS. If this is the incorrect list to send this to, please alert me to the correct one.
    AssemblyBuilder.Save() System.IO.IOException (4 replies, VIP)
    ASPFriends.com 'ngfx-reflection' list
    I have created a dynamic assembly in a web application with the AssemblyBuilderAccess.RunSave. When I attempt to save the assembly using something like: assemblyBuilder.Save("MyDynamicAssembly.dll"); I get a System.IO.IOException: Access denied. What do I need to configure to be able to write the dll? I assume it is trying to write the web app's bin directory.
    reflecting custom attributes... (6 replies)
    ASPFriends.com 'ngfx-reflection' list
    Copied from [aspngcs] to [ngfx reflection] by Ryan Trudelle Schwarz ryants@aspelite.com This is a bit confusing, but IMHO its a bug. I have a set of classes which i want to add attributes to them. So i create my attribute class, and derive from Attribute, then add the needed attributes to my classes. Nothing new. It compiles and works fine. Next i try to reflect these attributes. So i get the type...
    Reflection and AddEventHandler method (4 replies, VIP)
    ASPFriends.com 'ngfx-reflection' list
    Moved from [aspngfw] to [ngfx reflection] by Charles M. Carroll darthcarroll@asplists.com Relevant code: Control MyControl Page.FindControl("myControl"); Type MyType MyControl.GetType(); System.Delegate x new EventHandler(this.myEventHandler); MyType.GetEvent("SomeEvent").AddEventHandler(MyControl, x); } public void myEventHandler(object sender, EventArgs e) { Trace.Write("event handler","Event oc...
    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...
    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...
    Get classes in assembly? (2 replies, VIP)
    ASPFriends.com 'ngfx-reflection' list
    Is there any way to get all the classes in an assembly that directly or indirectly derive from a given class? or that implement a given interface?
    Visit the archive for messages from this site.
  • October 2001 (1 item)
  • November 2001 (2 items)
  • January 2002 (1 item)
  • May 2002 (1 item)
  • June 2002 (1 item)
  • July 2002 (1 item)
    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