bounds.cs
来自「Data Structures and Algorithms with Obj」· CS 代码 · 共 19 行
CS
19 行
namespace Opus6
{
using System;
[Copyright("Copyright (c) 2001 by Bruno R. Preiss, P.Eng."), Version("$Id: Bounds.cs,v 1.4 2001/10/28 19:50:09 brpreiss Exp $")]
public class Bounds
{
public static void Check(int i, int rangeBase, int length)
{
if ((i < rangeBase) || (i > ((rangeBase + length) - 1)))
{
throw new IndexOutOfRangeException();
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?