It’s the new constraint.
It specifies that T
must not be abstract and must expose a public parameterless constructor in order to be used as a generic type argument for the AuthenticationBase<T>
class.
More Related Contents:
- Passing arguments to C# generic new() of templated type
- Restricting a generic type parameters to have a specific constructor
- How to capture value OOPS & Generic [closed]
- Create Generic method constraining T to an Enum
- Why can’t the C# constructor infer type?
- Can’t operator == be applied to generic types in C#?
- Nullable type as a generic parameter possible?
- Generic constraint to match numeric types [duplicate]
- Generic Method Executed with a runtime type [duplicate]
- Null or default comparison of generic argument in C#
- Combination of List
- c# covariant return types utilizing generics
- Passing a single item as IEnumerable
- Static Generic Class as Dictionary
- Get a generic method without using GetMethods
- Anonymous Types – Are there any distingushing characteristics?
- C# Get Generic Type Name
- Ambiguous call between two C# extension generic methods one where T:class and other where T:struct
- How to define generic type limit to primitive types?
- How can I write a generic anonymous method?
- Filtering out values from a C# Generic Dictionary
- Casting array to IEnumerable
- How do generics get compiled by the JIT compiler?
- Why is it impossible to declare extension methods in a generic static class?
- How to convert c# generic list to json using json.net?
- Build c# Generic Type definition at runtime
- Hashtable to Dictionary syncroot .
- Generic list of generic objects
- Initializing a Generic variable from a C# Type Variable
- Generic Web Api controller to support any model