Hello,
I am trying to learn csharp, and would like some advice on
storage
containers for my sample application. The data I want to
store is
structured as follows:
A "failure mechanism" has a triplet of strings,
"failure mode","failure
effects" and "failure consequences". In C
I would wrap these up in a
struct.
A "functional failure" has a string
"description" and 1 or more
"failure mechanism" attached (like an array, or
stack)
A "function" has a string
"description" and 1 or more "functional
failures attached"
I have looked at arrays, arraylists, stacks and indexers.
Only the
stack and arraylist appear to allow me to continue to add
items.
I would like to me able to access the data something like:
function[1].description
function[1].functionalFailure[2].description
function[1].functionalFailure[2].failureMechanism[1].failure
Mode
function[1].functionalFailure[2].failureMechanism[1].failure
Effects
etc
and I would like to be able to continue adding
failureMechanism's to
functionalFailures, and functionalFailures to functions as
required,
anytime during or after object creation, so it would be good
to be able
do something like
failureMechanism fm = new
failureMechanism("blah","blah",&quo
t;blah");
function[1].functionalFailure[2].add(fm);
fm.destroy();
Ideas? Thoughts?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharp googlegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribe googlegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---
|