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