Class GenericFloatFormatter
- Namespace
- Game.Core.Localization
- Assembly
- Game.Core.dll
public class GenericFloatFormatter : INumberFormatter
- Inheritance
-
objectGenericFloatFormatter
- Implements
- Extension Methods
Constructors
GenericFloatFormatter(float, string)
public GenericFloatFormatter(float number, string format = "N1")
Parameters
numberfloatformatstring
Methods
Build(StringBuilder, ILocalizationResolver, ITextStyleProvider)
public void Build(StringBuilder builder, ILocalizationResolver resolver, ITextStyleProvider textStyle)
Parameters
builderStringBuilderresolverILocalizationResolvertextStyleITextStyleProvider
Equals(GenericFloatFormatter)
public bool Equals(GenericFloatFormatter other)
Parameters
otherGenericFloatFormatter
Returns
- bool
Equals(INumberFormatter)
public bool Equals(INumberFormatter other)
Parameters
otherINumberFormatter
Returns
- bool
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
- bool
GetHashCode()
public override int GetHashCode()
Returns
- int