public bool GetIsSelected(int ind) { var el = elementDatas.GetIfExists(ind); return(el != null && el.selected); }
public static T TryGet<T>(this UnNullableCfg<T> unn, int index) where T : ICfg, new() => unn != null ? unn.GetIfExists(index) : default(T);