If I have a C# model class that is used by JSON.net to bind data from a serialized JSON string, is there a way that I can create a query string from that class in order to m
A small variation of @Brian Rogers solution that solve null exception problem:
IEnumerable props = typeof(T).GetProperties() .Select(p => p.GetCustomAttribute()) .Where(jp => jp != null) .Select(jp => jp.PropertyName); string propsList = string.Join(',', props);