using System.Collections.Generic;
using System.Text.RegularExpressions;
public static void Main(string[] args)
PlayerSettingsResponsible objPlayer = new PlayerSettingsResponsible();
objPlayer.Designation="DesigOne";
objPlayer.IdPlayerDeviceSettingsType=1;
objPlayer.Value="ValueOne";
List<PlayerSettingsResponsible> objPlayerList = new List<PlayerSettingsResponsible>();
objPlayerList.Add(objPlayer);
PlayerSettingsResponsible objPlayerSearch = objPlayerList.FirstOrDefault(r => r.IdPlayerDeviceSettingsType != null && r.IdPlayerDeviceSettingsType == 1);
if(objPlayerSearch == null)
Console.WriteLine("Null Object");
string sValue = objPlayerSearch.Value;
Console.WriteLine(sValue);
catch(Exception e){Console.WriteLine("Exception: "+e.Message);}
public class PlayerSettingsResponsible
public string Designation { get; set; }