/// <summary>Initializes a new instance of the <see cref="GraphicsAdapter" /> class.</summary>
 /// <param name="graphicsProvider">The graphics provider which enumerated the adapter.</param>
 /// <exception cref="ArgumentNullException"><paramref name="graphicsProvider" /> is <c>null</c>.</exception>
 protected GraphicsAdapter(GraphicsProvider graphicsProvider)
 {
     ThrowIfNull(graphicsProvider, nameof(graphicsProvider));
     _graphicsProvider = graphicsProvider;
 }
Exemple #2
0
 /// <summary>Initializes a new instance of the <see cref="GraphicsAdapter" /> class.</summary>
 /// <param name="provider">The provider which enumerated the adapter.</param>
 /// <exception cref="ArgumentNullException"><paramref name="provider" /> is <c>null</c>.</exception>
 protected GraphicsAdapter(GraphicsProvider provider)
 {
     ThrowIfNull(provider, nameof(provider));
     _provider = provider;
 }