Hi
IN below codeinstead of Hardcode i want to pass email & password thru variables
var body = @"{" + "\n" +
@" ""email"" : ""[email protected]""," + "\n" +
@" ""password"" : ""T!""" + "\n" +
@"}";
Thanks
John IwaszPosted Dec 28, 2022, 5:09 PM
However; you're better off using Environment.NewLine as that will conform to your operating system.
And if you are using C# 11 and .NET 7, this works:
Munib ButtPosted Jan 12, 2023, 8:56 PM
Use string interpolation as below:
var value1 = "Test";
var val = $"This is a test value = {value1}";
Console.WriteLine(val);
Works with .NET 7/C# 11