[dba-VB] Iterating class properties

Charlotte Foust cfoust at infostatsystems.com
Tue Nov 13 09:38:31 CST 2007


What exactly are you trying to do, John?  A tool like CodeGen should
take care of creating the XML for you, but I don't really understand
your question.  

Charlotte Foust

-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby
Sent: Tuesday, November 13, 2007 4:42 AM
To: dba-vb at databaseadvisors.com
Subject: [dba-VB] Iterating class properties

Does anyone know a way to iterate the properties of a class in VB.Net or
C#.Net (or in .Net in general)?  There is built-in functionality to
store classes out to XML files and this stuff does exactly that,
apparently using only the Get/Let statements, i.e. if there is not both
a get and let statement for a property then the process fails to convert
that property to XML.  

So if MS does it, is that capability publicly available?  Is there a
property iterator buried in the innards of the class object?

John W. Colby
Colby Consulting
www.ColbyConsulting.com 

_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com





More information about the dba-VB mailing list