TypeModifier<T>

public sealed class TypeModifier<T> : ITypeModifier<T>
Basic implementation of the generic ITypeModifier interface.
TType constraint.

Constructors

TypeModifier

#
Create a new type modifier.
public TypeModifier(
name,
Modifier name.
info,
Modifier description.
icon,
Modifier icon.
Func<Pear<T>, Pear<T>>
func
Modifier functionality.
)

Properties

Icon

#
Gets the icon associated with this modifier.
public IIcon Icon { get; }
Icon

Info

#
Gets information about this modifier.
public string Info { get; }
Info

Name

#
Gets the name of this modifier.
public string Name { get; }
Name

Methods

Modify

#
Modify an actual pear.
public IPear Modify(
pear
Pear to modify.
)
Modified pair.
Modify

Modify

#
Modify an actual pear.
public Pear<T> Modify(
Pear<T>
pear
Pear to modify.
)
Modified pear.
Modify