Search

Extending an existing Function

A very basic example for an Extension method in c#
using System;
/// <summary>
/// Extend an existing Function.
/// </summary>
public static class ExtMethod
{
public static string Ext_Method(this string str1)
{
//
// TODO: Add logic here
// Ex:
return "Extended Method Return";
}
}