Hi Guys,
Is it possible to add a string to a list using a static method or am i really misunderstanding this?
This is what i'm trying...
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace LDAPNOCISCO
{
class STOREUDPs
{
private static List<string> UDPList = new List<string>();
public static List<string> UDPListStore
{
get { return UDPList; }
set { UDPList.Add(value.ToString()); }
}
}
}
then i'm trying to add to UDPList using
builder.Append(DN.ToString() + "," + ModelButton[0] + "," + PhoneButtonTemplate + "," + "All Features"
+ "," + "," + "," + "," + "," + TheRest.ToString() + "," + noOfLines);
STOREUDPs.UDPListStore = builder.ToString();
im getting a "cannot convert string to list<string> error though...
any advice?