Skip to content

Commit 7e1f2a0

Browse files
Anduin2017Ron Petrusha
authored andcommitted
Update duplex.md to use the latest string contact. (#11644)
* Update duplex.md to use the latest string contact. Update duplex.md to use the latest string contact method. * Update docs/framework/wcf/samples/duplex.md Co-Authored-By: Anduin2017 <[email protected]> * Update docs/framework/wcf/samples/duplex.md Co-Authored-By: Anduin2017 <[email protected]>
1 parent 9d741f4 commit 7e1f2a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/framework/wcf/samples/duplex.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ public class CalculatorService : ICalculatorDuplex
5555

5656
public void Clear()
5757
{
58-
Callback.Equation(equation + " = " + result.ToString());
58+
Callback.Equation($"{equation} = {result}");
5959
equation = result.ToString();
6060
}
6161

6262
public void AddTo(double n)
6363
{
6464
result += n;
65-
equation += " + " + n.ToString();
65+
equation += $" + {n}";
6666
Callback.Result(result);
6767
}
6868

0 commit comments

Comments
 (0)