Class StringFixups
Instances of this class represent pairs of fixup strings to apply as replacement pairs to amend a string, such as the JSON response from a REST endpoint that motivated its creation.
Inheritance
System.Object
StringFixups
Namespace: WizardWrx.Core
Assembly: WizardWrx.Core.dll
Syntax
public class StringFixups : object
Constructors
| Improve this Doc View SourceStringFixups(StringFixups.StringFixup[])
The public constructor is overloaded, to guarantee that instances are properly initialized.
Declaration
public StringFixups(StringFixups.StringFixup[] pafixupPair)
Parameters
Type | Name | Description |
---|---|---|
String |
pafixupPair | The array of StringFixup string pairs to apply to string fed into the ApplyFixups method |
Methods
| Improve this Doc View SourceApplyFixups(String)
Call this method to apply the StringFixup array that was passed into the constructor.
Declaration
public string ApplyFixups(string pstrInputString)
Parameters
Type | Name | Description |
---|---|---|
System. |
pstrInputString | String to transform by applying the StringFixup array that was passed into the constructor |
Returns
Type | Description |
---|---|
System. |
The |