public static IBaseRefList <T> ChainConcat <T>(this T[] left, IBaseRefList <T> right) { if (right.IsReadOnly) { return(left.ChainConcat(right.AsReadOnly())); } else { return(left.ChainConcat(right.AsNonReadOnly())); } }
public static IBaseRefList <T> ChainConcat <T>(this IBaseRefList <T> left, T[] right) { if (left.IsReadOnly) { return(left.AsReadOnly().ChainConcat(right)); } else { return(left.AsNonReadOnly().ChainConcat(right)); } }
public static IBaseRefList <T> ChainConcat <T>(this IBaseRefList <T> left, IBaseRefList <T> right) { // Don't need to use ChainedListExtensions.IsReadOnly(list) helper function, since arrays can't implement IRefList anyway. if (left.IsReadOnly || right.IsReadOnly) { return(left.AsReadOnly().ChainConcat(right.AsReadOnly())); } else { return(left.AsNonReadOnly().ChainConcat(right.AsNonReadOnly())); } }