C# Class Habanero.Binding.Tests.PropertyDescriptorStub

Inheritance: System.ComponentModel.PropertyDescriptor
Exibir arquivo Open project: Chillisoft/habanero.binding

Public Methods

Method Description
CanResetValue ( object component ) : bool

When overridden in a derived class, returns whether resetting an object changes its value.

GetValue ( object component ) : object

When overridden in a derived class, gets the current value of the property on a component.

PropertyDescriptorStub ( MemberDescriptor descr ) : System
PropertyDescriptorStub ( MemberDescriptor descr, Attribute attrs ) : System
PropertyDescriptorStub ( string name ) : System
PropertyDescriptorStub ( string name, Attribute attrs ) : System
ResetValue ( object component ) : void

When overridden in a derived class, resets the value for this property of the component to the default value.

SetValue ( object component, object value ) : void

When overridden in a derived class, sets the value of the component to a different value.

ShouldSerializeValue ( object component ) : bool

When overridden in a derived class, determines a value indicating whether the value of this property needs to be persisted.

Method Details

CanResetValue() public method

When overridden in a derived class, returns whether resetting an object changes its value.
public CanResetValue ( object component ) : bool
component object The component to test for reset capability.
return bool

GetValue() public method

When overridden in a derived class, gets the current value of the property on a component.
public GetValue ( object component ) : object
component object The component with the property for which to retrieve the value.
return object

PropertyDescriptorStub() public method

public PropertyDescriptorStub ( MemberDescriptor descr ) : System
descr System.ComponentModel.MemberDescriptor
return System

PropertyDescriptorStub() public method

public PropertyDescriptorStub ( MemberDescriptor descr, Attribute attrs ) : System
descr System.ComponentModel.MemberDescriptor
attrs System.Attribute
return System

PropertyDescriptorStub() public method

public PropertyDescriptorStub ( string name ) : System
name string
return System

PropertyDescriptorStub() public method

public PropertyDescriptorStub ( string name, Attribute attrs ) : System
name string
attrs System.Attribute
return System

ResetValue() public method

When overridden in a derived class, resets the value for this property of the component to the default value.
public ResetValue ( object component ) : void
component object The component with the property value that is to be reset to the default value.
return void

SetValue() public method

When overridden in a derived class, sets the value of the component to a different value.
public SetValue ( object component, object value ) : void
component object The component with the property value that is to be set.
value object The new value.
return void

ShouldSerializeValue() public method

When overridden in a derived class, determines a value indicating whether the value of this property needs to be persisted.
public ShouldSerializeValue ( object component ) : bool
component object The component with the property to be examined for persistence.
return bool