Пример #1
0
        /// <summary>
        /// List of all keys used in this term.
        /// </summary>
        /// <returns></returns>
        public AssumedTypes.Set<string> Keys()
        {
            Check.Require(this.Items != null, string.Format(CommonStrings.XMustNotBeNull, "ArchetypeTerm.Items"));

            AssumedTypes.List<string> itemsKeys = this.Items.Keys;
            Check.Ensure(itemsKeys != null, "Ensure keys must not be null.");

            System.Collections.Generic.List<string> genericList = new List<string>();
            foreach (string eachKey in itemsKeys)
                genericList.Add(eachKey);

            AssumedTypes.Set<string> keys = new OpenEhr.AssumedTypes.Set<string>(genericList);

            Check.Ensure(keys != null, "keys must not be null.");

            return keys;
        }
Пример #2
0
        /// <summary>
        /// List of all keys used in this term.
        /// </summary>
        /// <returns></returns>
        public AssumedTypes.Set <string> Keys()
        {
            Check.Require(this.Items != null, string.Format(CommonStrings.XMustNotBeNull, "ArchetypeTerm.Items"));

            AssumedTypes.List <string> itemsKeys = this.Items.Keys;
            Check.Ensure(itemsKeys != null, "Ensure keys must not be null.");

            System.Collections.Generic.List <string> genericList = new List <string>();
            foreach (string eachKey in itemsKeys)
            {
                genericList.Add(eachKey);
            }

            AssumedTypes.Set <string> keys = new OpenEhr.AssumedTypes.Set <string>(genericList);

            Check.Ensure(keys != null, "keys must not be null.");

            return(keys);
        }