using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
|
public static class VesselExtension
|
{
|
|
public static bool IsNullOrEmpty<T>(this List<T> vessel)
|
{
|
return vessel == null || vessel.Count == 0;
|
}
|
|
public static bool IsNullOrEmpty<T>(this T[] vessel)
|
{
|
return vessel == null || vessel.Length == 0;
|
}
|
|
public static bool IsNullOrEmpty<T0, T1>(this Dictionary<T0, T1> dictionary)
|
{
|
return dictionary == null || dictionary.Count == 0;
|
}
|
|
}
|