C# Class Rock.Utility.SettingsStringBase

A base class that provides common functions to create or parse versioned settings strings used by various Rock components.
Afficher le fichier Open project: NewSpring/Rock

Méthodes publiques

Méthode Description
FromSelectionString ( string selectionString, string delimiter = SettingsDelimiter ) : void

Set values from a string representation of the settings.

ToSelectionString ( ) : string

Gets a string representation of the settings.

ToString ( ) : string

Returns a System.String that represents this instance.

Méthodes protégées

Méthode Description
OnGetParameters ( ) : IEnumerable

Gets an ordered set of property values that can be used to construct the settings string.

OnSetParameters ( int version, IReadOnlyList parameters ) : void

Set the property values parsed from a settings string.

Method Details

FromSelectionString() public méthode

Set values from a string representation of the settings.
public FromSelectionString ( string selectionString, string delimiter = SettingsDelimiter ) : void
selectionString string A delimited string representing the settings.
delimiter string The delimiter used to separate the setting values.
Résultat void

OnGetParameters() protected abstract méthode

Gets an ordered set of property values that can be used to construct the settings string.
protected abstract OnGetParameters ( ) : IEnumerable
Résultat IEnumerable

OnSetParameters() protected abstract méthode

Set the property values parsed from a settings string.
protected abstract OnSetParameters ( int version, IReadOnlyList parameters ) : void
version int The version number of the parameter set.
parameters IReadOnlyList An ordered collection of strings representing the parameter values.
Résultat void

ToSelectionString() public méthode

Gets a string representation of the settings.
public ToSelectionString ( ) : string
Résultat string

ToString() public méthode

Returns a System.String that represents this instance.
public ToString ( ) : string
Résultat string