public InputInterface( OpenRestrictedCallback open_restricted, CloseRestrictedCallback close_restricted) { if (open_restricted == null || close_restricted == null) { throw new ArgumentNullException(); } open = Marshal.GetFunctionPointerForDelegate(open_restricted); close = Marshal.GetFunctionPointerForDelegate(close_restricted); }
public InputInterface( OpenRestrictedCallback open_restricted, CloseRestrictedCallback close_restricted) { if (open_restricted == null || close_restricted == null) throw new ArgumentNullException(); open = Marshal.GetFunctionPointerForDelegate(open_restricted); close = Marshal.GetFunctionPointerForDelegate(close_restricted); }