diff options
author | jfrijters <jfrijters> | 2011-01-13 08:58:54 +0300 |
---|---|---|
committer | jfrijters <jfrijters> | 2011-01-13 08:58:54 +0300 |
commit | 6d9125b9c85a39cf41653a23898531db42414d0d (patch) | |
tree | ddc75a7228219252f092e11db49ce436c822ae97 /reflect/Type.cs | |
parent | 04806eda6702f7933875da5c4f3404484ed9b268 (diff) |
Prevent external subclassing. It's not part of the design to suppor that, now it is also enforced.
Diffstat (limited to 'reflect/Type.cs')
-rw-r--r-- | reflect/Type.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/reflect/Type.cs b/reflect/Type.cs index 25fb64e4..3a9613fa 100644 --- a/reflect/Type.cs +++ b/reflect/Type.cs @@ -45,6 +45,11 @@ namespace IKVM.Reflection { public static readonly Type[] EmptyTypes = Empty<Type>.Array; + // prevent subclassing by outsiders + internal Type() + { + } + public static Binder DefaultBinder { get { return null; } |