Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

makes GermanNumberToWordsConverterBase static #1456

Merged
merged 1 commit into from
Feb 24, 2024

Conversation

SimonCropp
Copy link
Collaborator

to avoid instantiating them for each inherited class

to avoid instantiating them for each inherited class
@SimonCropp SimonCropp enabled auto-merge (squash) February 24, 2024 09:09
readonly string[] MillionOrdinalPlural = ["{0}million", "{0}millionen"];
readonly string[] BillionOrdinalSingular = ["einmilliard", "einemilliarde"];
readonly string[] BillionOrdinalPlural = ["{0}milliard", "{0}milliarden"];
static string[] UnitsMap = ["null", "ein", "zwei", "drei", "vier", "fünf", "sechs", "sieben", "acht", "neun", "zehn", "elf", "zwölf", "dreizehn", "vierzehn", "fünfzehn", "sechzehn", "siebzehn", "achtzehn", "neunzehn"];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't be static readonly?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@SimonCropp SimonCropp merged commit d4b656d into main Feb 24, 2024
3 checks passed
@SimonCropp SimonCropp deleted the makes-GermanNumberToWordsConverterBase-static branch February 24, 2024 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants