diff options
Diffstat (limited to 'BCT/Samples/Generics/GenericsExample.cs')
-rw-r--r-- | BCT/Samples/Generics/GenericsExample.cs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/BCT/Samples/Generics/GenericsExample.cs b/BCT/Samples/Generics/GenericsExample.cs deleted file mode 100644 index c7016ceb..00000000 --- a/BCT/Samples/Generics/GenericsExample.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System;
-using System.Collections.Generic;
-using System.Diagnostics.Contracts;
-using System.Linq;
-using System.Text;
-
-/* Simple example of generics/dictionary support needed by Poirot */
-class GenericsExample
-{
- public static void Main()
- {
- Dictionary<String, String> dict = new Dictionary<String, String>();
- dict["foo"] = "bar";
- Contract.Assert(dict.ContainsKey("foo"));
- Contract.Assert(dict.ContainsValue("bar"));
- Contract.Assert(dict["foo"] == "bar");
- dict.Remove("foo");
- Contract.Assert(dict["foo"] == "bar"); // should fail
- }
-}
\ No newline at end of file |