Seperated out ParserEntryUnion

This commit is contained in:
Booklordofthedings 2024-08-03 16:28:02 +02:00
parent 0231bdc13a
commit c2940ad404
2 changed files with 11 additions and 8 deletions

View file

@ -5,12 +5,5 @@ using System;
struct ParserEntry struct ParserEntry
{ {
public bool IsBofaOrText = true; //True == Bofa, False == Text public bool IsBofaOrText = true; //True == Bofa, False == Text
public EntryUnion Data; public ParserEntryUnion Data;
[Union]
public struct EntryUnion
{
public Bofa Bofa;
public StringView Text;
}
} }

View file

@ -0,0 +1,10 @@
namespace Bofa.Parser;
using System;
[Union]
struct ParserEntryUnion
{
public Bofa Bofa;
public StringView Text;
}