Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created February 9, 2024 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/f0c3ab6936d9cd54c649ba69f4dc21d2 to your computer and use it in GitHub Desktop.
Save bjoerntx/f0c3ab6936d9cd54c649ba69f4dc21d2 to your computer and use it in GitHub Desktop.
private void textControl1_SubTextPartEntered(object sender, SubTextPartEventArgs e)
{
UserInfo userInfo;
// deserialize the JSON string to a UserInfo object if data is available
if (e.SubTextPart.Data != null)
{
userInfo = JsonSerializer.Deserialize<UserInfo>(e.SubTextPart.Data);
MessageBox.Show(userInfo.Name);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment