protected static object GetValue(SearchResultEntry entry, IPropertyMapping property) { var value = entry.Attributes[property.AttributeName]; return(property.FormatValueFromDirectory(value, entry.DistinguishedName)); }