public void GetFirstLastTest() { ISet set = new SortedSet(); set.Add("2"); set.Add("1"); set.Add("4"); set.Add("3"); Assert.AreEqual(CollectionUtil.GetFirst(set), "1"); Assert.AreEqual(CollectionUtil.GetLast(set), "4"); }
/// <summary> /// /// </summary> /// <param name="persister"></param> public override void BeforeInitialize(ICollectionPersister persister) { internalSet = new Iesi.Collections.SortedSet(Comparer); }
/// <summary> /// /// </summary> /// <param name="persister"></param> public override void BeforeInitialize( ICollectionPersister persister ) { internalSet = new Iesi.Collections.SortedSet( Comparer ); }