locked
SystemReferenceOption RRS feed

  • Question

  • User-808020646 posted

    I have this code and I was wondering why it will work if I use numbers for example

    public static readonly SystemReferenceOption<PetTemperamentTypes> submissive = new SystemReferenceOption<PetTemperamentTypes>("0", "submissive");

     

    but it wont work when I use letters for example the below line of code

    public static readonly SystemReferenceOption<PetTemperamentTypes> submissive = new SystemReferenceOption<PetTemperamentTypes>("Submissive", "submissive");

    I get the error message  The given key was not present in the dictionary. thanks for any help with this in advance.

    Monday, August 18, 2014 1:26 PM

Answers

  • User-1360095595 posted

    Where is SystemReferenceOption<> defined? Can you post its code? Also the code of  PetTemperamentTypes.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, August 18, 2014 1:58 PM
  • User753101303 posted

    Hi,

    Also the exact line of code on which the error happens would help. It doesn't happen on new SystemReferenceOption<PetTemperamentTypes>("Submissive", "submissive"); ??

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, August 23, 2014 12:46 PM

All replies

  • User-1360095595 posted

    Where is SystemReferenceOption<> defined? Can you post its code? Also the code of  PetTemperamentTypes.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, August 18, 2014 1:58 PM
  • User753101303 posted

    Hi,

    Also the exact line of code on which the error happens would help. It doesn't happen on new SystemReferenceOption<PetTemperamentTypes>("Submissive", "submissive"); ??

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, August 23, 2014 12:46 PM