Exemplo n.º 1
0
 /// <summary>
 /// Returns a new tag from the given data buffer.
 /// </summary>
 /// <param name="buffer">An array of unsigned bytes containing the tag data.</param>
 /// <returns>Returns a new tag from the given data buffer.</returns>
 public static Tag FromBuffer(byte[] buffer)
 {
     return(Tag.FromBuffer(buffer, 0, buffer.Length));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Determines if the specified tag is a list tag.
 /// </summary>
 /// <param name="tag">The tag to test.</param>
 /// <returns>Returns a value indicating if the specified tag is a list tag.</returns>
 public static bool IsListTag(Tag tag)
 {
     return(tag.GetType().IsGenericType&& tag.GetType().GetGenericTypeDefinition().IsAssignableFrom(typeof(TagList <>)));
 }