Generic Project Flowchart - Search
About 587,000 results
Open links in new tab
    Kizdar net | Kizdar net | Кыздар Нет
  1. c# - How to compare values of generic types? - Stack Overflow

    @gstercken: One problem with IComparable overloading the comparison operators is that there are situations where X.Equals(Y) should return false, but X.CompareTo(Y) should return zero …

  2. How do you provide a default type for generics? - Stack Overflow

    Jul 8, 2009 · The generic parameter type will be the same for all methods, so I would like it at the class level. I know I could make a generic version and then inherit from it for the int version, …

  3. Using List<T> in C# (Generics) - Stack Overflow

    Oct 2, 2013 · C# will infer the type based on arguments, so explicitly specifying <MyClass1> isn't needed in this case - obviously if there are no parameters on the method, you will need to …

  4. What is the syntax for Typescript arrow functions with generics?

    Aug 31, 2015 · Generic functions. Something like the following works fine: function foo<T>(x: T): T { return x; } However using an arrow generic function will not: const foo = <T>(x: T) => x; // …

  5. Nullable type as a generic parameter possible? - Stack Overflow

    Oct 16, 2008 · Multiple generic constraints can't be combined in an OR fashion (less restrictive), only in an AND fashion (more restrictive). Meaning that one method can't handle both …

  6. c# - Generic classes - when to use and why - Stack Overflow

    Sep 6, 2013 · Generic Constraints. Generic constraints help the compiler give you more from your T. An unconstrained generic can only be proven to be object, so you only get access to object …

  7. c# - What does an "in" generic parameter do? - Stack Overflow

    What this means is that when an interface is contravariant (in), then the interface can be implicitly converted to a generic type when the type parameter inherits T. Conversely for covariance out, …

  8. Creating a generic method in C# - Stack Overflow

    Jan 27, 2010 · I am trying to combine a bunch of similar methods into a generic method. I have several methods that return the value of a querystring, or null if that querystring does not exist …

  9. C# generic type constraint for everything nullable

    Apr 11, 2017 · Generic constraints in .NET are severely lacking, and do not support most scenarios. However I consider this to be a better solution for run-time checking. It can be …

  10. How to determine the class of a generic type? - Stack Overflow

    Oct 8, 2008 · I'm creating a generic class and in one of the methods I need to know the Class of the generic type currently in use. The reason is that one of the method's I call expects this as …

Refresh