DerStringBase.cs 417 B

12345678910111213141516171819202122232425
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. namespace Org.BouncyCastle.Asn1
  3. {
  4. public abstract class DerStringBase
  5. : Asn1Object, IAsn1String
  6. {
  7. protected DerStringBase()
  8. {
  9. }
  10. public abstract string GetString();
  11. public override string ToString()
  12. {
  13. return GetString();
  14. }
  15. protected override int Asn1GetHashCode()
  16. {
  17. return GetString().GetHashCode();
  18. }
  19. }
  20. }
  21. #endif