C# Class CoApp.Developer.Toolkit.Scripting.Languages.PropertySheet.PropertySheet

Inheritance: System.Dynamic.DynamicObject
Show file Open project: coapp-deprecated/devtools Class Usage Examples

Public Properties

Property Type Description
GetCollection GetCollectionDelegate
GetMacroValue StringExtensions.GetMacroValueDelegate
PostprocessProperty StringExtensions.GetMacroValueDelegate
PreprocessProperty StringExtensions.GetMacroValueDelegate

Public Methods

Method Description
GetRule ( string name = "*", string parameter = null, string @class = null, string id = null ) : Rule

Gets a rule by the selector criteria. If the rule doesn't exists, it creates it and adds it to the propertysheet.

HasRule ( string name = "*", string parameter = null, string @class = null, string id = null ) : bool
Load ( string path ) : PropertySheet
Parse ( string text, string originalFilename ) : PropertySheet
Save ( string path ) : void
ToString ( ) : string
TryGetMember ( GetMemberBinder binder, object &result ) : bool
this ( string name ) : IEnumerable

Private Methods

Method Description
GetIndex ( string innerMacro ) : int
ProcessMacroInternal ( string value, object eachItems ) : string
QuoteIfNeeded ( string val ) : string
ResolveMacros ( string value, object eachItems = null ) : string

Method Details

GetRule() public method

Gets a rule by the selector criteria. If the rule doesn't exists, it creates it and adds it to the propertysheet.
public GetRule ( string name = "*", string parameter = null, string @class = null, string id = null ) : Rule
name string
parameter string
@class string
id string
return Rule

HasRule() public method

public HasRule ( string name = "*", string parameter = null, string @class = null, string id = null ) : bool
name string
parameter string
@class string
id string
return bool

Load() public static method

public static Load ( string path ) : PropertySheet
path string
return PropertySheet

Parse() public static method

public static Parse ( string text, string originalFilename ) : PropertySheet
text string
originalFilename string
return PropertySheet

Save() public method

public Save ( string path ) : void
path string
return void

ToString() public method

public ToString ( ) : string
return string

TryGetMember() public method

public TryGetMember ( GetMemberBinder binder, object &result ) : bool
binder System.Dynamic.GetMemberBinder
result object
return bool

this() public method

public this ( string name ) : IEnumerable
name string
return IEnumerable

Property Details

GetCollection public property

public GetCollectionDelegate GetCollection
return GetCollectionDelegate

GetMacroValue public property

public StringExtensions.GetMacroValueDelegate GetMacroValue
return StringExtensions.GetMacroValueDelegate

PostprocessProperty public property

public StringExtensions.GetMacroValueDelegate PostprocessProperty
return StringExtensions.GetMacroValueDelegate

PreprocessProperty public property

public StringExtensions.GetMacroValueDelegate PreprocessProperty
return StringExtensions.GetMacroValueDelegate