You need to sign in to do that
Don't have an account?
Hitesh Chaudhari 10
How to type cast set to list
I am having one Set having data type as String and One List of type 'GroupMember'.
I want to type cast it . Tell me way to type cast it .
Set<String> mergelist=new Set<String>();
List<GroupMember> newGroupMember = new List<GroupMember>();
I want to insert mergelist data into newGroupMember list.
I want to type cast it . Tell me way to type cast it .
Set<String> mergelist=new Set<String>();
List<GroupMember> newGroupMember = new List<GroupMember>();
I want to insert mergelist data into newGroupMember list.
You can use addAll() method of List collection to create a list from a set. Similarly, you can tweak the above code as per your requirement which might help you overcome with the above challenge.
Please let us know if this helps.
Kindly mark this as solved if the information was helpful.
Thanks,
Nagendra