Hi
I have the following list object.
List<ChannelsSelected> ChannelIDList = new List<ChannelsSelected>();
The class is:
public ChannelsSelected(int ChannelID, Boolean IsPrimaryChannel)
{
_ChannelID = ChannelID;
_IsPrimaryChannel = IsPrimaryChannel;
}
public int _ChannelID { get; set; }
public Boolean? _IsPrimaryChannel { get; set; }
The problem I have when adding is how to check if an object already exists.
ChannelIDList.Add(new ChannelsSelected(1, false));
What I am interested in checking is whether the ChannelID already exists within the typed list.
Thanks.
I have the following list object.
List<ChannelsSelected> ChannelIDList = new List<ChannelsSelected>();
The class is:
public ChannelsSelected(int ChannelID, Boolean IsPrimaryChannel)
{
_ChannelID = ChannelID;
_IsPrimaryChannel = IsPrimaryChannel;
}
public int _ChannelID { get; set; }
public Boolean? _IsPrimaryChannel { get; set; }
The problem I have when adding is how to check if an object already exists.
ChannelIDList.Add(new ChannelsSelected(1, false));
What I am interested in checking is whether the ChannelID already exists within the typed list.
Thanks.