Sample.Functions.TryParseSlackBody C# (CSharp) Method

TryParseSlackBody() private method

private TryParseSlackBody ( string body, NameValueCollection &nvc ) : bool
body string
nvc System.Collections.Specialized.NameValueCollection
return bool
        private bool TryParseSlackBody(string body, out NameValueCollection nvc)
        {
            body = body.Replace('\n', '&');
            body = body.Replace("\r", "");
            nvc = System.Web.HttpUtility.ParseQueryString(body);

            return nvc.Count > 0;
        }