743 {
746 {
748 }
750 {
751 throw new AsnContentException();
752 }
758 int? num = null;
762 byte b =
byte.MaxValue;
766 while (
b2 == 0 && data.Length != 0)
767 {
768 byte?
b3 = GetNextState(data[0]);
770 {
771 if (!num.HasValue)
772 {
774 continue;
775 }
777 {
778 throw new AsnContentException();
779 }
781 }
782 else
783 {
785 }
786 }
788 {
789 switch (data[0])
790 {
791 case 44:
792 if (flag)
793 {
795 }
796 break;
797 default:
798 throw new AsnContentException();
799 case 46:
800 break;
801 }
802 data = data.Slice(1);
803 if (data.IsEmpty)
804 {
805 throw new AsnContentException();
806 }
808 {
809 throw new AsnContentException();
810 }
813 {
815 }
819 {
822 }
823 if (data.Length != 0)
824 {
825 byte?
b4 = GetNextState(data[0]);
827 {
828 throw new AsnContentException();
829 }
831 }
832 }
834 {
836 data = data.Slice(1);
838 {
841 }
842 else
843 {
845 {
846 43 => false,
847 45 => true,
848 _ =>
throw new AsnContentException(),
849 };
850 if (data.IsEmpty)
851 {
852 throw new AsnContentException();
853 }
856 if (data.Length != 0)
857 {
859 }
861 {
862 throw new AsnContentException();
863 }
866 {
868 }
870 }
871 }
872 if (!data.IsEmpty)
873 {
874 throw new AsnContentException();
875 }
876 if (flag)
877 {
879 {
881 }
883 {
885 }
886 }
889 if (!num.HasValue)
890 {
891 num = 0;
894 {
896 }
897 }
898 else if (!
num2.HasValue)
899 {
902 {
904 }
905 }
907 {
909 }
910 try
911 {
912 DateTimeOffset dateTimeOffset = (timeSpan.HasValue ?
new DateTimeOffset(
year, month, day, hour, num.Value,
num2.Value,
timeSpan.Value) :
new DateTimeOffset(
new DateTime(
year, month, day, hour, num.
Value,
num2.
Value)));
914 }
915 catch (Exception inner)
916 {
918 }
919 static byte? GetNextState(
byte octet)
920 {
922 {
923 case 43:
924 case 45:
925 case 90:
926 return 2;
927 case 44:
928 case 46:
929 return 1;
930 default:
931 return null;
932 }
933 }
934 }
static bool TryParse(ReadOnlySpan< byte > source, out bool value, out int bytesConsumed, char standardFormat='\0')
static string ContentException_InvalidUnderCerOrDer_TryBer
static string ContentException_DefaultMessage