Class NameConverterBase
Base class for name converters.
public abstract class NameConverterBase : INameConversionProvider
- Inheritance
-
NameConverterBase
- Implements
- Derived
- Extension Methods
Methods
GetConverter(Pluralization)
Returns name converter for specific conversion type.
public abstract Func<string, string> GetConverter(Pluralization conversion)
Parameters
conversion
PluralizationConversion type.
Returns
NormalizeName(string)
Identify word in name to convert. Any text before and after word returned and prefix/suffix strings.
protected static NameConverterBase.NameParts NormalizeName(string name)
Parameters
name
stringName to convert.
Returns
- NameConverterBase.NameParts
Word to covert with optional suffix and prefix to add after convertsion.