i want like PHP summary codes in one files and repeat other pages c# . for ex in PHP :
include 'filename'; or require 'filename';
thanks!
i want like PHP summary codes in one files and repeat other pages c# . for ex in PHP :
include 'filename'; or require 'filename';
thanks!
there is no such in c# , but you can create class and write method contain on code that need to repeat . example :
class MyClass
{
//constructor
public MyClass()
{
}
public void func()
{
//code that repeat here
}
}
then declare instance from this class and call function