From 9681af45b4aa1e307d83cc9a02d372b07bdca2ca Mon Sep 17 00:00:00 2001 From: Immo Landwerth Date: Thu, 2 May 2019 15:26:33 -0700 Subject: [PATCH] Prevent non-framework code from extending BaseNumberConverter This fixes #1171. --- src/netstandard/ref/System.ComponentModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/netstandard/ref/System.ComponentModel.cs b/src/netstandard/ref/System.ComponentModel.cs index 94d50c58a..00205c6a5 100644 --- a/src/netstandard/ref/System.ComponentModel.cs +++ b/src/netstandard/ref/System.ComponentModel.cs @@ -118,7 +118,7 @@ public void RunWorkerAsync(object argument) { } } public abstract partial class BaseNumberConverter : System.ComponentModel.TypeConverter { - protected BaseNumberConverter() { } + internal BaseNumberConverter() { } public override bool CanConvertFrom(System.ComponentModel.ITypeDescriptorContext context, System.Type sourceType) { throw null; } public override bool CanConvertTo(System.ComponentModel.ITypeDescriptorContext context, System.Type destinationType) { throw null; } public override object ConvertFrom(System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) { throw null; }