public static void PushLayer(this ID2D1DeviceContext context, D2D1_LAYER_PARAMETERS1 parameters) { if (context == null) { throw new ArgumentNullException(nameof(context)); } context.PushLayer(ref parameters, null); }
public static void PushLayer(this IComObject <ID2D1DeviceContext> context, D2D1_LAYER_PARAMETERS1 parameters) => PushLayer(context?.Object, parameters);