public string ToHexadecimalString() { return(IEnumerableExtensions.BytesSequenceToHexadecimalString(IListExtensions.Range <byte>((IList <byte>) this.Buffer, this.StartOffset, this.Length))); }
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)"")); }