You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Resets the timer, stopping the current timing and restarting it.
51
+
/// This method first stops the timer and then restarts it, effectively resetting the timing cycle.
52
+
/// The timer's configuration (such as interval, auto-reset settings, etc.) remains unchanged.
52
53
/// </remarks>
54
+
/// <param name="timer">要重置的计时器实例 / The timer instance to reset.</param>
55
+
/// <exception cref="ArgumentNullException">当 <paramref name="timer"/> 为 null 时抛出此异常 / Thrown when <paramref name="timer"/> is null.</exception>
56
+
/// <exception cref="ObjectDisposedException">当 <paramref name="timer"/> 已被释放时抛出此异常 / Thrown when <paramref name="timer"/> has been disposed.</exception>
53
57
/// <example>
54
58
/// <code>
55
-
/// var timer = new Timer(1000); // 1秒间隔
59
+
/// var timer = new Timer(1000); // 1秒间隔 / 1 second interval
56
60
/// timer.Start();
57
-
/// // ... 一段时间后
58
-
/// timer.Reset(); // 重置计时器,重新开始计时
61
+
/// // ... 一段时间后 / ... after some time
62
+
/// timer.Reset(); // 重置计时器,重新开始计时 / Reset the timer and restart timing
/// <param name="targetType">要检查的类型,不能为null / The type to check, cannot be null.</param>
56
+
/// <param name="interfaceType">目标接口类型,不能为null / The interface type to check for, cannot be null.</param>
57
+
/// <returns>如果类型实现了指定的接口,则返回true;否则返回false / true if the type implements the specified interface; otherwise, false.</returns>
58
+
/// <exception cref="ArgumentNullException">当 <paramref name="targetType"/> 或 <paramref name="interfaceType"/> 为 null 时抛出 / Thrown when <paramref name="targetType"/> or <paramref name="interfaceType"/> is null.</exception>
59
+
/// <exception cref="ArgumentException">当 <paramref name="interfaceType"/> 不是接口类型时抛出 / Thrown when <paramref name="interfaceType"/> is not an interface type.</exception>
/// <param name="type">要检查的类型,不能为null / The type to check, cannot be null.</param>
84
+
/// <param name="generic">目标泛型类型,不能为null / The generic type to check for, cannot be null.</param>
85
+
/// <returns>如果类型实现了指定的泛型接口或继承自指定的泛型类,则返回true;否则返回false / true if the type implements the specified generic interface or inherits from the specified generic class; otherwise, false.</returns>
86
+
/// <exception cref="ArgumentNullException">当 <paramref name="type"/> 或 <paramref name="generic"/> 为 null 时抛出 / Thrown when <paramref name="type"/> or <paramref name="generic"/> is null.</exception>
/// <param name="self">要判断的类型。必须是非空的具体类型 / The type to check. Must be a non-null concrete type.</param>
140
+
/// <param name="target">要判断的接口类型。必须是非空的接口类型 / The interface type to check for. Must be a non-null interface type.</param>
141
+
/// <param name="directOnly">是否只检查直接实现的接口,不检查继承的接口 / Whether to only check directly implemented interfaces without checking inherited interfaces.</param>
142
+
/// <param name="checkIndirectInterfaces">是否检查接口之间的继承关系 / Whether to check inheritance relationships between interfaces.</param>
143
+
/// <returns>如果self实现了target接口,则返回true;否则返回false / true if self implements the target interface; otherwise, false.</returns>
144
+
/// <exception cref="ArgumentNullException">当 <paramref name="self"/> 或 <paramref name="target"/> 为 null 时抛出 / Thrown when <paramref name="self"/> or <paramref name="target"/> is null.</exception>
145
+
/// <exception cref="ArgumentException">当 <paramref name="target"/> 不是接口类型时抛出 / Thrown when <paramref name="target"/> is not an interface type.</exception>
0 commit comments