//
// PacketListIndexAttribute.cs
//
// Copyright (c) František Boháček. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace NosSmooth.PacketSerializer.Abstractions.Attributes;
///
/// Attribute for marking property as a packet list.
///
[AttributeUsage(AttributeTargets.Parameter)]
public class PacketListIndexAttribute : PacketIndexAttribute
{
///
/// Initializes a new instance of the class.
///
/// The position in the packet.
public PacketListIndexAttribute(ushort index)
: base(index)
{
}
///
/// Gets or sets the separator of the items in the array.
///
public char ListSeparator { get; set; } = '|';
///
/// Gets or sets the length of the array.
///
public uint Length { get; set; } = 0;
}