Re: [ADVANCED-DOTNET] Determing time when a assembly was built

2005-01-28 Thread Shawn A. Van Ness
Fernando, that is the most obscure .NET development trick I've ever seen. You are either a genius, or a madman. -S === This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com

Re: [ADVANCED-DOTNET] Copying and pasting Excel data via Clipboard

2005-01-28 Thread Ashes Mukherjee
No problem, Steve. Happy to do that next time onwards. From: [EMAIL PROTECTED] on behalf of Steve Johnson Sent: Thu 1/27/2005 9:24 AM To: Unmoderated discussion of advanced .NET topics. Subject: Re: [ADVANCED-DOTNET] Copying and pasting Excel data via Clipboard

Re: [ADVANCED-DOTNET] Which namespace to use: System.Reflection o r System.ComponentMode l

2005-01-28 Thread J. Merrill
You call the ComponentModel things primarily as an IDE author, to give the author of a component (or control) ways to enhance its design-time (as well as run-time) behavior. If you are a component or control author, you implement the ComponentModel things so that any code that works with yours

Re: [ADVANCED-DOTNET] Adding an event handler using reflection?

2005-01-28 Thread John Dumais
That worked perfectly. Thank you. On Fri, 28 Jan 2005 14:49:15 -0700, Russ Alan <[EMAIL PROTECTED]> wrote: >Probably overkill for what you need, but this is a general reflection driven >event binding code. > >Object source = GetEventSourceObject(); >String eventName = GetNameOfEventOnSource(); >

Re: [ADVANCED-DOTNET] Adding an event handler using reflection?

2005-01-28 Thread Russ Alan
Probably overkill for what you need, but this is a general reflection driven event binding code. Object source = GetEventSourceObject(); String eventName = GetNameOfEventOnSource(); Object target = GetObjectToHandleEvent(); String handlerName = GetNameOfMethodToHandleEvent(); Type sourceType = so

Re: [ADVANCED-DOTNET] Determing time when a assembly was built

2005-01-28 Thread Fernando Tubio
Actually, it is possible during the build process to use a custom attribute to embed a build timestamp, or other metadata for that matter. The only requirement is that it has to be a custom permission attribute, which do get instantiated during compilation time. Granted, this is a very obscure solu

[ADVANCED-DOTNET] Adding an event handler using reflection?

2005-01-28 Thread John Dumais
Hello, I'm trying to create an application that can allow users to extend the menu by supplying the event handlers in their own libraries. My first thought was to use reflection to specify the event handler, something like this... // The user's assembly has already been loaded and we have create

Re: [ADVANCED-DOTNET] Which namespace to use: System.Reflection o r System.ComponentMode l

2005-01-28 Thread Gravitz, Steve
So what's the point of using PropertyDescriptors and the PropertyDescriptorCollection? Why not use PropertyInfo and the GetProperties() method of a type? See the first code snippet in ... http://msdn.microsoft.com/smartclient/default.aspx?pull=/library/en-us/dnwin forms/html/datagridcolumnstyle1

Re: [ADVANCED-DOTNET] Which namespace to use: System.Reflection or System.ComponentMode l

2005-01-28 Thread J. Merrill
System.ComponentModel is not related, at all, to Reflection. You cannot use its methods to do the things that Reflection does. ComponentModel is (quoting from URL below) "to implement the run-time and design-time behavior of components and controls." It's not for finding out about (and possib

[ADVANCED-DOTNET] Which namespace to use: System.Reflection or System.ComponentMode l

2005-01-28 Thread Gravitz, Steve
Since discovering the power of reflection in .NET, I've been able to realize significant benefits. My helper class for Reflection contains methods that use Assemblies, System.Type, EventInfo, PropertyInfo, etc. Most of these types are located in the System.Reflection namespace. Everything works f