Miscellaneous
Categories
C#
IT Notes
Tags
C#
Programming World
Content
-
The
foreachstatement is a consumer of an enumerator, while an iterator is a producer of an enumerator. -
yieldandyield breakare keywords used in C# to create iterators. -
int? i = null;The?allows the variableito be assigned a null value in C#. -
Extension methods in C# allow an existing type to be extended with new methods without altering its original structure.
-
In C#, an instance method takes precedence over an extension method if both exist with the same signature.
