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

    Sep 25, 2008 · Custom implicit/explicit casting: Usually a new object is created. Value Type Implicit: Copy without losing information. Value Type Explicit: Copy and information might be …

  2. c++ - Proper way of casting pointer types - Stack Overflow

    I used to think that reinterpret_cast is OK for e.g. casting pointers to and from integer types (like e.g. DWORD_PTR), but to cast from a void* to a BYTE*, isn't static_cast OK? Are there any …

  3. What are the rules for casting pointers in C? - Stack Overflow

    Jul 20, 2015 · Casting pointers is usually invalid in C. There are several reasons: Alignment. It's possible that, due to alignment considerations, the destination pointer type is not able to …

  4. Casting to TV has no sound. - Microsoft Community

    Jan 27, 2023 · Hello.I've recently installed Windows 11 and now whenever I cast to my TV (as a wireless monitor), Windows only casts picture, but not sound. The sound still goes through my …

  5. casting - C# "as" cast vs classic cast - Stack Overflow

    For the second example, FxCop will warn about double-casting (performance) for your version, though type-testing indicates poor design anyway, so performance is a secondary concern. I …

  6. c# - 'casting' with reflection - Stack Overflow

    Sep 9, 2009 · I know this question is old, but also notice that Convert.ChangeType can return a different value than plain casting. For example, double d = 5.57293; int i = Convert(d, …

  7. sql - datetime Cast or Convert? - Stack Overflow

    Jul 2, 2013 · What to choose: Cast or Convert for datetimes (Microsoft SQL Server)? I have had a look at the MSDN Specifications. At the first glance it seems there is no difference, except for …

  8. Casting Exceptions in C# - Stack Overflow

    Aug 2, 2010 · casting exception through. 1. Exceptions in C#. 0. Cast an Exception into a NonGenericException according ...

  9. casting - Explanation of ClassCastException in Java - Stack Overflow

    May 25, 2009 · Java allows us to cast variables of one type to another as long as the casting happens between compatible data types. For example you can cast a String as an Object and …

  10. Regular cast vs. static_cast vs. dynamic_cast - Stack Overflow

    Aug 26, 2008 · Static cast is also used to cast pointers to related types, for example casting void* to the appropriate type. dynamic_cast. Dynamic cast is used to convert pointers and …

Refresh