protected override ImmutableArray <IMember> Create(TypeInfo parameter) { var result = _source.Get(parameter) .Where(_specification) .OrderBy(x => x.Order) .ToImmutableArray(); return(result); }
public IEnumerable <IMember> Get(TypeInfo parameter) { var source = _source.Get(parameter); var name = _member.Get(parameter); var result = name != null ? source .Select(x => x.Name == name ?new Member(x.Name, int.MaxValue, x.Metadata, x.MemberType, x.IsWritable) : x) : source; return(result); }