Created
October 31, 2022 10:48
-
-
Save jindeveloper/9eeea3e1fdf623be680cf06c9919aabc 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
using System; | |
var myUrl = new MyURL(); | |
//prints out https://localhost:8080/myCustomer | |
Console.WriteLine($"{myUrl}"); | |
return 0; | |
public class MyURL | |
{ | |
private string protocol = "https"; | |
private string host = "localhost"; | |
private string port = "8080"; | |
private string tenant = "myCustomer"; | |
public override string ToString() => $"{protocol}://{host}:{port}/{tenant}"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment