コード例 #1
0
 public bool Fits(IRoundPeg roundPeg)
 {
     if (radius > roundPeg.GetRadius())
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
コード例 #2
0
        static bool IsHoleFit(IRoundPeg roundPeg)
        {
            int holeRadius = 4;

            return(roundPeg.GetRadius() <= holeRadius);
        }