Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
89 views
in Technique[技术] by (71.8m points)

c# - Read Property Values from SyndicationContent

I have a TextSyndicationContent which comes out in this format

Text = "{
  "Context" : [ {
    "PrimaryPhoneNumber" : "0123456789",
    "PersonId" : "100001000100",
    "PersonName" : "Sample Person",
  }
  } ]
}

I want to get the value of a property, lets say PrimaryPhoneNumber, I need 0123456789. One way I can think of doing this is parse the string, find my property and parse the values, but I am sure there will be better way of doing this.

question from:https://stackoverflow.com/questions/65829816/read-property-values-from-syndicationcontent

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...