コード例 #1
0
		protected override void ChooseTarget(ChooseContext choose)
		{
			choose.ReadList(targets =>
			{
				for (int i = 0; i < targets.Count; ++i)
				{
					var target = targets[i];
					if (choose.Matches(target))
						return target;
				}
				return null;
			});
		}
コード例 #2
0
 protected override void ChooseTarget(ChooseContext choose)
 {
     choose.ReadList(targets =>
     {
         for (int i = 0; i < targets.Count; ++i)
         {
             var target = targets[i];
             if (choose.Matches(target))
             {
                 return(target);
             }
         }
         return(null);
     });
 }