Hi dojo,
I have the following field descriptors:
My end goal is to retrieve the entries to get the display names used.
The first one, I can cast as a GenericEnumFieldDescriptor.
The issue is, I can't cast the second one (The services impactés). Just doing something simple like:
var generic = (GenericEnumFieldDescriptor)descriptor;
var dropdownOptions = generic.GenericEnumInstance.Entries;
I'm getting:
System.InvalidCastException: Unable to cast object of type 'Skyline.DataMiner.Net.Sections.FieldDescriptor' to type 'Skyline.DataMiner.Net.Sections.GenericEnumFieldDescriptor'.
Hi Ana,
To investigate this further you could log the value of "descriptor.GetType().FullName". This will give you the actual runtime type of descriptor.
Hi Ana, to investigate this further you could log the value of "descriptor.GetType().FullName". This will give you the actual runtime type of descriptor.