473,320 Members | 2,048 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,320 software developers and data experts.

reflection and parsing

I'm building a system which prints out a word document based on a word
template and reflection.

it's easy enough to do is specific cases using reflection - when you pass in
an object and are only concerned with the objects own properties.

Suppose the object is 'fred', then

fred.MyProperty

is easy.

But

fred.MyInfo["Jim"]

is quite complex in the particular and nasty in the general and

fred.MyInfo["Jim"].SomethingElse().MyProp

is horrid.

Now, I know I can parse this and use reflection to walk through the
parse tree and evaluate the result. But I don't want to write this.

DataBinder will do some of this, but seems restricted to properties (as
opposed to public fields - and my data classes are created from XML).

Has anyone got a general purpose parser or where can I find one?

Iain
Nov 16 '05 #1
0 1003

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

Similar topics

2
by: Nancy | last post by:
I have the following situation and could use some advise. I have a Base Class CreditReport, classes BoatCreditReport and HomeCreditReport Inherit from CreditReport. I would like to have the...
4
by: carl.manaster | last post by:
Hi, I'm exploring the reflection capabilities; I'd like to be able to find which methods read and write to which fields and properties, and which methods call which other methods. The idea...
1
by: Freddy Willockx | last post by:
Hi I'm doing some actions through reflection and generating some source code to speed up my actions. But, when I'm generating source code to read and write the fields of an Enum type, it goes...
2
by: Jack Ukleja | last post by:
Hi guys, I'm trying to figure out a way to do reflection on structs which are in a legacy c++ header file. Basically I want to write a C++/CLI program that lets me edit the binary data in the...
5
by: Eric Goforth | last post by:
Hello, I have a generic subroutine that I pass an object and fieldname as arguments. The subroutine then uses reflection to search for the value of the fieldname. For example: 'Calling...
4
by: .NET VB NewBEE | last post by:
hi after going thru some articles i'm confused with "How to implement Reflection in my program" my requirement is to dynamically load dll(whih got a specific Interface) files from the same...
1
by: Erland | last post by:
Hi, I want to retreive different namespaces available within an Assembly using Reflection. Is this possible? Can i retreive a namespace within an Assembly using " Type " ? My question is how...
0
by: liko81 | last post by:
I have an Invoice class that must know, directly or indirectly, how to do anything associated with creating, reading, or otherwise processing an invoice to a customer. It is an uber-DAO object that...
3
by: George | last post by:
Hello, I am building an assembly that connects to a third party application via http. I need create a http message that I post to the third party application. The message is very complicated...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.