public INPerson(INPersonHandle personHandle, NSPersonNameComponents?nameComponents, string?displayName, INImage?image, string?contactIdentifier, string?customIdentifier, bool isMe, INPersonSuggestionType suggestionType, INPersonType personType) : base(NSObjectFlag.Empty) { switch (personType) { case INPersonType.Me: InitializeHandle(InitWithMe(personHandle, nameComponents, displayName, image, contactIdentifier, customIdentifier, isMe, suggestionType), "initWithPersonHandle:nameComponents:displayName:image:contactIdentifier:customIdentifier:isMe:suggestionType:"); break; case INPersonType.ContactSuggestion: InitializeHandle(InitWithContactSuggestion(personHandle, nameComponents, displayName, image, contactIdentifier, customIdentifier, isMe, suggestionType), "initWithPersonHandle:nameComponents:displayName:image:contactIdentifier:customIdentifier:isContactSuggestion:suggestionType:"); break; default: throw new ArgumentException(nameof(personType)); } }
public INPerson(INPersonHandle personHandle, NSPersonNameComponents?nameComponents, string?displayName, INImage?image, string?contactIdentifier, string?customIdentifier, bool isMe, INPersonSuggestionType suggestionType) : this(personHandle, nameComponents, displayName, image, contactIdentifier, customIdentifier, isMe, suggestionType, INPersonType.Me) { }