Por Paulo Morgado
O novo paradigma de aplicações com ligação à nuvem leva a que a latência das comunicações seja maior do que aplicações totalmente locais. Para auxiliar o desenvolvimento deste novo paradigma, a última versão do C# 5.0 faz com que programação assíncrona pareça tão fácil como a programação síncrona
5. The Evolution Of C#
# 5
C# 1.0 C# 2.0 C# 3.0 C# 4.0 C# 5.0
Managed Generics LINQ Dynamic Async
please wait for the next slide
clicking won’t make it come any faster
18. Source Code Caller ID
• CallerFilePathAttribute
• Allows you to obtain the full path of the source file that
contains the caller. This is the file path at the time of
compile.
• http://msdn.microsoft.com/library/system.runtime.compilerservices.callerfilepathattribute.aspx
• CallerLineNumberAttribute
• Allows you to obtain the line number in the source file at
which the method is called.
• http://msdn.microsoft.com/library/system.runtime.compilerservices.callerlinenumberattribute.aspx
• CallerMemberNameAttribute
• Allows you to obtain the method or property name of the
caller to the method.
• http://msdn.microsoft.com/library/system.runtime.compilerservices.callermembernameattribute.aspx
# 18
22. Breaking Changes
• You can use the iteration variable of a foreach statement in a lambda
expression that’s contained in the body of the loop.
• You can use the iteration variable of a foreach statement in a LINQ
expression that’s contained in the body of the loop.
• Overload resolution has been improved for calls that use named arguments
to access methods that contain params parameters.
• Overload resolution is improved for calls where the algorithm must choose
between a Func<object> parameter and a Func parameter that has a
different type parameter (e.g., string or int?) for a Func<dynamic>
argument.
• Side effects from named and positional arguments in a method call now
occur from left to right in the argument list.
http://msdn.microsoft.com/library/hh678682(v=vs.110).aspx
# 22