Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In C# what is the meaning of 1 after IEnumerable in System.Collections.Generic.IEnumerable`1

What is the meaning of 1 after IEnumerable in: System.Collections.Generic.IEnumerable`1

like image 254
SarkarG Avatar asked May 27 '13 07:05

SarkarG


People also ask

What does |= mean in C?

The bitwise OR assignment operator ( |= ) uses the binary representation of both operands, does a bitwise OR operation on them and assigns the result to the variable.

What is '~' in C programming?

The ~ operator in C++ (and other C-like languages like C and Java) performs a bitwise NOT operation - all the 1 bits in the operand are set to 0 and all the 0 bits in the operand are set to 1. In other words, it creates the complement of the original number.


1 Answers

It is the generic arity of the type, or put another way, the number of type parameters a generic type supports. IEnumerable<T> supports a single type parameter. If you were to look at Dictionary<TKey, TValue> you would notice an arity value of 2.

like image 102
Anthony Pegram Avatar answered Oct 05 '22 22:10

Anthony Pegram