Rhino.UintMap.GetExistingInt C# (CSharp) Method

GetExistingInt() public method

Get integer value assigned with key.
Get integer value assigned with key.
if key does not exist
public GetExistingInt ( int key ) : int
key int
return int
		public virtual int GetExistingInt(int key)
		{
			if (key < 0)
			{
				Kit.CodeBug();
			}
			int index = FindIndex(key);
			if (0 <= index)
			{
				if (ivaluesShift != 0)
				{
					return keys[ivaluesShift + index];
				}
				return 0;
			}
			// Key must exist
			Kit.CodeBug();
			return 0;
		}