When retrieving attributes, we have a number of strongly typed extension methods for retrieving the attributes as specific types. Currently, we have GetInteger() and GetDouble(). But, in practice, most of the places our clients are using GetDouble() would be better suited by GetDecimal(). To facilitate this, introduce a new GetDecimal() extension method. We can keep the GetDouble() in case it meets client needs, though we will generally expect GetDecimal() to be preferred.
When retrieving attributes, we have a number of strongly typed extension methods for retrieving the attributes as specific types. Currently, we have
GetInteger()andGetDouble(). But, in practice, most of the places our clients are usingGetDouble()would be better suited byGetDecimal(). To facilitate this, introduce a newGetDecimal()extension method. We can keep theGetDouble()in case it meets client needs, though we will generally expectGetDecimal()to be preferred.