1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
6
namespace ICSharpCode.WpfDesign.PropertyGrid
9
/// Attribute to specify that the decorated class is a editor for properties with the specified
12
[AttributeUsage(AttributeTargets.Class, AllowMultiple=true, Inherited=false)]
13
public sealed class TypeEditorAttribute : Attribute
15
readonly Type supportedPropertyType;
18
/// Creates a new TypeEditorAttribute that specifies that the decorated class is a editor
19
/// for properties with the return type "<paramref name="supportedPropertyType"/>".
21
public TypeEditorAttribute(Type supportedPropertyType)
23
if (supportedPropertyType == null)
24
throw new ArgumentNullException("supportedPropertyType");
25
this.supportedPropertyType = supportedPropertyType;
29
/// Gets the supported property type.
31
public Type SupportedPropertyType {
32
get { return supportedPropertyType; }