From 1ac98f48fb8c381a72add3651862c42817275e7d Mon Sep 17 00:00:00 2001 From: MeltyPlayer Date: Sun, 24 Nov 2024 15:45:49 -0600 Subject: [PATCH] Switched to a primary constructor. --- .../src/binary/attributes/align/AlignEndAttribute.cs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Schema/src/binary/attributes/align/AlignEndAttribute.cs b/Schema/src/binary/attributes/align/AlignEndAttribute.cs index cbdf3c4..54eb359 100644 --- a/Schema/src/binary/attributes/align/AlignEndAttribute.cs +++ b/Schema/src/binary/attributes/align/AlignEndAttribute.cs @@ -4,12 +4,7 @@ namespace schema.binary.attributes; [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)] -public class AlignEndAttribute : Attribute { - public AlignEndAttribute(uint align) { - this.Method = AlignSourceType.CONST; - this.ConstAlign = align; - } - - public AlignSourceType Method { get; } - public uint ConstAlign { get; } +public class AlignEndAttribute(uint align) : Attribute { + public AlignSourceType Method => AlignSourceType.CONST; + public uint ConstAlign { get; } = align; } \ No newline at end of file