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