Any developer that has been through the ringer before knows the pain that comes from undoing the hard work of developing back-end code and creating awesome UIs when stakeholders change the vision of their project. Instead of suffering this cruel fate, developers can utilize tools that allow them to prototype their design. This way, UIs can be changed by stakeholders before developers start coding, thus saving lots of time and effort.
There are numerous new features coming with .NET 4.5 and here, on this blog, you can find several posts about it. But the feature we are goint to talk about today is very exciting, because we were waiting for it more than 10 years. Since .NET 1.0 the memory limit of .NET object is 2GB. This means you cannot for example create array which contains elements with more than 2GB in total. If try to create such array, you will get the OutOfMemoryException. Let’s see an example how to produce OutOfMemoryException. Before that Open Visual Studio 2012, and create C# Console Application, like picture below. First lets create simple struct with two double members like example below: 1 2 3 4 5 6 7 8 9 10 11 12 public struct ComplexNumber { public double Re; public double Im; public ComplexNumber( double re, double im) { ...

Comments
Post a Comment