Debris status 0x03 - Reading and populating the Metadata streams and tables and a question about class vs. struct

by Jason Haley 11. February 2006 09:16

This weekend and probably next weekend, I am working on finishing up the re-designing and refactoring the Vijay code into Debris.  This week on the train I have finished the populating of the metadata streams, but now I am revisiting some of the design decisions I made for Vijay regarding the metadata tables ...  Class vs. Struct.

Vijay used structs for metadata tables and rows, this time around I am using less structs to make it feel a little more OO oriented (even though performance and memory footprint will be impacted a bit).

Anyone out there have an opinion on the following design question?

Need to create a datastructure to hold a specific row of data and a container to hold these rows ... what do you see as the pros and cons of class vs. struct in a C# 2.0 implementation?  You might want to take into consideration that once the data structure is populated it is not going to change very often, accessing the rows needs to be fast, creation and population needs to be efficient and unloading of the datastructure won't happen very often.  There are less than 50 tables and N number of rows in those tables.

Comments (3) | Post RSSRSS comment feed |

Categories:
Tags:

Comments

Comments are closed