public void AddBufferCreatorsInAssembly(Assembly asm) { Type[] ts = asm.GetExportedTypes(); Type target = typeof(ASerializableBufferCreator); for (int i = 0; i < ts.Length; i++) { if (target != ts[i] && target.IsAssignableFrom(ts[i])) { ASerializableBufferCreator bc = (ASerializableBufferCreator)Activator.CreateInstance(ts[i]); AddBufferCreator(bc); } } }
public void AddBufferCreator(ASerializableBufferCreator bufferCreator) { bufferCreators.Add(bufferCreator); }