Skip to content

Commit e64b253

Browse files
committed
Add GetBytes() extension to barcodes
DEVSIX-1845
1 parent cbbdf9b commit e64b253

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

itext/itext.barcodes/itext/barcodes/BarcodesExtensions.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ public static TValue Put<TKey, TValue>(this IDictionary<TKey, TValue> col, TKey
7878
col[key] = value;
7979
return oldVal;
8080
}
81+
82+
public static byte[] GetBytes(this String str) {
83+
return System.Text.Encoding.UTF8.GetBytes(str);
84+
}
8185

8286
public static Assembly GetAssembly(this Type type) {
8387
#if !NETSTANDARD1_6

0 commit comments

Comments
 (0)