Show / Hide Table of Contents

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 Source

StringFixups(StringFixups.StringFixup[])

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

Declaration
public StringFixups(StringFixups.StringFixup[] pafixupPair)
Parameters
Type Name Description
StringFixups.StringFixup[] pafixupPair

The array of StringFixup string pairs to apply to string fed into the ApplyFixups method

Methods

| Improve this Doc View Source

ApplyFixups(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.String pstrInputString

String to transform by applying the StringFixup array that was passed into the constructor

Returns
Type Description
System.String

The pstrInputString, transformed by applying each StringFixup to it in turn

  • Improve this Doc
  • View Source
Back to top Generated by DocFX