public GlyphFactoryInfo(int order, IGlyphFactory factory, IGlyphFactoryProvider glyphFactoryProvider) { Order = order; Factory = factory ?? throw new ArgumentNullException(nameof(factory)); FactoryProvider = glyphFactoryProvider ?? throw new ArgumentNullException(nameof(glyphFactoryProvider)); Canvas = new Canvas { Background = Brushes.Transparent }; }
public GlyphFactoryInfo(int order, IGlyphFactory factory, IGlyphFactoryProvider glyphFactoryProvider) { if (factory == null) throw new ArgumentNullException(nameof(factory)); if (glyphFactoryProvider == null) throw new ArgumentNullException(nameof(glyphFactoryProvider)); Order = order; Factory = factory; FactoryProvider = glyphFactoryProvider; Canvas = new Canvas { Background = Brushes.Transparent }; }