C# Class Volante.PersistentString

Class encapsulating native .Net string. System.String is not a persistent object so it can not be stored in Volante as independent persistent object. But sometimes it is needed. This class sole this problem providing implicit conversion operator from System.String to PerisstentString. Also PersistentString class is mutable (i.e. unlike System.String, its value can be changed).
Inheritance: PersistentResource
Show file Open project: kjk/volante Class Usage Examples

Public Methods

Method Description
Append ( string tail ) : void

Append string to the current string value of PersistentString

Get ( ) : string

Get current string value

PersistentString ( )
PersistentString ( string str )

Constructor of peristent string

Set ( string str ) : void

Assign new string value to the PersistentString

ToString ( ) : string

Get .Net string

Method Details

Append() public method

Append string to the current string value of PersistentString
public Append ( string tail ) : void
tail string appended string
return void

Get() public method

Get current string value
public Get ( ) : string
return string

PersistentString() public method

public PersistentString ( )

PersistentString() public method

Constructor of peristent string
public PersistentString ( string str )
str string .Net string

Set() public method

Assign new string value to the PersistentString
public Set ( string str ) : void
str string new string value
return void

ToString() public method

Get .Net string
public ToString ( ) : string
return string