1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
4 namespace System.Runtime.InteropServices.WindowsRuntime
6 public static class WindowsRuntimeMarshal
8 public static void AddEventHandler<T>(Func<T, EventRegistrationToken> addMethod,
9 Action<EventRegistrationToken> removeMethod,
10 T handler) => throw new PlatformNotSupportedException();
12 public static void RemoveEventHandler<T>(Action<EventRegistrationToken> removeMethod, T handler) => throw new PlatformNotSupportedException();
14 public static void RemoveAllEventHandlers(Action<EventRegistrationToken> removeMethod) => throw new PlatformNotSupportedException();
16 public static object GetUniqueObjectForIUnknownWithoutUnboxing(IntPtr unknown) => throw new PlatformNotSupportedException();