You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

LuObjectConverterDescriptorEnumerable.cs 640B

1234567891011121314151617
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Linq.Expressions;
  5. namespace Luticate2.Auth.Utils.Business.Converters.ObjectConverterDescriptor
  6. {
  7. public class LuObjectConverterDescriptorEnumerable : LuObjectConverterDescriptor
  8. {
  9. public LuObjectConverterDescriptorEnumerable()
  10. {
  11. AddDynamicMethodConverterTemplate((Expression<Func<IEnumerable<object>, bool>>)(source => source.Any()));
  12. AddDynamicMethodConverterTemplate(
  13. (Expression<Func<IEnumerable<object>, Func<object, bool>, bool>>)((source, filter) => source.Any(filter)));
  14. }
  15. }
  16. }