.NET port with Java's Map, Set, HashMap
- by Nikos Baxevanis
I am porting Java code in .NET and I am stuck in the following lines that (behave unexpectedly in .NET).
Java:
Map<Set<State>, Set<State>> sets = new HashMap<Set<State>, Set<State>>();
Set<State> p = new HashSet<State>();
if (!sets.containsKey(p)) { ... }
The equivalent .NET code could possibly…