First, please forgive the ambiguity of 'Employee' and 'Company'... That was simply the arbitrary result of some reading through an example from a chapter in the .NET book I am reading, paired with a task I am attempting to perform in AutoCAD.
Perhaps instead of my original post, I should have verbalized the task at hand for input and guidance from others, but I generally like to make an attempt to the best of my abilities first.
This is simply the next step (task) in an application that ties into my Event plug-in from the other thread.
Ultimately, it is my intention to employ my plug-in to invoke a Method each time the DocumentCreated Event fires. This Method is intended to iterate a list of strings, using FindFile() and System.IO to perform a few internal tasks to our CAD Standards.
I can already iterate this small list of strings using standard means (aka the piper cub, a hard-coded list wrapped in a foreach block), and am attempting to build-in some flexibility for future enhancement(s), thus my seeking a custom Class, both for the string objects, and for the collection of.
My thought (albeit potentially misguided), was to define the singular object class which would allow me the flexibility to add additional Properties, etc. down the road as currently I need only Name and Path Properties for each instance of this object. Then, for the Method being invoked via DocumentCreated Event, simply create a new instance of the Collection Class, which already includes an iterable List, etc. of the newly created objects... Then to simply search the Database for Findfile(object.Name ....).
myClass.Collection would very much be workable, I just wasn't sure how to accomplish that, and was hoping the structure I presented in the OP was simpler, without being simplistic.
You're correct, I am not capable of flying a B-52 at present... Especially given my background for jumping out of C-130, and C-141 with about 150 of my fellow Soldiers. LoL