re: Ever been stumped by <E>, <T>, <K, V> in OO language documentation? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Thanks! I've been using <T, U, V, ...> when i wrote generic types. Didn't put a second thought into which letters should be used (T for Type,...
 

I don't have a solid reason as to why multi-letter words are not used, apart from the fact that its more characters and therefore not conventional. Consequently, this could be mistaken for actual rather than placeholder types.

 

In C# you see multi element words, like TElement or TEntity for example.

Yeah you're right. I had seen that in the docs. It's still got the placeholder letter as prefix:

public interface ISessionChannel<TSession>
{
    TSession Session { get; }
}

docs.microsoft.com/en-us/dotnet/cs...

code of conduct - report abuse