FiE-Game/Assets/Plugins/GameDataEditor/ArrayExtensions.cs

14 lines
337 B
C#
Raw Normal View History

2023-07-19 19:11:02 +02:00
// Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// GameDataEditor.ArrayExtensions
using System;
namespace GameDataEditor
{
public static class ArrayExtensions
{
public static bool IsValidIndex(this Array variable, int index)
{
return index > -1 && variable != null && index < variable.Length;
}
}
}