// Authors:
// Jackson Harper (jackson@ximian.com)
//
-// (C) 2005 Novell, Inc.
+// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
-using System;
using System.Reflection;
using System.ComponentModel;
+using System.Security.Permissions;
namespace System.Web.UI {
+ // CAS - no InheritanceDemand here as the class is sealed
+ [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
+#if NET_2_0
+ public static class PropertyConverter {
+#else
public sealed class PropertyConverter {
- private PropertyConverter ()
+ PropertyConverter ()
{
// no instantiation for you
}
-
+#endif
public static object EnumFromString (Type enumType, string value)
{
object res = null;