It is possible to extend a class like string (see http://www.c-sharpcorner.com/uploadfile/mgold/extendingstringclass03162008132109pm/extendingstringclass.aspx) is there a way to extend in a similar way System.Web for example by adding our own classes to this namespace ?
It is possible to extend a class like string (see http://www.c-sharpcorner.com/uploadfile/mgold/extendingstringclass03162008132109pm/extendingstringclass.aspx ) is there
Share
Sure. Try something like this:
But obviously, this will not add anything to the actual .Net assemblies, projects that want to utilize your “extension” will have to reference your assembly.