Pronunciation of programming structures (particularly in c#)
Posted
by
Andrzej Nosal
on Stack Overflow
See other posts from Stack Overflow
or by Andrzej Nosal
Published on 2010-12-30T19:21:50Z
Indexed on
2010/12/30
19:53 UTC
Read the original article
Hit count: 330
c#
|pronunciation
As a non-English speaking person I often have problems pronouncing certain programming structures and abbreviations. I've been watching some video tutorials and listening to podcasts as well, though I couldn't catch them all.
My question is what is the common or correct pronunciation of the following code snippets?
Generics, like
IEnumerable<int>
or in a methodvoid Swap<T>(T lhs, T rhs)
Collections indexing and indexer access e.g.
garage[i]
, rectangular arraysmyArray[2,1]
orjagged[1][2][3]
Lambda operator
=>
, e.g. in awhere
extension method.Where(animal => animal.Color == Color.Brown)
or in an anonymous method
() => { return false;}
Inheritance
class Derived : Base
(extends?)class SomeClass : IDisposable
(implements?)Arithemtic operators
+=
-=
*=
/=
%=
!
Are
+=
and-=
pronounced the same for events?Collections initializers
new int[] { 4, 5, 8, 9, 12, 13, 16, 17 };
Casting
MyEnum foo = (MyEnum)(int)yourFloat;
(as?)Nullables
DateTime? dt = new DateTime?();
I tagged the question with C#
as some of them are specific to C# only.
© Stack Overflow or respective owner