You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Formats the <paramref name="template"/>, replacing each expression wrapped in curly braces
16
-
/// with the corresponding property from the <paramref name="source"/> or <paramref name="environment"/>.
17
-
/// </summary>
18
-
/// <param name="template" this="true">The source template, which may contain expressions to be replaced, e.g '{Foo.Bar.CurrencySymbol} foo {Foo.Bar.Price}'</param>
19
-
/// <param name="source">The source object to apply to the <paramref name="template"/></param>
20
-
/// <param name="environment"></param>
21
-
/// <exception cref="ArgumentNullException">The <paramref name="template"/> is null.</exception>
22
-
/// <exception cref="ArgumentException">An environment variable was null and no fallback was provided.</exception>
23
-
/// <remarks>
24
-
/// An expression containing "." is treated as a property or field access on the <paramref name="source"/>.
25
-
/// An expression starting with "env:" is replaced with the value of the corresponding variable from the <paramref name="environment"/>.
26
-
/// Each expression may specify a single hardcoded fallback value using the {Prop ?? "fallback"} syntax, which applies if the expression evaluates to null.
27
-
/// </remarks>
28
-
/// <example>
29
-
/// // replace an expression with a property value
30
-
/// "Hello {Name}".FormatWith(new { Name = "Fred" }, env);
/// Formats the <paramref name="template"/>, replacing each expression wrapped in curly braces
16
+
/// with the corresponding property from the <paramref name="source"/> or <paramref name="environment"/>.
17
+
/// </summary>
18
+
/// <param name="template" this="true">The source template, which may contain expressions to be replaced, e.g '{Foo.Bar.CurrencySymbol} foo {Foo.Bar.Price}'</param>
19
+
/// <param name="source">The source object to apply to the <paramref name="template"/></param>
20
+
/// <param name="environment"></param>
21
+
/// <exception cref="ArgumentNullException">The <paramref name="template"/> is null.</exception>
22
+
/// <exception cref="ArgumentException">An environment variable was null and no fallback was provided.</exception>
23
+
/// <remarks>
24
+
/// An expression containing "." is treated as a property or field access on the <paramref name="source"/>.
25
+
/// An expression starting with "env:" is replaced with the value of the corresponding variable from the <paramref name="environment"/>.
26
+
/// Each expression may specify a single hardcoded fallback value using the {Prop ?? "fallback"} syntax, which applies if the expression evaluates to null.
27
+
/// </remarks>
28
+
/// <example>
29
+
/// // replace an expression with a property value
30
+
/// "Hello {Name}".FormatWith(new { Name = "Fred" }, env);
0 commit comments