C
C#3y ago
Zerraq

Replace a part from String

Hello guys, I need help with a string (URL is the value in the string) basically my code picks the correct message-template from a JSON file. And now i want to replace the "BaseUri" and the "Id". The value I get from the JSON: "MessageTemplate": "@BaseUri/@id" i want this to -> "https://google.com/id" (example) I appreciate the help ❤️
2 Replies
pip
pip3y ago
String.Replace Method (System)
Returns a new string in which all occurrences of a specified Unicode character or String in the current string are replaced with another specified Unicode character or String.
Zerraq
ZerraqOP3y ago
Thank you!

Did you find this page helpful?