powerful-football-81694
01/11/2020, 12:56 PMInput<T>
and Output<T>
as they pertain to a C# program.
If resource A takes an Input<string>
and I want to construct that string using a pattern including one or more Output<string>
from resource B, how should I do that?
I assume the following is too naïve:
resourceA.SomeInput = $"{resourceB.FirstOutput}...{resourceB.SecondOutput}";
Is there some string formatter implementation of Output<T>
perhaps?resourceA.SomeInput = Output.Format($"{resourceB.FirstOutput}...{resourceB.SecondOutput}");
Because the string interpolation will be cast automatically by the compiler to a System.FormattableString
.
Very elegant! 👍white-balloon-205
01/11/2020, 5:53 PM