public void AddLeafNodeToCollection(object root, string value, TranslationContext translationContext)
{
if(String.IsNullOrEmpty(value))
{
return;
}
if(ScalarType != null)
{
Object typeConvertedValue = ScalarType.GetInstance(value, dataFormat, translationContext);
if(typeConvertedValue != null)
{
IList collection = (IList) AutomaticLazyGetCollectionOrMap(root);
collection.Add(typeConvertedValue);
}
}
}