string extension method - Not available through WebMethod
- by Peter Bridger
I've written a simple extension method for a web project, it sits in a class file called StringExtensions.cs which contains the following code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
/// <summary>
/// Useful extensions for string
/// </summary>
static class StringExtensions
{
///…