Created
February 9, 2024 12:33
-
-
Save bjoerntx/f0c3ab6936d9cd54c649ba69f4dc21d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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