From 750c71e1bed8a194fdc5ed755fe9f8bf6632c64b Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 28 Jan 2022 20:21:34 +0900 Subject: [PATCH] [Modify] Polish it --- Example3/Chat.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Example3/Chat.cs b/Example3/Chat.cs index bfc43183..fd85b531 100644 --- a/Example3/Chat.cs +++ b/Example3/Chat.cs @@ -51,7 +51,10 @@ namespace Example3 protected override void OnMessage (MessageEventArgs e) { - Sessions.Broadcast (String.Format ("{0}: {1}", _name, e.Data)); + var fmt = "{0}: {1}"; + var msg = String.Format (fmt, _name, e.Data); + + Sessions.Broadcast (msg); } protected override void OnOpen ()