/// <summary>
        /// convert the given writing systems into a property containing comma-delimited icuLocales.
        /// </summary>
        /// <param name="wss"></param>
        /// <returns></returns>
        private static string EncodeWssToDisplayPropertyValue(IEnumerable <IWritingSystem> wss)
        {
            var wsIds = (from ws in wss
                         select ws.Id).ToArray();

            return(ChoiceGroup.EncodeSinglePropertySequenceValue(wsIds));
        }
        /// <summary>
        /// convert the given writing systems into a property containing comma-delimited icuLocales.
        /// </summary>
        /// <param name="wss"></param>
        /// <returns></returns>
        private static string EncodeWssToDisplayPropertyValue(ILgWritingSystem[] wss)
        {
            List <string> icuLocaleList = new List <string>();

            foreach (ILgWritingSystem lws in wss)
            {
                icuLocaleList.Add(lws.ICULocale);
            }
            return(ChoiceGroup.EncodeSinglePropertySequenceValue(icuLocaleList.ToArray()));
        }