Files
UnrealEngineUWP/Engine/Source/Programs/Shared/EpicGames.Core/BinaryArchiveAttributes.cs
Joe Kirchoff 2bc7227518 UnrealBuildTool: Clean up some intellisense suggestions, format documents, remove and sort usings, etc.
#rb trivial
#rnx

[CL 17059447 by Joe Kirchoff in ue5-main branch]
2021-08-04 16:49:28 -04:00

50 lines
1.1 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 class BinaryIgnoreAttribute : Attribute
{
public BinaryIgnoreAttribute()
{
}
}
/// <summary>
/// Marks this class as supporting binary serialization. Used to automatically register types via BinaryArchive.RegisterTypes().
/// </summary>
[AttributeUsage(AttributeTargets.Class)]
public class BinarySerializableAttribute : Attribute
{
public BinarySerializableAttribute()
{
}
}
/// <summary>
/// Instructs the serializer to use a specific converter for this property or class
/// </summary>
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Class)]
public 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)
{
this.Type = Type;
}
}
}