public IMemberSerializer Get(IMember parameter) { var name = _member.Get(parameter.Metadata.ReflectedType); var result = parameter.Name == name?Content(name, parameter) : _members.Get(parameter); 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); }