예제 #1
0
 private static IGrouping <TKey, TElement> Grouping <TKey, TElement>(TKey key, IEnumerable <TElement> elements)
 => HarshGrouping.Create(key, elements);
예제 #2
0
 public IEnumerable <IGrouping <PropertyAccessor, TAttribute> > ReadableWritableInstancePropertiesWith <TAttribute>(Boolean inherit)
     where TAttribute : Attribute
 => ReadableWritableInstanceProperties
 .Select(p => HarshGrouping.Create(p, p.PropertyInfo.GetCustomAttributes <TAttribute>(inherit).ToArray()))
 .Where(g => g.Any())
 .ToArray();