Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/ikvm-fork.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjfrijters <jfrijters>2011-01-13 08:58:54 +0300
committerjfrijters <jfrijters>2011-01-13 08:58:54 +0300
commit6d9125b9c85a39cf41653a23898531db42414d0d (patch)
treeddc75a7228219252f092e11db49ce436c822ae97 /reflect/Type.cs
parent04806eda6702f7933875da5c4f3404484ed9b268 (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.cs5
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; }