diff --git a/csharp/MultiFormatReader.cs b/csharp/MultiFormatReader.cs index 0fed7777f..9c0f09ca1 100755 --- a/csharp/MultiFormatReader.cs +++ b/csharp/MultiFormatReader.cs @@ -14,7 +14,8 @@ using System; using System.Collections; -using com.google.zxing.qrcode; +using com.google.zxing.qrcode; +using com.google.zxing.oned; namespace com.google.zxing { @@ -106,7 +107,7 @@ namespace com.google.zxing if (addOneDReader && !tryHarder) { - //readers.Add(new MultiFormatOneDReader(hints)); + readers.Add(new MultiFormatOneDReader(hints)); } if (possibleFormats.Contains(BarcodeFormat.QR_CODE)) @@ -114,13 +115,13 @@ namespace com.google.zxing readers.Add(new QRCodeReader()); } // TODO re-enable once Data Matrix is ready - //if (possibleFormats.contains(BarcodeFormat.DATAMATRIX)) { - // readers.addElement(new DataMatrixReader()); - //} + if (possibleFormats.Contains(BarcodeFormat.DATAMATRIX)) { + //readers.Add(new DataMatrixReader()); + } // At end in "try harder" mode if (addOneDReader && tryHarder) { - //readers.Add(new MultiFormatOneDReader(hints)); + readers.Add(new MultiFormatOneDReader(hints)); } } diff --git a/csharp/oned/MultiFormatOneDReader.cs b/csharp/oned/MultiFormatOneDReader.cs index 9bb314b9b..b42143596 100755 --- a/csharp/oned/MultiFormatOneDReader.cs +++ b/csharp/oned/MultiFormatOneDReader.cs @@ -23,6 +23,7 @@ namespace com.google.zxing.oned public sealed class MultiFormatOneDReader : AbstractOneDReader { private System.Collections.ArrayList readers; + public MultiFormatOneDReader(System.Collections.Hashtable hints) { System.Collections.ArrayList possibleFormats = hints == null ? null : (System.Collections.ArrayList) hints[DecodeHintType.POSSIBLE_FORMATS]; diff --git a/csharp/zxing.csproj b/csharp/zxing.csproj index 364b718b6..3bebda4c6 100755 --- a/csharp/zxing.csproj +++ b/csharp/zxing.csproj @@ -121,9 +121,6 @@ - - -