Skip to content

Instantly share code, notes, and snippets.

@pipeaesac
pipeaesac / Program.cs
Last active August 29, 2015 14:13
Mulö HS2013 Aufgabe D: Events
namespace ConsoleApplication1
{
class Counter {
int val = 0;
public event Func<Counter, bool> condition; //Counter und bool, waren vertauscht. bool war gross geschrieben!
public event Action<Counter> action;
@pipeaesac
pipeaesac / Linq.cs
Created January 18, 2015 02:26
Mulö HS2013 Aufgabe B: Linq
namespace ConsoleApplication1
{
class Test
{
public static void Main()
{
var kunden = new Kunde[] {
func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) {
completionHandler()
}
func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {
completionHandler([.alert, .sound, .badge])
}