StringHelper RemovedComma Method MVC+ (Model-Facade-View-Controller) Framework for ASP.NET
Removes comma from the end of string.

Namespace: NovaDimension.Component
Assembly: NovaDimension.Component (in NovaDimension.Component.dll) Version: 4.0.209.0 (4.0.0209.0)
Syntax

public static string RemovedComma(
	string pStr
)

Return Value

Type: String
result string
Exceptions

Examples

This sample shows how to use the RemovedComma(String) static method.
using system;
using NovaDimension.Component;

class TestClass()
{
    static int Main()
    {
        try
        {
            String str1 = StringHelper.RemovedComma("foo,");  // str1 = "foo"
            String str2 = StringHelper.RemovedComma("foo, "); // str2 = "foo"
        }
        catch (ExceptionEx<StringHelperException> ex)
        {
            Console.WriteLine(ex.Message);
        }
    }
}
See Also