Skip to content

swvincent/CASRegistryUtil

Repository files navigation

CAS Registry Utility

CAS Registry Numbers (CAS Numbers) are unique numerical identifiers assigned to chemical substances. They are managed by the Chemical Abstracts Service.

An example is 58-08-2, which is the CAS Number for Caffeine.

This package contains a class to validate CAS Numbers by ensuring they're in the correct format and that they contains a valid check digit.

Usage

// Get Simple true/false result
bool result = CasNumberValidator.IsValid("58-08-2");

// Get Validation Result object which contains
// a message with details if validation failed
IValidationResult = CasNumberValidator.Validate("58-08-2");

License

This project is licensed under the MIT License - see the LICENSE file for details

References

About

CAS Registry Utility

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages