2 // System.ComponentModel.DerivedPropertyDescriptor
5 // Gonzalo Paniagua Javier (gonzalo@ximian.com)
7 // (C) 2002 Ximian, Inc (http://www.ximian.com)
10 using System.Reflection;
12 namespace System.ComponentModel
14 class DerivedPropertyDescriptor : PropertyDescriptor
21 protected DerivedPropertyDescriptor (string name, Attribute [] attrs)
26 public DerivedPropertyDescriptor (string name, Attribute [] attrs, int dummy)
31 public void SetReadOnly (bool value)
36 public void SetComponentType (Type type)
41 public void SetPropertyType (Type type)
46 public override object GetValue (object component)
49 prop = componentType.GetProperty (Name);
51 return prop.GetValue (component, null);
54 public override void SetValue(object component, object value) {
57 prop = componentType.GetProperty (Name);
59 prop.SetValue (component, value, null);
63 public override void ResetValue(object component) {
65 throw new NotImplementedException ();
69 public override bool CanResetValue(object component) {
71 throw new NotImplementedException ();
75 public override bool ShouldSerializeValue(object component) {
77 throw new NotImplementedException ();
80 public override Type ComponentType
88 public override bool IsReadOnly
97 public override Type PropertyType