1

I have not seen this <,>-syntax before, and its impossible to google.

cfg.For(typeof(IPipelineBehavior<,>)).Add(typeof(OuterBehavior<,>));

.. I m guessing its some kind of wildcard, but I cant find any documentation

Source (for example)

Cowborg
  • 2,645
  • 3
  • 34
  • 51
  • 3
    I've closed this as a duplicate, it's an open generic type where the type has 2 parameters that are not specified. So instead of `OuterBehavior` for example. – DavidG Jan 27 '20 at 09:54
  • No, it's valid syntax. `typeof(IPipelineBehavior<,>)` returns the generic type itself. If you use `typeof(IList<>)` for example, you'd get a`System.Collections.Generic.IList`1[T]` Type instance – Panagiotis Kanavos Jan 27 '20 at 09:55
  • 1
    Ok, for anyone stumbling onto this SO-post, the correct answer for my question is an "unbound generic type", also see this post: https://stackoverflow.com/questions/6607033/c-sharp-language-generics-open-closed-bound-unbound-constructed – Cowborg Jan 27 '20 at 10:05
  • 1
    Actaully the correct answer is to look it up in the language documentation. – TomTom Jan 27 '20 at 10:19
  • 1
    TomTom... my main problem was that I didnt know *what* to lookup! :) speaking of reading (the question in your case) – Cowborg Jan 27 '20 at 11:04

0 Answers0