Beispiel #1
0
 public string ToHexadecimalString()
 {
     return(IEnumerableExtensions.BytesSequenceToHexadecimalString(IListExtensions.Range <byte>((IList <byte>) this.Buffer, this.StartOffset, this.Length)));
 }
Beispiel #2
0
 public override sealed string ToString()
 {
     return(string.Format((IFormatProvider)CultureInfo.InvariantCulture, "{0} bytes: {1}{2}", (object)this.Length, (object)IEnumerableExtensions.BytesSequenceToHexadecimalString(IListExtensions.Range <byte>((IList <byte>) this.Buffer, this.StartOffset, Math.Min(this.Length, 10))), this.Length > 10 ? (object)"..." : (object)""));
 }