I'm trying to extend this plugin for my own use...
But when I copy the code over to Visual Studio, I'm am getting some error.
Do I need to import some special framework in order to use the '=>' operator and 'Invoke' Method? This is an abstract base class. I am using VS2013
?. is a feature from C# 6, and as well as the => operator (when used for expression-bodied members), is available in Visual Studio 2015 only.
Read about them here null-conditional operators and here => operator
C# < 6 syntax:
?.
isNull-conditional operators
in C#6. You is using C#6? C#6 featuredReplace this code to
This is equivalent to the our code
ConnectivityChanged?.Invoke(this, e);
This should do it.