C# Class WizardWrx.Core.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.
Mostrar archivo Open project: txwizard/WizardWrx_NET_API

Public Methods

Method Description
ApplyFixups ( string pstrInputString ) : string

Call this method to apply the StringFixup array that was passed into the constructor.

StringFixups ( Array pafixupPair ) : System

The public constructor is overloaded, to guarantee that instances are properly initialized.

Private Methods

Method Description
StringFixups ( ) : System

The default constructor is marked as private to force all instances to be initialized.

ValidateFixupPairArray ( Array pafixupPairs ) : StringFixup[]

Unless sumething is wrong with it, return the input pafixupPairs to the calling routine.

Method Details

ApplyFixups() public method

Call this method to apply the StringFixup array that was passed into the constructor.
public ApplyFixups ( string pstrInputString ) : string
pstrInputString string /// String to transform by applying the StringFixup array that was passed into /// the constructor ///
return string

StringFixups() public method

The public constructor is overloaded, to guarantee that instances are properly initialized.
public StringFixups ( Array pafixupPair ) : System
pafixupPair Array /// The array of StringFixup string pairs to apply to string fed into /// the ApplyFixups method ///
return System