I have a List which is getting filled correct, however after its being filled I want to remove all keys with a null value on a simple way, if exists, something like:
posts.RemoveAll(item => item == null);
I have multiple posts in this List<> For me the problem is to find the Key/Value to access as in a Dictionary.
Does somebody know the way to do this?
UPDATE:
my class looks like this:
public class iPost
{
    public int id { get; set; }
    public int post_origin_post_id { get; set; }
    public int pid { get; set; }
    public int container_type_id { get; set; }
    public int post_member_id { get; set; }
    public int post_toGroup_id { get; set; }
    public string title { get; set; }
    public string comment { get; set; }
    public string latitude { get; set; }
    public string longitude { get; set; }
    public string post_ip { get; set; }
    public bool canShared { get; set; }
    public bool isShared { get; set; }
    public int share_type_id { get; set; }
    public int views { get; set; }
 
    