public override ISensor CreateSensor() { var wrappedSensor = wrappedComponent.CreateSensor(); return(new StackingSensor(wrappedSensor, numStacks)); }