using System.Collections.Generic; using System.Linq; using Umbraco.Core; using Umbraco.Core.Models.PublishedContent; namespace Umbraco.ModelsBuilder { public static class PublishedPropertyTypeExtensions { // fixme - need to rewrite that one - we don't have prevalues anymore //public static KeyValuePair[] PreValues(this PublishedPropertyType propertyType) //{ // return ApplicationContext.Current.Services.DataTypeService // .GetPreValuesCollectionByDataTypeId(propertyType.DataType.Id) // .PreValuesAsArray // .Select(x => new KeyValuePair(x.Id, x.Value)) // .ToArray(); //} } }