2007-11-05 Stephane Delcroix <sdelcroix@novell.com>
[mono.git] / mcs / class / corlib / System / TypedReference.cs
old mode 100755 (executable)
new mode 100644 (file)
index afebe3b..45f40ce
@@ -6,10 +6,7 @@
 //   Paolo Molaro (lupus@ximian.com)
 //
 // (C) Ximian, Inc.  http://www.ximian.com
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 
 using System.Reflection;
 using System.Runtime.CompilerServices;
+using System.Security.Permissions;
+using System.Runtime.InteropServices;
 
 namespace System 
 {
        [CLSCompliant (false)]
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public struct TypedReference 
        {
                RuntimeTypeHandle type;
@@ -62,6 +64,7 @@ namespace System
 
                [MonoTODO]
                [CLSCompliant (false)]
+               [ReflectionPermission (SecurityAction.LinkDemand, MemberAccess = true)]
                public static TypedReference MakeTypedReference (object target, FieldInfo[] flds) 
                {
                        if (target == null) {