About 53 results
Open links in new tab
  1. What's the difference between "general" and "generic"?

    Apr 30, 2014 · Generic is the opposite of specific. Generic and specific refer to the identification of a fact. Specific means a fact that has been specified. If you ask for (specify) a pain reliever, aspirin would …

  2. Syntax and Sample Usage of _Generic in C11 - Stack Overflow

    Mar 26, 2015 · Note about the placing of the function parameter list When using a Generic() to select a function based on the controlling-expression you have the choice of including the function argument …

  3. java - Generic pair class - Stack Overflow

    May 18, 2011 · Just attempting this question I found in a past exam paper so that I can prepare for an upcoming Java examination. Provide a generic class Pair for representing pairs of things. The class …

  4. Convert generic List/Enumerable to DataTable? - Stack Overflow

    I have few methods that returns different Generic Lists. Exists in .net any class static method or whatever to convert any list into a datatable? The only thing that i can imagine is use Reflecti...

  5. A generic error occurred in GDI+, JPEG Image to MemoryStream

    Jun 27, 2009 · In the following code, the t.Save () method call throws our friend the generic exception when the pixel height is 65501 for me. For reasons of curiosity, I repeated the test for width, and the …

  6. C# Generics and Type Checking - Stack Overflow

    In case you happen to have a generic method that returns a generic value but doesn't have generic parameters, you can use default(T) + (T)(object) cast, together with C# 8 pattern matching/type …

  7. Implement an Interface with Generic Methods - Stack Overflow

    Aug 28, 2009 · I'm trying to implement a generic interface with a class. When I implement the interface I think something isn't working right because Visual Studio continually produces errors saying that I'm …

  8. Testing if object is of generic type in C# - Stack Overflow

    Stan R's answer does in fact answer the question as posed, but what the OP really meant was "Testing if object is of a particular generic type in C#", for which this answer is indeed incomplete. Stan R. …

  9. How can I create a generic array in Java? - Stack Overflow

    8 Java generics work by checking types at compile time and inserting appropriate casts, but erasing the types in the compiled files. This makes generic libraries usable by code which doesn't understand …

  10. c# - Generic TryParse - Stack Overflow

    Jun 3, 2010 · I am trying to create a generic extension that uses 'TryParse' to check if a string is a given type: public static bool Is<T>(this string input) { T notUsed; return T.TryParse(input,...