DCSIMG
.NET 4.0 - Pavel's Blog
Sign in | Join | Help

Pavel's Blog

Pavel is a software guy that is interested in almost everything
software related... way too much for too little time

Browse by Tags

System.Xaml in .NET 4 Part 2
13 May 10 04:44 PM | pavely | 1 comment(s)
This wasn’t meant to be a multi-part series, but it seems to turn out that way… In the first part , I’ve shown how we can leverage some of the new System.Xaml namespace functionality to construct an object tree from a XAML text. This was pretty easy with methods like XamlServices.Load or XamlServices.Parse . However, these methods return the top level (root) object, with all sub objects constructed already, without any way to intervene, or do something with the sub-objects, as they’re being constructed...
תגים:, , , ,
XAML in .NET 4
10 May 10 04:25 PM | pavely | 2 comment(s)
XAML was originally developed for WPF (and WF) to allow a neutral, declarative way to build user interfaces. But in actuality, XAML has nothing to do with UI: it’s simply a language that allows creation of objects and setting of properties. The addition of type converters and markup extensions make this language extremely powerful for describing object hierarchies. .NET 4 takes XAML to the next level, unbinding it from its WPF roots. A new assembly, System.Xaml.Dll hosts the generic usage of XAML...
תגים:, , ,
My Developer Academy 4 Session
22 March 10 08:29 PM | pavely | 2 comment(s)
Today, I presented the session entitled “.NET 4: What’s new in the CLR and BCL?”. Thank you all for attending! I didn’t get the chance to do all the demos I wanted because of time constraints (I always try to stuff more that is possible in the allotted time, and even “stole” a few minutes extra), but I hope the message went through: there are improvements all over the board that will impact almost any type of application. I suggest you download the demos and slides from the developer academy 4 site...
C# 4.0 New Features Videos
25 November 09 02:25 PM | pavely | with no comments
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!
תגים:, , ,
Open House on C# 4.0 (Take 2)
29 October 09 11:05 AM | pavely | 2 comment(s)
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:   ...
תגים:, , ,
The Return (Appearance) of the Complex Type
27 October 09 05:13 PM | pavely | with no comments
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...
תגים:, ,
What’s New in C# 4.0 Open House
24 August 09 01:28 PM | pavely | 2 comment(s)
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 .
BigInteger in .NET 4.0
26 May 09 02:26 PM | pavely | 1 comment(s)
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 ...