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); } }