Quantcast
Channel: void Func without arguments - Stack Overflow
Browsing latest articles
Browse All 4 View Live

Answer by Olivier Jacot-Descombes for void Func without arguments

Yes, there are different overloads of Action taking a different number of input parameters and having a void return type.Action public delegate void Action()Action<T> public delegate void...

View Article



Answer by RyanR for void Func without arguments

What you're looking for is an Action. It takes no parameters, and returns no value.

View Article

Answer by Anthony Pegram for void Func without arguments

Your wording is confusing. You perhaps mean "a function without a return type and no parameters." There is simply System.Action.Action action = () => Console.WriteLine("hello world");action();From...

View Article

void Func without arguments

There are some similar questions but not exactly like mine.Is there a Func equivalent for a function without a return value (i.e. void) and without parameters?The related question is Func not returning...

View Article
Browsing latest articles
Browse All 4 View Live


Latest Images