Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 5th, 2003, 02:43 AM
Registered User
 
Join Date: Nov 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Reflection, Emit, DescriptionAttribute

Hi,

For two days I'm unsuccessfully investigating the possibility of defining Description attribute, when emiting the class dynamically by means of Reflection namespace methods. I've written the following code for dynamic property creation:
        Dim custNamePropBldr As PropertyBuilder = _
myTypeBuilder.DefineProperty(isName, _
                          PropertyAttributes.HasDefault, _
                          itType, New Type() {itType})
None of the custNamePropBldr properties gives me chance to set the DescriptionAttribute, or CategoryAttribute as I needed. How to dynamically set these attributes ?
Can somebody help me with this, please ?! Thanx.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Reflection-TargetInvocationException dipak_2111 C# 2005 0 January 11th, 2007 01:08 AM
Can I emit a tag using an incoming parameter? dmorin XSLT 3 August 14th, 2006 09:03 AM
Reflection jayakumar.cj ASP.NET 1.0 and 1.1 Basics 1 July 15th, 2006 06:12 AM
Unable to emit assembly garwood BOOK: ASP.NET Website Programming Problem-Design-Solution 1 June 26th, 2006 11:02 PM
Reflection ffbalota C# 2 January 8th, 2004 03:07 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.