About teusje

https://teusje.wordpress.com

C#: an attempt was made to load an assembly from a network location

“an attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .net framework.”

solution:

Go to the location of the assembly file (.dll) and right-mouse click it. Go to the General tab and click “unblock”.

:-)

Preview of the New Mercedes-Benz Stadium

The new Mercedes-Benz Stadium, home to the Atlanta Falcons and Atlanta United FC soccer team starting in 2017, is a state-of-the-art facility that will feature sweeping views of the Atlanta skyline; flexible capacity of up to 83,000 seats; a retractable roof inspired by the oculus in the ancient Roman Pantheon; and a 360-degree, five-story-tall video board that will be the largest in the NFL—and the world.

Visual Studio 2015 C#6 replace INotifyPropertyChanged with nameof()

In Visual Studio 2015 with C#6.0 you can write your OnPropertyChange using the new nameof().

NotifyOfPropertyChange(() => Prop);

with

NotifyOfPropertyChange(nameof(Prop));

Regex for Visual Studio 2015 to find and replace:

Text to search:

(?:\()[()][)][ ][=][>] (.*)(?:\);)

Replace with:

(nameof($1));

Make sure the option “Use Regular Expressions” is enabled in the find and replace window.

Quick and dirty, comment your regex below :-)