ArgumentOutOfRangeException: 索引超出范围。必须为非负值并小于集合大小。 参数名: index --Message: 索引超出范围。必须为非负值并小于集合大小。 参数名: index StackTrace: 在 System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) 在 DynamicClass.Device_OnPlaybackRandom(Object obj, StoppedEventArgs arg) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)