[CONNECT C#] IDgnECInstance properties

IDgnECInstance Properties

I can write code like this to display the value of a named property of an IDgnECInstance...

int i = 0;
foreach (IDgnECInstance instance in instances)
{
  s.Clear();
  s.AppendFormat("Instance [{0}] ID {1}", ++i, instance["ID"].StringValue);
  MessageCenter.Instance.ShowMessage(MessageType.Debug, s.ToString(), s.ToString(), MessageAlert.None);
}

If I don't know the name (a.k.a. access string) of a property, can I get an iterable list of properties? I can't use an integer indexer (instance[0].StringValue) because it's not part of the IDgnECInstance interface.  What I'm asking about is a possibly fictional interface like this...

int nProperties = instance.GetPropertyCount ();
for (int i = 0; i != nProperties; ++i)
{
  Property prop = instance.Properties [i];
}

Documentation

Documentation about IDgnECInstance is terse. It inherits from IECInstance, which has no documentation whatsoever.

Parents Reply Children
No Data