From 26e956a88859c2acd47d0c006ace832c11cd1df0 Mon Sep 17 00:00:00 2001 From: Terry Burton Date: Thu, 4 Apr 2024 16:03:33 +0100 Subject: [PATCH] dotnet: Align {get,set}sym to use Symbology enum --- src/dotnet-lib/GS1Encoder.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dotnet-lib/GS1Encoder.cs b/src/dotnet-lib/GS1Encoder.cs index 3f3975c..c10c059 100644 --- a/src/dotnet-lib/GS1Encoder.cs +++ b/src/dotnet-lib/GS1Encoder.cs @@ -292,15 +292,15 @@ public string Version /// - gs1_encoder_setSym() /// /// - public int Sym + public Symbology Sym { get { - return gs1_encoder_getSym(ctx); + return (Symbology)gs1_encoder_getSym(ctx); } set { - if (!gs1_encoder_setSym(ctx, value)) + if (!gs1_encoder_setSym(ctx, (int)value)) throw new GS1EncoderParameterException(ErrMsg); } }