예제 #1
0
 public static PacketReader GetItem(this PacketReader reader, IEnumerable <string> keys, bool nothrow = false)
 {
     ThrowIfArgumentError(reader);
     if (keys == null)
     {
         throw new ArgumentNullException(nameof(keys));
     }
     return(reader.GetReader(keys, nothrow));
 }
예제 #2
0
 public static PacketReader GetItem(this PacketReader reader, string key, bool nothrow = false)
 {
     ThrowIfArgumentError(key);
     ThrowIfArgumentError(reader);
     return(reader.GetReader(key, nothrow));
 }