background preloader

Reading

Facebook Twitter

Using async/await without .NET Framework 4.5 - BCL Team Blog. [Update: We've uploaded a new version of Microsoft.Bcl.Async NuGet package.

Using async/await without .NET Framework 4.5 - BCL Team Blog

The previous version will not work correctly on Windows Phone 7.1] Do you want to use await but don’t want to wait until you can target .NET Framework 4.5? The waiting is over and awaiting is about to begin. Today, we are proud to announce an update to the Async Targeting Pack we had previously released. The previous targeting pack allowed you to use await when targeting .NET Framework 4.0 and Silverlight 5. .NET Framework 4.0 (with KB2468871)Silverlight 4Windows Phone 7.5and portable class libraries targeting those platforms So effectively we added support for Windows Phone 7.5, Silverlight 4, and portable class libraries. Yes and no. With this mindset developers expect to be able to use await as soon as they use Visual Studio 2012 – independent from the .NET platform they are targeting. In order to use await you need two components: Visual Studio 2012Some specific .NET APIs install-package Microsoft.Bcl.Async –pre. Managed Extensibility Framework « Stefan Henneken. MEF Teil 11 – Neuerungen unter .NET 4.5 Mit dem .NET Framework 4.5 wurden auch bei dem Managed Extensibility Framework (MEF) einige Neuerungen eingeführt.

Managed Extensibility Framework « Stefan Henneken

So werden jetzt offene generische Typen unterstützt und es gibt die Möglichkeit einer API-basierten Konfiguration. Dadurch wird eine lose Koppelung noch einfacher erreicht. Diese und alle neuen Erweiterungen erklärt der folgende Post. Weiterlesen… Kategorien:Managed Extensibility FrameworkSchlagworte: ChangeRejectedException, CompositionContractMismatchException, CompositionException, CompositionOptions, CompositionScopeDefinition, ExportBuilder, ExportFactory, ExportLifetimeContext, MEF, PartBuilder, PropertyInfo, RegistrationBuilder MEF Teil 10 – Parts über ExportProvider und App.config in AppDomain laden Der folgende Post behandelt eigentlich mehrere Themen. Weiterlesen… MEF Teil 9 – Zugriff auf Composable Parts und Metadaten ohne Lazy<> Der Zugriff auf Metadaten erfolgt über die Klasse Lazy<T, TMetadata>. Weiterlesen… Weiterlesen… C# 4.0/3.0 in a Nutshell - PredicateBuilder.

Dynamically Composing Expression Predicates Suppose you want to write a LINQ to SQL or Entity Framework query that implements a keyword-style search.

C# 4.0/3.0 in a Nutshell - PredicateBuilder

In other words, a query that returns rows whose description contains some or all of a given set of keywords. We can proceed as follows: IQueryable<Product> SearchProducts (params string[] keywords) { IQueryable<Product> query = dataContext.Products; foreach (string keyword in keywords) { string temp = keyword; query = query.Where (p => p.Description.Contains (temp)); } return query; } The temporary variable in the loop is required to avoid the outer variable trap, where the same variable is captured for each iteration of the foreach loop. So far, so good. Of all the things that will drive you to manually constructing expression trees, the need for dynamic predicates is the most common in a typical business application.

Using PredicateBuilder Here's how to solve the preceding example with PredicateBuilder: PredicateBuilder Source Code How it Works. Vorträge der Visual Studio ALM Days 2012 - Visual Studio News-Blog. Vom 28. bis 30.

Vorträge der Visual Studio ALM Days 2012 - Visual Studio News-Blog

November fanden in München die Visual Studio ALM Days 2012 statt. Mit Top-Keynote-Speakern wie Sam Guckenheimer und Brian Harry, zahlreichen MVPs, Microsoft Experten und hochkarätigen Referenten aus der ALM-Szene, gab es auch in diesem Jahr zahlreiche, informative und spannende Vorträge rund um das Thema Application Lifecacle Management mit Visual Studio. Wer es in diesem Jahr nicht zur Veranstaltung geschafft hat oder sich zwischen einzelnen Vorträgen nicht entscheiden konnte, für den stehen die Vorträge der Referenten jetzt zum Download bereit. Management Day Keynotes Sam Guckenheimer: Build / Meaure/ Learn - DownloadChristian Binder, Frank Prengel, Daniel Meixner: Windows 8, Wondows Phone 8 und das Surface - DownloadBrian Harry: Moving to Cloud Cadence - Dowload Track 1 Neno Loje: Continuous Delivery mit Visual Studio Team Foundation Server 2012 - DownloadThomas Schissler: Kanban - Agile 2.0?

Track 2 Track 3 Technical Day Keynote Brian Harry: Technical Keynote - Download.