Created
May 7, 2020 21:07
-
-
Save enisn/d9b9c08d26ab93fea09afdfca3f4538e to your computer and use it in GitHub Desktop.
Challenge #2 - Solution - 6.1
This file contains hidden or 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
// This will not work with nested object members. | |
var template = "Welcome back {Name}. You're logged in from {Profile.Address.Country.Code}. Have a good day."; | |
var user = new User { Name = "John", Email = "[email protected]" }; | |
var message = template.BindObjectProperties(user); | |
Console.WriteLine(message); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment