コード例 #1
0
 /// <summary>
 /// Determines whether or not the current <see cref="Type" /> implements <see cref="IDisposable" /> or is
 /// <see cref="IDisposable" />.
 /// </summary>
 /// <param name="target">
 /// The current instance of the <see cref="Type" />.
 /// </param>
 /// <returns>
 /// <see langword="true" /> if the current <see cref="Type" /> implements <see cref="IDisposable" /> or is
 /// <see cref="IDisposable" />, otherwise <see langword="false" />.
 /// </returns>
 public static Boolean IsDisposable(this Type target) => DisposableType.IsAssignableFrom(target);