static public List<int> ParseSinglePropertySequenceValueIntoHvos(string singlePropertySequenceValue,
FdoCache cacheForCheckingValidity, int expectedClassId)
{
var hvos = new List<int>();
if (String.IsNullOrEmpty(singlePropertySequenceValue))
return hvos;
FdoCache cache = cacheForCheckingValidity;
foreach (string sHvo in ChoiceGroup.DecodeSinglePropertySequenceValue(singlePropertySequenceValue))
{
int hvo;
if (Int32.TryParse(sHvo, out hvo))
{
if (cache != null)
{
try
{
var obj = cache.ServiceLocator.GetInstance<ICmObjectRepository>().GetObject(hvo);
}
catch
{
continue;
}
}
hvos.Add(hvo);
}
}
return hvos;
}