using System; namespace Framework.Support { /// Helper methods for dealing with arrays public static class ArrayHelper { /// Counts the number of entries in an array that can be null /// Array whose entries will be counted /// The number of entries in the array public static int CountNullableArray(string[] array) { if(array == null) { return 0; } else { return array.Length; } } } } // namespace Framework.Support