~ruther/NosSmooth

ref: 58b1e1aff9662048065b2c194d52eaeaba2d5ba7 NosSmooth/Packets/NosSmooth.PacketSerializer.Abstractions/Attributes/GenerateSerializerAttribute.cs -rw-r--r-- 1.1 KiB
58b1e1af — František Boháček fix(packets): implement IPacket in Sayi2Packet 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//
//  GenerateSerializerAttribute.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;

/// <summary>
/// Attribute for marking packets that should have their generator generated using Roslyn code generator.
/// </summary>
[AttributeUsage(AttributeTargets.Class)]
public class GenerateSerializerAttribute : Attribute
{
    /// <summary>
    /// Initializes a new instance of the <see cref="GenerateSerializerAttribute"/> class.
    /// </summary>
    /// <param name="allowInlineConverters">If true, the generator will try to generate parameter serializers for types like string, int, long so the type converter does not have to be called. This will increase performance, but the user will lose the ability to make custom serialization of these fields. Fields that may not be handled will still call the TypeConverter.</param>
    public GenerateSerializerAttribute(bool allowInlineConverters)
    {
    }
}
Do not follow this link