Questions tagged [.net-4.0]

Version 4.0 of the .NET Framework. Use for questions specifically related to .NET Framework 4.0. For questions on .NET Framework generally, use the .net tag.

Released on April 12th, 2010, version 4.0 (4.0.30319.1) of the Microsoft .NET Framework contains numerous enhancements, new features and bug fixes.

What's New in the .NET Framework 4

Language Improvements

Base Class Library (BCL) additions:

For more information about the new features, see:

8834 questions
47
votes
7 answers

InvalidOperationException in my Lazy<> value factory

I have a class containing something like the following: public static class Config { private static Lazy _cfgSrc = new Lazy( () => { /* "ValueFactory" here... */ }, true); public static…
Jacob
  • 77,566
  • 24
  • 149
  • 228
47
votes
1 answer

In .NET 4.0, how do I 'sandbox' an in-memory assembly and execute a method?

Here is the reason why this question was being asked: www.devplusplus.com/Tests/CSharp/Hello_World. While similar questions were asked before, the many answers online have several issues: This must be done ".Net 4.0" style, not legacy mode. The…
Timothy Khouri
  • 31,315
  • 21
  • 88
  • 128
47
votes
7 answers

Window out of the screen when maximized using WPF shell integration library

I'm using the WPF Shell Integration Library to create a custom chrome of my wpf app. All is good, but when maximizing the app, 6 or 7 pixels are out of the screen. This is the code I'm using: