Skip to content

Commit

Permalink
Switched to a primary constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
MeltyPlayer committed Nov 24, 2024
1 parent 90b97d5 commit 1ac98f4
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Schema/src/binary/attributes/align/AlignEndAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 1ac98f4

Please sign in to comment.