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. How do I get the generic class property in python

    Jun 14, 2023 · I have a class like: class ExampleClass(BaseClass[Someclass]): pass class BaseClass(AbstractBaseClass, Generic[T]): pass I want to be able to do something like …

  3. How to define generic type limit to primitive types?

    Apr 30, 2009 · I have the following method with generic type: T GetValue<T> (); I would like to limit T to primitive types such as int, string, float but not class type. I know I can define generic for clas...

  4. Typescript TSX and generic parameters - Stack Overflow

    Sep 21, 2015 · Typescript TSX and generic parameters Ask Question Asked 10 years, 6 months ago Modified 4 years, 4 months ago

  5. How do I call a generic method using a Type variable?

    What's the best way to call a generic method when the type parameter isn't known at compile time, but instead is obtained dynamically at runtime? Consider the following sample code - inside the Ex...

  6. 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...

  7. No generic implementation of OrderedDictionary? - Stack Overflow

    Apr 13, 2010 · 107 Implementing a generic OrderedDictionary isn't terribly difficult, but it's unnecessarily time consuming and frankly this class is a huge oversight on Microsoft's part. There are multiple …

  8. Find a specified generic DbSet in a DbContext dynamically when I have ...

    The question does not specify EF version and the proposed answer does not work anymore for Entity Framework Core (in EF Core, DbContext does not have a non-generic Set method, at least at the …

  9. Instantiating a generic class in Java - Stack Overflow

    I know Java's generics are somewhat inferior to .Net's. I have a generic class Foo&lt;T&gt;, and I really need to instantiate a T in Foo using a parameter-less constructor. How can one work around...

  10. How do I clone a generic list in C#? - Stack Overflow

    Oct 21, 2008 · I have a generic list of objects in C#, and wish to clone the list. The items within the list are cloneable, but there doesn't seem to be an option to do list.Clone(). Is there an easy way around ...