Automatic Properties are not Fields

December 28, 2012

Even though that the statement in the title is trivial, the fact that the syntax of automatic properties and fields is almost identical can sometimes make us forget that they are two different things. Take, for example, the following struct: 1: 2: public struct MyData 3: { 4: public int A; 5: public int...
tags: , ,
no comments

My Presentation at the Technion: Introduction to Windows 8

December 19, 2012

Today, I gave a talk about Windows 8 at the Technion, on behalf of Microsoft Israel. The presentation was part of Microsoft's collaboration with the academic community. That was a 101 presentation which was focused mainly on the new features of Windows 8, and on how app authors should use them to write better apps. I wrapped things up with a quick, hands-on, demonstration. One of the participants asked me how to remove unwanted app shortcuts from the All Apps screen. Here is a great blog post describing how to do it step by step. Last, but...
no comments

Compiler Error: Invalid Character in the Given Encoding

December 14, 2012

Recently, a colleague of mine received the above compilation error, together with hundreds of other, less helpful errors, when he tried to compile what seemed to be a perfectly fine XAML code. The problems started after he removed all the comments from the source files with a program that he created. The program simply loads the source file's content, removes the comments, and then writes the updated content back to the file. Here is a naive example to illustrate the problem: 1: public void ProcessFile(string path) ...
tags: , ,
no comments