About 3,530,000 results
Open links in new tab
  1. What does void mean in C, C++, and C#? - Stack Overflow

    Jul 9, 2023 · Generic data pointer: void* data -- 'data' is a pointer to data of unknown type, and cannot be dereferenced Note: the void in a function argument is optional in C++, so int …

  2. c++ - What is void* in C#? - Stack Overflow

    In general, void* would be converted to IntPtr in C# code. Edit with a bit more information: IntPtr in .NET/C# often behaves like an opaque handle. You can't directly dereference it, obtain "size" …

  3. c# - async/await - when to return a Task vs void? - Stack Overflow

    The async void case is a "fire and forget": You start the task chain, but you don't care about when it's finished. When the function returns, all you know is that everything up to the first await has …

  4. Funciones void en c# en que casos debo aplicarla [cerrada]

    Jun 9, 2018 · En que casos debo usar una funcion void? Porque tengo entendido que si no devuelve una respuesta al main es void... pero no entiendo en que casos aplicarla y en cuales …

  5. c# - Wait for an async void method - Stack Overflow

    How can I wait for an async void method to finish its job? For example, I have a function like below:

  6. c# - Why exactly is async void considered bad practice? - Stack …

    Aug 2, 2017 · Async void methods have different composing semantics. This is an argument centered around code maintainability and reuse. Essentially, the logic in PrimeCustomTask is …

  7. C# 8 switch expression for void methods - Stack Overflow

    May 27, 2020 · In C# 8 switch expression cannot return void. It must return a value and this value must be consumed (assigned to a variable, passed as an argument to a method, returned as a …

  8. void in C# generics? - Stack Overflow

    As C# supports more functional programming features, you can take a look at Unit that represents void in FP. And there are good reasons to use it. In F#, still .NET, we have unit built-in.

  9. c# - Func delegate with no return type - Stack Overflow

    May 27, 2009 · All of the Func<T> delegates return a value. What are the .NET delegates that can be used with methods that return void?

  10. c# - Difference between new and override - Stack Overflow

    Sep 9, 2009 · public override void DoIt(); Both case 1 and 2 appear to have the same effect based on the tests I have run. Is there a difference, or a preferred way?