UselessAttribute.cs 368 B

123456789101112131415161718192021
  1. using System;
  2. using System.Collections.Generic;
  3. namespace STUN.Message.Attributes
  4. {
  5. /// <summary>
  6. /// 无法理解的属性
  7. /// </summary>
  8. public class UselessAttribute : IAttribute
  9. {
  10. public IEnumerable<byte> Bytes => _bytes;
  11. private byte[] _bytes = Array.Empty<byte>();
  12. public bool TryParse(byte[] bytes)
  13. {
  14. _bytes = bytes;
  15. return true;
  16. }
  17. }
  18. }