예제 #1
0
 void SetData(IListSource <T> data)
 {
     _hSet = new Dictionary <T, T>(data.Count);
     _mSet = new MMap <T, T>();
     _iSet = new Map <T, T>(data.Select(P));
     foreach (T item in data)
     {
         _hSet.Add(item, item);
         _mSet.Add(item, item);
     }
 }
예제 #2
0
 public IListSource <DragPoint> ToShapeSpace(IListSource <DragPoint> mousePoints)
 {
     return(mousePoints.Select(dp => new DragPoint(dp, _inputTransform)));
 }
예제 #3
0
			public IListSource<DragPoint> ToShapeSpace(IListSource<DragPoint> mousePoints)
			{
				return mousePoints.Select(dp => new DragPoint(dp, _inputTransform));
			}