public void AddRawInstrument(RawInstrument ri, InstrumentShared ins) { ProductClassType pi; if (this.productClass.ContainsKey(ri.productFamily)) { pi = this.productClass[ri.productFamily]; } else { pi = new ProductClassType(ri.productFamily); this.productClass.Add(ri.productFamily, pi); } pi.AddRawInstrument(ri, ins); }