What is Stream.ObjectInvariant()
?
#101155
-
There's an obsoleted protected method on runtime/src/libraries/System.Private.CoreLib/src/System/IO/Stream.cs Lines 944 to 945 in e6f1fd8 What was its purpose? The documentation says that it serves to "provide[s] support for a Contract", but how? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
See here for some more info on how this kind of method was supposed to be used/implemented in the past: https://learn.microsoft.com/en-us/dotnet/framework/debug-trace-profile/code-contracts#invariants |
Beta Was this translation helpful? Give feedback.
See here for some more info on how this kind of method was supposed to be used/implemented in the past: https://learn.microsoft.com/en-us/dotnet/framework/debug-trace-profile/code-contracts#invariants