C# Class ICSharpCode.Core.StringParser

this class parses internal ${xyz} tags of sd. All environment variables are avaible under the name env.[NAME] where [NAME] represents the string under which it is avaiable in the environment.
显示文件 Open project: jumpinjackie/fdotoolbox

Public Methods

Method Description
Parse ( string input ) : string
Parse ( string input, string customTags ) : string

Expands ${xyz} style property values.

Parse ( string inputs ) : void

Parses an array and replaces the elements in the existing array.

RegisterStringTagProvider ( IStringTagProvider tagProvider ) : void

Private Methods

Method Description
Get ( object obj, string name ) : string
GetProperty ( string propertyName ) : string

Allow special syntax to retrieve property values: ${property:PropertyName} ${property:PropertyName??DefaultValue} ${property:ContainerName/PropertyName} ${property:ContainerName/PropertyName??DefaultValue} A container is a Properties instance stored in the PropertyService. This is used by many AddIns to group all their properties into one container.

GetValue ( string propertyName, string customTags ) : string
StringParser ( ) : System

Method Details

Parse() public static method

public static Parse ( string input ) : string
input string
return string

Parse() public static method

Expands ${xyz} style property values.
public static Parse ( string input, string customTags ) : string
input string
customTags string
return string

Parse() public static method

Parses an array and replaces the elements in the existing array.
public static Parse ( string inputs ) : void
inputs string
return void

RegisterStringTagProvider() public static method

public static RegisterStringTagProvider ( IStringTagProvider tagProvider ) : void
tagProvider IStringTagProvider
return void