I was looking at the "Contose Cookbook" training for creating Windows 8.1 Apps.
Going through the first lab, I saw something like variable += function;
. The function didn't have paranthesis, and as far as I can see, you can create functions without paranthesis, which are properties, but you have to call them with.
Here is a class where I found this:
namespace ContosoCookbook
{
sealed partial class App : Application
{
public App()
{
this.InitializeComponent();
this.Suspending += OnSuspending;
}
private async void OnSuspending(object sender, SuspendingEventArgs e)
{
var deferral = e.SuspendingOperation.GetDeferral();
await SuspensionManager.SaveAsync();
deferral.Complete();
}
...
}
}
What type of calling or function is that that accepts this.
The Application.Suspending event from msdn.