KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm receiving some data from the client in the form of json. I'm writing this: string TheText; // or whould it be better string TheText = ""; ? TheText = ((serializer.ConvertToType<string>(dictionary["TheText"])).Trim()); If the variable that's being parsed from json comes back empty, does this code crash when I call the .Trim() method? Thanks.
Tags (comma-separated)
Save Edits
Cancel