Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# convert list to array function

/// <summary>
        /// Convert List of string to Array
        /// </summary>
        /// <param name="lst"></param>
        /// <returns></returns>
        public static Array ConvertListToArray(List<string> lst)
        {
            string[] arr = lst.ToArray();
            return arr;
        }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #list #array #function
ADD COMMENT
Topic
Name
9+4 =