Activity Forums Salesforce® Discussions Need help with syntex Reply To: Need help with syntex

  • Yash

    October 25, 2021 at 12:26 pm

    Hello Prafull,
    Good Evening
    Thank you so much for responding for my query. But my doubt here is that keySet() returns a set and here it is being passed in a list constructor so is is converting the set to List?
    Set<String> sStrings = oppty.Map.keySet();
    List<Id> opptyIds= = new List<Id>(sStrings);
    Is is what is really happening? A set is being converted to list?