Is it possible to list all the associations and properties on an (ECO) object?I have tested the TypeDescriptor.GetProperties(object_X) and (exprhandlerxx as ITypedList).GetItemProperties(null)
with a code like this: PropertyDescriptorCollection pdc = (DataSource as ITypedList).GetItemProperties(null); foreach (PropertyDescriptor pd2 in pdd) { Value = pd2.GetValue(object_X); if (Value is IBindingList) subBindingList = Value as IBindingList; }
All the "simple type" properties are listed but not the links (IEcoList) to other class.
Regards,
EddyBrussels
IClassifier oClf = object_X.AsIObject().UmlType; // Get Classifier of object
foreach (IFeature oFeature in oClf.Features){ if (oFeature.FeatureType == FeatureType.AssociationEnd) { (oFeature as IAssociationEnd)......
if (Value is IList) subBindingList = Value as IList;
works.