jazpearson
in reply to: Anonymous

Hi tmistretta,

 

I'm not 100% sure what you're asking, so i'll do my best to help you. 

 

Firstly, it looks like you are looking at the CustomItemData collection on the Item class. Is that right?

That class is an abstract type, which means the objects you want to reference derive from this class. Looking at the picture, it looks like they could be CustomDataStringValue objects.

 

So to reference them properly, you can do something like this:

 

var baseDim10 = (value.CustomData[0].Data) as CustomDataStringValue;

or 

if (value.CustomData[0].Data is CustomDataStringValue)
{
    var stringValue = value.CustomData[0].Data as CustomDataStringValue;
    var value = stringValue.Value;   
}

Hope that helps!