public static byte[] GetBytes(
     PgpWordAggregation pgpWordAggregation,
     string separator = PgpWordAggregationBuilder.DefaultSeparator)
 => new PgpWordAggregationParser(separator)
 .Parse(pgpWordAggregation);
Пример #2
0
 public byte[] Parse(PgpWordAggregation pgpWordAggregation)
 => pgpWordAggregation
 .Value
 .Split(_separator.ToCharArray())
 .Aggregate(new List <byte>(), AggregateWordToByteArray)
 .ToArray();
 public static int ToInt16(
     PgpWordAggregation pgpWordAggregation,
     string separator = PgpWordAggregationBuilder.DefaultSeparator)
 => GetBytes(pgpWordAggregation, separator)
 .ReverseForLittleEndianArchitecture()
 .ToInt16();