CSC510251. Do not use EntityEditor.Entities collection.
It is not recommended to use the Entities property to get the selected entities, because using this sometimes causes unexpected behavior.
It’s much more reliable to use ResolvedEntities instead.
public static SPPrincipalInfo GetPeoplePickerUser(ControlCollection controlCollection)
SPPrincipalInfo result = null;
foreach (Control control in controlCollection)
var peopleEditor = control as PeopleEditor;
if (peopleEditor != null && peopleEditor.Entities.Count == 1)
PickerEntity pickerEntity = (PickerEntity)peopleEditor.Entities;
// get principal info code here ...
result = GetPeoplePickerUser(control.Controls);