namespace
ConsoleApplication2
... {
class Program
...{
delegate string delegateTest(string val);
static void Main(string[] args)
...{
string mid = ",middle part";
delegateTest anomDel = delegate(string param)
...{
param += mid;
param += "and this was added to the string";
return param;
};
Console.WriteLine(anomDel("Start of string"));
}
}
}
... {
class Program
...{
delegate string delegateTest(string val);
static void Main(string[] args)
...{
string mid = ",middle part";
delegateTest anomDel = delegate(string param)
...{
param += mid;
param += "and this was added to the string";
return param;
};
Console.WriteLine(anomDel("Start of string"));
}
}
}