Table of Contents

Class Stem

Namespace
Cuemon.Text
Assembly
Cuemon.Core.dll

Provides a way to support assigning a stem to a value.

public sealed class Stem
Inheritance
Object
Stem

Constructors

Stem(String)

Initializes a new instance of the Stem class.

public Stem(string value)

Parameters

value String

The stem to apply affixes.

Properties

Value

Gets the value of this instance.

public string Value { get; }

Property Value

String

The value of this instance.

Methods

AttachPrefix(String)

Attaches the specified prefix to the stem of this instance.

public Stem AttachPrefix(string prefix)

Parameters

prefix String

The affix that must appear before the stem of this instance.

Returns

Stem

A string where the specified prefix appears before the stem of this instance.

Remarks

This method attaches the prefix to the stem only if not already part of the beginning.

AttachPrefix(String, Func<String, Boolean>)

Attaches the specified prefix to the stem of this instance.

public Stem AttachPrefix(string prefix, Func<string, bool> condition)

Parameters

prefix String

The affix that must appear before the stem of this instance.

condition Func<String, Boolean>

The function delegate that provides a condition for when to attach the prefix to the stem.

Returns

Stem

A string where the specified prefix appears before the stem of this instance.

AttachSuffix(String)

Attaches the specified suffix to the stem of this instance.

public Stem AttachSuffix(string suffix)

Parameters

suffix String

The affix that must appear after the stem of this instance.

Returns

Stem

A string where the specified suffix appears after the stem of this instance.

Remarks

This method attaches the suffix to the stem only if not already part of the ending.

AttachSuffix(String, Func<String, Boolean>)

Attaches the specified suffix to the stem of this instance.

public Stem AttachSuffix(string suffix, Func<string, bool> condition)

Parameters

suffix String

The affix that must appear after the stem of this instance.

condition Func<String, Boolean>

The function delegate that provides a condition for when to attach the suffix to the stem.

Returns

Stem

A string where the specified suffix appears after the stem of this instance.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

String

A string that represents the current object.

Operators

Implicit(Stem to String)

Performs an implicit conversion from Stem to System.String.

public static implicit operator string (Stem stem)

Parameters

stem Stem

The Stem to convert.

Returns

String

A System.String that is equivalent to stem.

Implicit(String to Stem)

Performs an implicit conversion from System.String to Stem.

public static implicit operator Stem(string stem)

Parameters

stem String

The System.String to convert.

Returns

Stem

A Stem that is equivalent to stem.