public static IEnumerable<string> GetAllValuesByNodeDistinct(string nodeName, List<Metadata> metadataList)
{
List<string> l = new List<string>();
foreach (Metadata m in metadataList)
{
foreach (XmlNode x in m.GetValueFromNode(nodeName))
{
bool isIn = false;
foreach (string s in l)
{
if (x.InnerText == s) isIn = true;
}
if (isIn == false)
{
l.Add(x.InnerText);
};
//l.Add(x.InnerText);
}
}
return l;
}