Example #1
0
 public void Test_Equals()
 {
     hs = new HashSet<int> { 1, 2, 3, 4};
     HashSet<int> hs1 = hs;
     Assert.That(hs, Is.SameAs(hs1));
     Assert.That(hs.Equals(hs1), Is.True);
 }
		//	
		//	public LinkedHashMap<String, String> orderKey(HashMap<String, String> key) {
		//		LinkedHashMap<String, String> orderedKey = new LinkedHashMap<String, String>();
		//		for (IDimensionObjectBase d : dimensions){
		//			if (key.containsKey(d.getConcept().getId())){
		//				orderedKey.put(d.getConcept().getId(), key.get(d.getConcept().getId()));
		//			}
		//		}
		//		return orderedKey;
		//	}
	
		public virtual String GetGroupId(ISet<String> dimensions0) {
			/* foreach */
			foreach (IGroupObjectBase g  in  _groups) {
				ISet<String> grpDims = new HashSet<String>();
				/* foreach */
				foreach (IDimensionObjectBase d  in  g.Dimension) {
					grpDims.Add(d.Id);
				}
				if (grpDims.Equals(dimensions0)) {
					return g.Id;
				}
			}
			return null;
		}