C# Class Framework.Core.Helpers.TransformationRule

Specified word transformation rule (regular expression pattern + replacment rule).
Show file Open project: coreframework/Core-Framework

Public Methods

Method Description
Apply ( String word ) : String

Applies rule to word.

TransformationRule ( String pattern, String replacement ) : System

Initializes a new instance of the TransformationRule class.

Method Details

Apply() public method

Applies rule to word.
public Apply ( String word ) : String
word String The word to transform.
return String

TransformationRule() public method

Initializes a new instance of the TransformationRule class.
public TransformationRule ( String pattern, String replacement ) : System
pattern String The pattern.
replacement String The replacement.
return System