Browse by Tags
All Tags »
.NET 4.0 (
RSS)
Recently, I’ve given several sessions on “What’s new in C# 4.0?” in an MS Open House and the Nes Tziona User group. For those unable to attend, or just want some refreshing, I’ve created 3 videos on the main C# 4 features (“Optional and named arguments”, “dynamically typed objects” and “generic variance”). You can watch those on the Hi-Tech TV web site. Enjoy!
Yesterday, I delivered a session titled “What’s new in C# 4.0?” after a session by Guy Burstein on “First look at Visual Studio 2010” . Thank you all for attending. I apologise for not using all the feedbacks to select winners for the books – sorry, guys! I’ll pay attention next time (probably lack of food). Some notes that came up during the session: 1. The misbehavior on the DynamicXmlElement class was due to a small oversight: I wrote this code when only one element existed: case 1: ...
Early in the ads for .NET 4.0, there were rumours about two types dealing with numeric stuff, BigInteger and Complex . In the Beta 1 phase, BigInteger has appeared (I’ve briefly blogged about it), but Complex was nowhere to be found. With the advent of .NET 4.0 Beta 2, I was happy to find the emergence of the Complex type in the System.Numerics namespace (and these numeric types have been moved to their own System.Numerics.Dll assembly). Complex is, of course, represents a complex number, with a...
Last Wednesday I presented in a Microsoft Open House a session entitled “What’s New in C# 4.0?”. The first part was “What’s new in VS 2010” presented by Guy Burstein . Thank you all for attending! The presentation and demos can be downloaded from the events page here .
One of the simplest new additions to the .NET 4.0 framework is an integer with arbitrary length, System.Numerics.BigInteger . Here’s a simple usage example, comparing it to a double: BigInteger b = BigInteger . Pow (2, 64); Console . WriteLine ( "BigInteger: {0}" , b . ToString ( "N" )); Console . WriteLine ( "Double: {0}" , Math . Pow (2, 64). ToString ( "N" )); Console . WriteLine (); b = BigInteger . Pow (2, 128); Console ...