Sign in
United States (English)
Brasil (Português)
Česká republika (Čeština)
Deutschland (Deutsch)
España (Español)
France (Français)
Italia (Italiano)
Россия (Русский)
대한민국 (한국어)
中华人民共和国 (中文)
台灣 (中文)
日本 (日本語)
香港特别行政區 (中文)
DevLabs
Home
About
Projects
Forums
DevLabs
>
DevLabs Forums
>
Code Contracts
>
Contract Request: System.IO.Stream
Ask a question
Search Forums:
Search Code Contracts Forum
Search All DevLabs Forums
Search All MSDN Forums
Contract Request: System.IO.Stream
Thursday, October 22, 2009 10:48 PM
Strilanc
0
Sign In to Vote
The IO.Stream class is missing contracts (I checked the Read method, I assume others are also missing).
Reply
Quote
Answers
Friday, October 23, 2009 11:35 PM
Manuel Fahndrich
MSFT
, Owner
0
Sign In to Vote
I added contracts for Read, BeginRead, Write, and BeginWrite.
Cheers, -MaF (Manuel Fahndrich)
Marked As Answer by
Manuel Fahndrich
MSFT
, Owner
Friday, October 23, 2009 11:35 PM
Reply
Quote
All Replies
Friday, October 23, 2009 11:35 PM
Manuel Fahndrich
MSFT
, Owner
0
Sign In to Vote
I added contracts for Read, BeginRead, Write, and BeginWrite.
Cheers, -MaF (Manuel Fahndrich)
Marked As Answer by
Manuel Fahndrich
MSFT
, Owner
Friday, October 23, 2009 11:35 PM
Reply
Quote
Saturday, October 24, 2009 9:48 PM
Strilanc
0
Sign In to Vote
The contracts you applied are not all correct.
I'm getting warnings: requires is false: offset + count < buffer.Length
That < should be <=.
Reply
Quote
Saturday, October 24, 2009 11:42 PM
Manuel Fahndrich
MSFT
, Owner
0
Sign In to Vote
Duh, you're right of course. I was a bit in a hurry yestereday. Sorry about that.
Cheers, -MaF (Manuel Fahndrich)
Reply
Quote
Sunday, November 01, 2009 3:42 PM
Strilanc
0
Sign In to Vote
If I turn off the rewriter, will my program stop crashing due to violating the incorrect contract?
Reply
Quote
Need Help with Forums? (FAQ)
© 2009 Microsoft Corporation. All rights reserved.
Manage Your Profile
|
Terms of Use
|
Trademarks
|
Privacy Statement
|
Contact Us