C# Language Enhancements Ebook: Beginning Visual C# 2010, part 1, chapter 14 Reference: Vietnamese Video Contents Object Initializers ! "# $ " # %&! %&! %&! $ ' !$ &!$ $ !$ &!$ $ !$ &!$ $ $ ( )&*"+,,) /+ +0+ ++#! &*"#! %'&+,,) /+! %&+0+! %&++! (&* '&+,,) /+ &+0+ &++ $! var type 12** 3* 45 * 6 &)7! &*"#! &*89: - $! : ;<&;<! Anonymous types * => *== 6 &*'&+)(:-?+ &+@+$! 6= == = AB*=C =C - Dynamic type D=0 * '=C * * 6 BE") # ")F#G! $ )H13" # &BE" :#! %B&1%B"#! $ ? 0! Named and optional method parameters *I I = *= = * = J === . Named and optional method parameters K 12: =** B5C I!C* 6 &*"6+,,) /+ 6+0+ 6 ++#! / LL";)<6;)0< %%% ;<6;0<#! Extension methods ++ ** *= 6 , 1 ;DB<;L<" ;BB<# %%% $ $ ;BB<0! GG0*% 0%;L<"#! = Extension methods: Example C'1") # )%C" 1%'1#! $ $ %%% &+@+! LE%*"%C'1"++#%B"##! )7 . C# Language Enhancements Ebook: Beginning Visual C# 2010, part 1, chapter 14 Reference: Vietnamese Video Contents Object