public TypeFilter(TypesMatching matching, IEnumerable <Type> types) { Ensure.That(nameof(types)).IsNotNull(types); Matching = matching; this.types = new HashSet <Type>(types); Value = true; Reference = true; Classes = true; Interfaces = true; Structs = true; Enums = true; Public = true; NonPublic = false; Abstract = true; Generic = true; OpenConstructedGeneric = false; Static = true; Sealed = true; Nested = true; Primitives = true; Object = true; NonSerializable = true; Obsolete = false; }
public TypeFilter(TypesMatching matching, params Type[] types) : this(matching, (IEnumerable <Type>)types) { }