DCSIMG
DEV - Stiller on Software

Stiller on Software

Less is More

Browse by Tags

All Tags » DEV (RSS)
Released: Code Contracts VS2012 Editor Extensions
Code Contracts is an experimental project from Microsoft Research which provides a language-agnostic way to express coding assumptions in .NET programs, thus allowing for improved testability, static verification at compile time and automatic API documentation. If you participated in my session about Code Contracts last week , then you already know that. At my session, I said that Microsoft has not yet released the Code Contracts Editor Extensions for VS2012. Well that, my friends, has changed… Microsoft...
WF 4.5 and Code Contracts: Slide Decks and Code
I’d like to thank all those who attended yesterday’s sessions at the Israeli .NET Developer User Group. I had a good time delivering the sessions, and I hope you enjoyed them as well. What’s New in Windows Workflow Foundation (WF) 4.5? Sample code for the session can be found here . Enhance Your Code Quality with Code Contracts Sample code for the session can be found here . If you attended the session and have an open question, feel free to ask. See you next time! The post WF 4.5 and Code Contracts...
Upcoming Event: Code Contracts Lecture
If you ever used a 3rd party API, you surely know the importance of proper documentation - Can this method return "null"? Do I have to check this return value? What are the valid values of this argument? You also probably know that the only way to discover if your assumptions are correct is to execute the code and pray that exceptions won't be flying around. There must be a better way! Enter "Code Contracts". Code Contracts is an experimental project from Microsoft Research...
Upcoming Event: WF 4.5 Lecture
Windows Workflow Foundation (WF) is Microsoft's .NET implementation of a Workflow authoring and hosting environment. With WF 4.5 developers can easily author workflows using the Visual-Studio built-in WF designer, host them in multiple application environments using the provided runtime engine and even expose them as services for the outside world to consume. Oh, and it's totally free… On Wednesday, March 20th 2013, I’ll give a presentation on WF 4.5 at the Israeli .NET User Group (Microsoft...
Posted: Mar 05 2013, 07:03 AM by Eran Stiller
תגים:, ,
Accessing the AggregateException with await
The await keyword is a new keyword in C# 5.0 which, in tandem with async keyword, allows us to easily author methods which execute asynchronously in regards to the calling code. In previous posts I’ve shown certain issues you should look out for when using these keyword. In this post we’ll look at another issue with the await keyword – how to access the AggregateException . await Only Throws One Exception As we saw in a previous post , await (unlike Task.Wait()) does not wrap a thrown exception in...
Task.Wait() vs. await
The await keyword is a new keyword in C# 5.0 which, in tandem with async keyword, allows us to easily author methods which execute asynchronously in regards to the calling code. In a previous post I’ve shown a certain issue you should look out for when using the async keyword. In this post we’ll check a similar issue with the await keyword. The await Trap Let’s remember our test code from the previous post: class AsyncClass { public void Process(string s) { if (s == null) throw new ArgumentNullException...
VS2012 WF Designer Issues with High DPI Settings
Windows Workflow Foundation (WF) is a core .NET technology for authoring long-running, scalable & integrated business processes. The WF designer that ships with VS2012 is the main tool of choice for declaratively creating workflows in .NET 4.5, however, unfortunately, it has an issue with high Dots-Per-Pixel (DPI) settings. Introducing the Windows DPI Settings As computer monitors arrive with an ever growing resolution on smaller and smaller screens, you might have noticed that the text and icons...
Assembly Binding Redirect Not Working
Assembly Binding Redirect is a .NET mechanism allowing developers who's application was compiled against a certain strongly-named assembly version to swap that assembly with a different version without recompiling the entire assembly. One of the methods for achieving this goal is by placing a special directive in the application’s configuration file, as described on MSDN . .NET Ignores My Assembly Binding Redirect An example of such a configuration section can be seen below: <configuration>...
Windows Phone 8 Emulator Hardware Requirements & SLAT
Windows Phone 8 SDK was released during the BUILD conference about 3 weeks ago, and an increasing number of developers are actively developing new apps for the new platform. This post focuses on the software and hardware requirements for running the Windows Phone 8 Emulator, and specifically the requirement for hardware Second-Level Address Translation (SLAT) support. Hyper-V and SLAT Hyper-V is Microsoft’s virtualization platforms which allows creating, managing and operating virtual machines on...
The async Keyword and Thrown Exceptions
async is a new keyword in C# 5.0 which allows us to easily author methods which execute asynchronously in regards to the calling code. The calling code can call the async method and continue its execution until it decides to join with the called method at a later stage. The async Trap Consider the following method: public void Process(string s) { if (s == null) throw new ArgumentNullException("s"); ProcessCore(s); } private void ProcessCore(string s) { for (int len = 1; len <= s.Length;...
BUILD 2012 - Day 4
The BUILD party has passed, and the final day of BUILD has unfortunately arrived. This day had some interesting sessions which I’ll summarize in this post. Remember – all BUILD sessions are available for free on MSDN Channel 9 . BUILD Session – Deep Dive Into the Kernel of .NET on Windows Phone 8 Unfortunately, the session with this promising name ended up not providing the deep-dive that some of us expected, but I did pick up an interesting pointer. As it turns out, when you deploy a .NET application...
BUILD 2012 - Day 3
The BUILD conference’s third day was devoted fully to breakout conferences, with the BUILD party at the end of the day (and Microsoft has shown before that they know to throw a party). As always – all BUILD sessions are available on MSDN channel 9 . BUILD Session – Tips and Tricks for Developing Connected Applications This session focused on issues regarding the development of applications which require a data connection, whether it be a server or a pee-to-peer connection and has shown some tricks...
BUILD 2012 - Day 2
Day number two of BUILD has passed on by with some great content. In this post I’ll highlight some issues I encountered today at some of the professional sessions, which were all related to Windows Azure. You should note that all BUILD sessions are available for free on Channel 9 . BUILD Keynote – Windows 8 & Cloud-Connected Apps Today’s keynotes focused on Windows Azure and the various application types it can support, including device centric applications, web centric applications and cloud...
BUILD 2012 - Day 1 (Part II)
In a previous post , I highlighted BUILD’s first day keynote main topics, and on this post I would like to focus on my highlights from the professional sessions of the day. By the way – all BUILD sessions are available for free on Channel 9 . BUILD Session - Bringing Existing C++ Code to Windows Store Apps Ever since the previous BUILD last year, along with the completion of C++ 11, C++ is having a kind of renaissance and is making a comeback to the center of the development stage. While Windows...
BUILD 2012 - Day 1 (Part I)
BUILD has finally begun on Tuesday, after a long wait. CodeValue is here at BUILD in full strength with 10 experts at the conference itself, and one more disappointed expert who unfortunately got stuck at home due to hurricane Sandy (Pavel, we’re with you at heart). By the way, if you missed it I am also publishing short updates on my twitter account @eranstiller . BUILD Keynote – Steve Ballmer & Friends The day began with Steve Ballmer’s. Steve has a lot of energies on stage (“Developers, Developers...
More Posts Next page »