.NETGURU
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


    Need Dot Net Interview Questions?
    Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
    .Net Projects
    Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
    Free .net Help
    Commission ExamGuru, Inc. and his team for your next bespoke software project
    FogBUGZ
    The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
    Awesome Tools
    If you don't know about these, you're missing out... IT Certification Questions
    IT Interview Questions
    Free Oracle 10g Training
    MCSE Boortcamp
    Cisco Study Guides
    Cheap Study Guides
    Exact Questions
    Dot Net Interview Questions
    Oracle OCP
    Cheap Travel
    Designer Perfumes - Wholesale Prices
    Free Programming Tutorials
     
    ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
     Copyright © ExamGuru, Inc. 2001-2006
    Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification