You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rename ConvertAlphaNumericToNumeric to AlphaNumericToNumeric
Updated method name for clarity and consistency across the codebase.
Adjusted all references in the code, tests, README, and CHANGELOG to reflect the new method name.
Resolves: No entry
Copy file name to clipboardexpand all lines: README.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -212,11 +212,11 @@ namespace Example4
212
212
}
213
213
```
214
214
215
-
## Validate ISIN with LuhnDotNet and ConvertAlphaNumericToNumeric
215
+
## Validate ISIN with LuhnDotNet and AlphaNumericToNumeric
216
216
217
-
The `LuhnDotNet` library can be used in combination with the `ConvertAlphaNumericToNumeric` method to validate an International Securities Identification Number (ISIN). An ISIN uniquely identifies a security, such as stocks, bonds or derivatives. It is a 12-character alphanumeric code.
217
+
The `LuhnDotNet` library can be used in combination with the `AlphaNumericToNumeric` method to validate an International Securities Identification Number (ISIN). An ISIN uniquely identifies a security, such as stocks, bonds or derivatives. It is a 12-character alphanumeric code.
218
218
219
-
The `ConvertAlphaNumericToNumeric` method is used to convert the alphanumeric ISIN to a numeric string, where each letter in the input string is replaced by its decimal ASCII value minus 55. This numeric string can then be validated using the `Luhn.IsValid` method.
219
+
The `AlphaNumericToNumeric` method is used to convert the alphanumeric ISIN to a numeric string, where each letter in the input string is replaced by its decimal ASCII value minus 55. This numeric string can then be validated using the `Luhn.IsValid` method.
220
220
221
221
Here is an example of how to use these methods to validate an ISIN:
Console.WriteLine($"The ISIN {isin} is valid: {isValid}");
236
236
}
237
237
}
238
238
}
239
239
```
240
-
## Compute ISIN Check Digit with LuhnDotNet and ConvertAlphaNumericToNumeric
240
+
## Compute ISIN Check Digit with LuhnDotNet and AlphaNumericToNumeric
241
241
242
-
The `LuhnDotNet` library provides the `ComputeLuhnCheckDigit` method which can be used to compute the check digit of a numeric string according to the Luhn algorithm. When dealing with an International Securities Identification Number (ISIN), which is a 12-character alphanumeric code, we first need to convert the alphanumeric ISIN to a numeric string. This can be achieved using the `ConvertAlphaNumericToNumeric` method.
242
+
The `LuhnDotNet` library provides the `ComputeLuhnCheckDigit` method which can be used to compute the check digit of a numeric string according to the Luhn algorithm. When dealing with an International Securities Identification Number (ISIN), which is a 12-character alphanumeric code, we first need to convert the alphanumeric ISIN to a numeric string. This can be achieved using the `AlphaNumericToNumeric` method.
243
243
244
244
Here is an example of how to compute the check digit of an ISIN:
0 commit comments