I need to get a value from an IObject.Fields.Field using ArcObjects 10.x using the criteria listed below:
-
If the field has a subtype associated with it, I need to get the
subtype name/description based on the field value. -
If the field has a coded value domain associated with it, I need to
get the domain's name/description based on the field value. -
If the field has neither a subtype or domain associated with it, I
want the field value itself returned. -
Having this functionality wrapped up in one call like "ReadFieldValue(IObject obj, int fieldIndex) is preferred.
Best Answer
Below is what I came up with: