AmazonMWS1.MarketplaceWebServiceProductsConfig.Clean C# (CSharp) Метод

Clean() приватный статический Метод

Replace all whitespace characters by a single space.
private static Clean ( string s ) : string
s string
Результат string
        private static string Clean(string s)
        {
            // matched character sequences are passed to a MatchEvaluator
            // delegate. The returned string from the delegate replaces
            // the matched sequence.
            return Regex.Replace(s, @" {2,}|\s", delegate(Match m)
            {
                return " ";
            });
        }