Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class TestClass {
- static int Main( string[] args ) {
- LinkinPark b = new LinkinPark();
- Console.WriteLine( "I " + b.InTheBeginning().Invoke( "shit too hard" ) );
- return 0; //invoke is nessisary
- }
- }
- class LinkinPark {
- public string InTheEnd( string a ) {
- return a + ", in the end, it doesn't even matter\n";
- }
- public Func<string, string> InTheBeginning( ) {
- return (b) => b + " aaahhhhHHHHH\n"; //cannot be in brackets, compiler complains
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement