From ee3a00a6e268b3e4e9aeecf3783eab342ac30fb6 Mon Sep 17 00:00:00 2001 From: sta Date: Sat, 22 Jan 2022 17:52:21 +0900 Subject: [PATCH] [Modify] Polish it --- Example2/Echo.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Example2/Echo.cs b/Example2/Echo.cs index dd780c8d..73552921 100644 --- a/Example2/Echo.cs +++ b/Example2/Echo.cs @@ -8,8 +8,12 @@ namespace Example2 { protected override void OnMessage (MessageEventArgs e) { - var name = Context.QueryString["name"]; - Send (!name.IsNullOrEmpty () ? String.Format ("\"{0}\" to {1}", e.Data, name) : e.Data); + var name = QueryString["name"]; + var msg = !name.IsNullOrEmpty () + ? String.Format ("\"{0}\" to {1}", e.Data, name) + : e.Data; + + Send (msg); } } }