Added missing contracts in Directory class.#251
Added missing contracts in Directory class.#251SergeyTeplyakov merged 1 commit intomicrosoft:masterfrom fedotovalex:fix-249
Conversation
…rectories (fixes #249)
There was a problem hiding this comment.
Is this message is correct? It seems slightly misleading to me because it doesn't tell what the error type is...
There was a problem hiding this comment.
Well, that's what MSDN says, although honestly I just copied and pasted this part without much thinking. Looking closer, I'm not sure if there is much value in adding EnsuresOnThrow in this form.
There was a problem hiding this comment.
Yeah.. This stuff looked weird for me as well, but then I've searched thought this repo and found that this is a canonical way to express possible exceptions.
My point was more about the message that is absolutely unclear, but because the official documentation is saying that, I'm not sure what we can do. I would prefer to have more clear message but have no idea what this message should looks like.
|
Everything is looks good for me... |
|
Oh thanks! 😄 I was going to attempt this myself, but got stuck fighting a Git-vs-Line-Endings war. |
Added missing contracts in Directory class.
This fixes #249.
Adds contracts for: