473,386 Members | 1,786 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Modifying the attributes of a Property in a VB Class using CodeDom

Hi All ,

I am using the Code model for Generating the VB code on the Fly.
I am able to generate a new class with the Variables, Fields and Methods I want.

Now What I want is the facility to modify a Member's Details inside my already generated Class.

For Ex:

Protected m_OilProd As TimeSeriesDoublePublic Overridable Property OilProd() As TimeSeriesDoubleGet Return m_OilProdEnd Get Set(ByVal Value As TimeSeriesDouble) m_OilProd = ValueEnd SetEnd Property Now I want to modify some of the attributes and replace in the same class and in the same file may be MyModule.vb .For Ex: I may want to rename the variable and generate the code as: Private m_OilRev As TimeSeriesDoublePublic Overridable Property OilProd() As TimeSeriesDoubleGet Return m_OilRevEnd Get Set(ByVal Value As TimeSeriesDouble) m_OilRev = Value End SetEnd Property Are there any classes available in the CodeDom reference to search for the members of the class, find it and then modify the member as we like? With Regards,UVN PardhaSaradhi
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
E-Mail disclaimer:
This email and any files transmitted with it are confidential and intended solely for the use
of the individual or entity to whom they are addressed and do not constitute a commitment
by Inooga Solutions Pvt. Ltd. except where provided for in a written agreement between you
and the Company. If you are not the intended recipient of this message, please notify the
sender immediately.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~




Nov 16 '05 #1
0 1119

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Paul Paterson | last post by:
I am trying to find a way to mimic by-reference argument passing for immutables in Python. I need to do this because I am writing an automated VB to Python converter. Here's an example of the VB...
1
by: Hari | last post by:
Hello, I am quite new to C# and when reading over a couple of books discovered the presence of reflection and attributes. While, I do understand them a little, it would be great if I could know...
0
by: Shawn A. Hall | last post by:
First, I apologize if this isn't the right group to post this question, but I didn't see a newsgroup specific to CodeDom so here I am. On to my question: I am trying to use CodeDom to generate...
4
by: Ananth | last post by:
I would like to know if we can enter properties (name-value pairs) dynamically into a property grid object using C#. Also is it possible to have the text in the property grid (within the indiidual...
4
by: Wayne | last post by:
I need to add some attributes and look at existing attributes to a property. Not the private/public stuff, but rather something like: System.Xml.Serialization.XmlElementAttribute What should I...
3
by: Mark R. Dawson | last post by:
Hi all, I am trying to get custom attributes from a property. I can do this if I pass in the name of the property i.e. "Name" to the reflection methods, but if I pass in set_Name which is what...
2
by: jamie | last post by:
Perhaps I'm using this wrong. When I use above an attribute I don't want serialized it ignores the attribute. It also ignores some other attributes. Have I done something wrong? Here's...
3
by: redefined.horizons | last post by:
I've been reading about Python Classes, and I'm a little confused about how Python stores the state of an object. I was hoping for some help. I realize that you can't create an empty place holder...
5
by: Kimmo Laine | last post by:
Hi is there a way to change propertys attribute from the code? Letīs say that i have the following property in my class: public int Count } Is there a way to change the displayname, from...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.