About 50 results
Open links in new tab
  1. c# - Direct casting vs 'as' operator? - Stack Overflow

    Sep 25, 2008 · Direct Casting Types don't have to be strictly related. It comes in all types of flavors. Custom implicit/explicit casting: Usually a new object is created. Value Type Implicit: Copy without …

  2. Casting to void* and Back to Original_Data_Type*

    Sep 5, 2012 · Casting to void* removes all type safety. If you use reinterpret_cast or static_cast to cast from a pointer type to void* and back to the same pointer type, you are actually guaranteed by the …

  3. algorithm - What is the difference between ray tracing, ray casting ...

    May 1, 2021 · I used the term “ray tracer” as this is the one used in the book. I have heard a lot of different terms however and I would be interested to know what exactly is the difference between ray …

  4. Type-casting enum to integer and vice versa - Stack Overflow

    Dec 13, 2018 · Type-casting enum to integer and vice versa [closed] Asked 12 years, 3 months ago Modified 7 years, 4 months ago Viewed 78k times

  5. casting - Converting double to integer in Java - Stack Overflow

    Jun 24, 2011 · is there a possibility that casting a double created via Math.round() will still result in a truncated down number No, round() will always round your double to the correct value, and then, it …

  6. System.Text.Json: Deserialize JSON with automatic casting

    Nov 29, 2019 · Using .Net Core 3's new System.Text.Json JsonSerializer, how do you automatically cast types (e.g. int to string and string to int)? For example, this throws an exception because id in …

  7. Casting int to bool in C/C++ - Stack Overflow

    Jul 22, 2015 · I'm wondering about casting in the reverse direction... In the code below, all of the following assertions held true for me in .c files compiled with Visual Studio 2013 and Keil µVision 5. …

  8. Casting vs using the 'as' keyword in the CLR - Stack Overflow

    Casting can be used on any compatible types, it can be overloaded, and it will throw an exception if the operation fails. The choice of which to use depends on the circumstances.

  9. Should I cast the result of malloc (in C)? - Stack Overflow

    Although malloc without casting is preferred method and most experienced programmers choose it, you should use whichever you like having aware of the issues. i.e: If you need to compile C program as …

  10. How to control casting of null int field to varchar in sql server?

    First of all I would like to know how does CAST work with NULL fields and how does it behave when the value is NULL? For example in the expression: (CAST(INT_FIELD as nvarchar(100)) what happens ...