This project is read-only.

Encoding static methods

Apr 13, 2016 at 5:30 PM
Is there a good reason that the encode method is not static?
Why for example must I do the following:
var encoder = new  Gma.QrCodeNet.Encoding.QrEncoder(Gma.QrCodeNet.Encoding.ErrorCorrectionLevel.L);
qr = encoder.Encode(value)
instead of
qr = Gma.QrCodeNet.Encoding.QrEncoder.Encode(Gma.QrCodeNet.Encoding.ErrorCorrectionLevel.L, value);
or even have the error correction default to something so I can do this:
qr = Gma.QrCodeNet.Encoding.QrEncoder.Encode(value);