Created
February 11, 2015 10:17
-
-
Save ufcpp/61ce43823a449564161d to your computer and use it in GitHub Desktop.
Method Contracts proposed in C# 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public int Insert(T item, int index) | |
requires index >= 0 && index <= Count | |
ensures return >= 0 && return < Count | |
{ | |
return InsertCore(item, index); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment