Skip to content

Commit

Permalink
dotnet: Align {get,set}sym to use Symbology enum
Browse files Browse the repository at this point in the history
  • Loading branch information
terryburton committed Apr 4, 2024
1 parent 5af5beb commit 26e956a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dotnet-lib/GS1Encoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -292,15 +292,15 @@ public string Version
/// - gs1_encoder_setSym()
///
/// </summary>
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);
}
}
Expand Down

0 comments on commit 26e956a

Please sign in to comment.