Added sour generator for all kinds of structs

This commit is contained in:
tsommer committed 2024-05-05 12:20:33 +02:00
1 parent 4b67318bdf
commit 6290a4f0e4
7 files changed
+173

No files matched your search

@@ -9,4 +9,8 @@
<WarningsAsErrors>CS8600;CS8602;CS8603</WarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\CSV Metrics Logger Generator\CSV Metrics Logger Generator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
</ItemGroup>
</Project>
+4
View File
@@ -0,0 +1,4 @@
namespace CSV_Metrics_Logger;
[AttributeUsage(AttributeTargets.Struct)]
public sealed class CSVRecordAttribute : Attribute;
+10
View File
@@ -0,0 +1,10 @@
namespace CSV_Metrics_Logger;
public interface IConvertToCSV
{
public uint GetCSVColumnCount();
public IList<string> GetCSVHeaders();
public IList<string> ConvertToCSVDataLine();
}