internal LicenseHelper(LicenseType type) { _licenseType = type; _codeLength = 8; var codeLength = type.GetType().GetField(type.ToString()).GetCustomAttribute<CodeLengthAttribute>(); if (codeLength != null) _codeLength = codeLength.Length; _cacheCodes = new List<string>(); }
internal LicenseHelper(LicenseType type) { _licenseType = type; _codeLength = 8; var codeLength = type.GetType().GetField(type.ToString()).GetCustomAttribute <CodeLengthAttribute>(); if (codeLength != null) { _codeLength = codeLength.Length; } _cacheCodes = new List <string>(); }