ProxyPropDescriptor

Ecng.ComponentModel.CustomObjectWrapper`1

Read-only property descriptor that proxies access to the wrapped object's property. SetValue and ResetValue operations throw NotSupportedException.

Hereda de: NamedPropertyDescriptor

Constructores

ProxyPropDescriptor
public ProxyPropDescriptor(PropertyDescriptor orig, object owner)
proxyPropDescriptor = ProxyPropDescriptor(orig, owner)

Read-only property descriptor that proxies access to the wrapped object's property. SetValue and ResetValue operations throw NotSupportedException.

orig
The original property descriptor from the wrapped object.
owner
The wrapper instance that owns this descriptor.

Propiedades

ComponentType
public override Type ComponentType { get; }
value = proxyPropDescriptor.ComponentType
IsReadOnly
public override bool IsReadOnly { get; }
value = proxyPropDescriptor.IsReadOnly

Gets a value indicating whether the collection is read-only.

Owner
public object Owner { get; }
value = proxyPropDescriptor.Owner

Parent object.

PropertyType
public override Type PropertyType { get; }
value = proxyPropDescriptor.PropertyType

Property type.

Métodos

CanResetValue
public override bool CanResetValue(object c)
result = proxyPropDescriptor.CanResetValue(c)
GetValue
public override object GetValue(object c)
result = proxyPropDescriptor.GetValue(c)
ResetValue
public override void ResetValue(object c)
proxyPropDescriptor.ResetValue(c)
SetValue
public override void SetValue(object c, object value)
proxyPropDescriptor.SetValue(c, value)
ShouldSerializeValue
public override bool ShouldSerializeValue(object c)
result = proxyPropDescriptor.ShouldSerializeValue(c)