コード例 #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));
			}