Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# func

// Func<T,TResult>
// example:
Func<int, string> foo = ConvertToString;
private string ConvertToString(int input) {
 	return input.ToString(); 
}
// or
private void Bar(Func<int, string> bar) {
	Console.WriteLine(bar(myInt));
}
 
PREVIOUS NEXT
Tagged: #func
ADD COMMENT
Topic
Name
5+9 =