Files
UnrealEngineUWP/Engine/Source/Programs/Shared/EpicGames.Core/BinaryArchiveAttributes.cs
Ben Marsh 075162706e EpicGames.Core: Fix static analysis warnings.
#preflight 633b4ae16b10157eac6f1f15

[CL 22314153 by Ben Marsh in ue5-main branch]
2022-10-03 17:01:13 -04:00

56 lines
1.3 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System;
namespace EpicGames.Core
{
/// <summary>
/// Instructs the serializer to ignore this property during serialization
/// </summary>
[AttributeUsage(AttributeTargets.Property)]
public sealed class BinaryIgnoreAttribute : Attribute
{
/// <summary>
/// Constructor
/// </summary>
public BinaryIgnoreAttribute()
{
}
}
/// <summary>
/// Marks this class as supporting binary serialization. Used to automatically register types via BinaryArchive.RegisterTypes().
/// </summary>
[AttributeUsage(AttributeTargets.Class)]
public sealed class BinarySerializableAttribute : Attribute
{
/// <summary>
/// Constructor
/// </summary>
public BinarySerializableAttribute()
{
}
}
/// <summary>
/// Instructs the serializer to use a specific converter for this property or class
/// </summary>
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Class)]
public sealed class BinaryConverterAttribute : Attribute
{
/// <summary>
/// The serializer type
/// </summary>
public Type Type { get; }
/// <summary>
/// Constructor
/// </summary>
/// <param name="type">The serializer type</param>
public BinaryConverterAttribute(Type type)
{
Type = type;
}
}
}