Пример #1
0
 public static DebuggerDisplayBuilder <T> DisplayValues <T, TProperty>
 (
     this DebuggerDisplayBuilder <T> builder,
     Expression <Func <T, IEnumerable <TProperty> > > memberSelector
 )
 {
     return(builder.Collection(memberSelector, x => x, DebuggerDisplayFormatter.DefaultValueFormat, DebuggerDisplayFormatter.DefaultCollectionLength));
 }
Пример #2
0
 public static DebuggerDisplayBuilder <T> DisplayValue <T, TProperty>
 (
     this DebuggerDisplayBuilder <T> builder,
     Expression <Func <T, TProperty> > memberSelector
 )
 {
     return(builder.Property(memberSelector, DebuggerDisplayFormatter.DefaultValueFormat));
 }
Пример #3
0
 public static DebuggerDisplayBuilder <T> Collection <T, TProperty, TValue>(
     this DebuggerDisplayBuilder <T> builder,
     Expression <Func <T, IEnumerable <TProperty> > > propertySelector,
     Expression <Func <TProperty, TValue> > valueSelector,
     string format,
     int max = DebuggerDisplayFormatter.DefaultCollectionLength)
 {
     return(builder.Collection(propertySelector, valueSelector, DebuggerDisplayFormatter.DefaultValueFormat, max));
 }