public static Items toItems(this Dictionary <string, string> dictionary)
        {
            var items = new Items();

            foreach (var keyValuePair in dictionary)
            {
                items.add(keyValuePair.toItem());
            }
            return(items);
        }
Exemple #2
0
        public static Items property_Values_AsStrings(this object _object)
        {
            var propertyValues_AsStrings = new Items();

            foreach (var property in _object.type().properties())
            {
                propertyValues_AsStrings.add(property.Name.str(), _object.property(property.Name).str());
            }
            return(propertyValues_AsStrings);
        }
 public static Items set(this Items items, string key, string value)
 {
     return(items.add(key, value));
 }