Skip to main content

iDictionary to List

Comments

3 comments

  • Permanently deleted user
    I haven't really dealt much with this, but I found this link:

     

    http://stackoverflow.com/questions/19346263/c-sharp-convert-idictionary-to-two-ilists IList keys = myDictionary.Keys.ToList(); IList values = myDictionary.Values.ToList(); You might be able to use this if you do it in a C# code in your workflow (or it might work without it since it requires the system.linq which is added to the workflow by default).
    0
  • Ryan Cooney
    If your goal is to convert the dictionary to a DataItemList, then you can just use the "DataItem List" output argument of the "Get Coded Value Domain" activity. One of the main use cases for this activity is to populate a list in a form so we created this second helper output for that purpose.

     

    --Ryan
    0
  • Permanently deleted user
    Ryan,

     

    My goal is to convert this iDictionary into iList in order to use it as input argument for combobox in a DisplayForm.

     

    I could not implement your suggestion, since the "Get Coded Value Domain" activity accepts only the iDictionary as output argument.

     

    Best Regards,
    0

Please sign in to leave a comment.