C# Class Treefrog.Framework.Model.Property

Inheritance: INamedResource, ICloneable
Show file Open project: jaquadro/Treefrog

Public Methods

Method Description
Clone ( ) : object
FromXmlProxy ( CommonX proxy ) : Property
Parse ( string value ) : void

Parses a given string value into the underlying data type and assign it as the property's value.

ResetModified ( ) : void
ToXmlProxyX ( Property property ) : CommonX.PropertyX
TrySetName ( string name ) : bool

Protected Methods

Method Description
OnModified ( EventArgs e ) : void

Raises the Modified event.

OnValueChanged ( EventArgs e ) : void

Raises the ValueChanged event.

Property ( string name ) : System

Creates a new Property instance with a given name.

Property ( string name, Property property ) : System

Method Details

Clone() public abstract method

public abstract Clone ( ) : object
return object

FromXmlProxy() public static method

public static FromXmlProxy ( CommonX proxy ) : Property
proxy Treefrog.Framework.Model.Proxy.CommonX
return Property

OnModified() protected method

Raises the Modified event.
protected OnModified ( EventArgs e ) : void
e System.EventArgs An containing the event data.
return void

OnValueChanged() protected method

Raises the ValueChanged event.
protected OnValueChanged ( EventArgs e ) : void
e System.EventArgs An that contains the event data.
return void

Parse() public abstract method

Parses a given string value into the underlying data type and assign it as the property's value.
Thrown when the underlying conversion fails. Check InnerException for specific failure information.
public abstract Parse ( string value ) : void
value string A string representation of the value to assign.
return void

Property() protected method

Creates a new Property instance with a given name.
protected Property ( string name ) : System
name string The name of the property.
return System

Property() protected method

protected Property ( string name, Property property ) : System
name string
property Property
return System

ResetModified() public method

public ResetModified ( ) : void
return void

ToXmlProxyX() public static method

public static ToXmlProxyX ( Property property ) : CommonX.PropertyX
property Property
return Treefrog.Framework.Model.Proxy.CommonX.PropertyX

TrySetName() public method

public TrySetName ( string name ) : bool
name string
return bool