diff --git a/src/libraries/System.Private.CoreLib/src/System/ObjectDisposedException.cs b/src/libraries/System.Private.CoreLib/src/System/ObjectDisposedException.cs index 32888e648cc98..c0d5803d79f4e 100644 --- a/src/libraries/System.Private.CoreLib/src/System/ObjectDisposedException.cs +++ b/src/libraries/System.Private.CoreLib/src/System/ObjectDisposedException.cs @@ -46,6 +46,10 @@ protected ObjectDisposedException(SerializationInfo info, StreamingContext conte _objectName = info.GetString("ObjectName"); } + /// Throws an if the specified is . + /// The condition to evaluate. + /// The object whose type's full name should be included in any resulting . + /// The is . [StackTraceHidden] public static void ThrowIf([DoesNotReturnIf(true)] bool condition, object instance) { @@ -55,6 +59,10 @@ public static void ThrowIf([DoesNotReturnIf(true)] bool condition, object instan } } + /// Throws an if the specified is . + /// The condition to evaluate. + /// The type whose full name should be included in any resulting . + /// The is . [StackTraceHidden] public static void ThrowIf([DoesNotReturnIf(true)] bool condition, Type type) {