public Filter(SerializationInfo info, StreamingContext ctxt) { full = (YNA)info.GetValue("full", typeof(YNA)); empty = (YNA)info.GetValue("empty", typeof(YNA)); hardcore = (YNA)info.GetValue("hardcore", typeof(YNA)); secure = (YNA)info.GetValue("secure", typeof(YNA)); pingLowerThanMax = (YNA)info.GetValue("pingLowerThanMax", typeof(YNA)); favourites = (YNA)info.GetValue("favourites", typeof(YNA)); mods = (YNA)info.GetValue("mods", typeof(YNA)); friends = (YNA)info.GetValue("friends", typeof(YNA)); map = info.GetString("map"); gametype = info.GetString("gametype"); mod = info.GetString("mod"); name = info.GetString("name"); buddy = info.GetString("buddy"); filterName = info.GetString("filterName"); }