diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-10-18 16:13:07 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-10-18 16:13:07 +0700 |
commit | f0c658a6d112912f819dced69348573f2a529c05 (patch) | |
tree | 6bf59e150efe6cc3c2f941df7a62a0deb7341dec /crypto/src/util/Strings.cs | |
parent | No SerializableAttribute in PCL (diff) | |
download | BouncyCastle.NET-ed25519-f0c658a6d112912f819dced69348573f2a529c05.tar.xz |
PCL: Various non-IO changes
Diffstat (limited to 'crypto/src/util/Strings.cs')
-rw-r--r-- | crypto/src/util/Strings.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/src/util/Strings.cs b/crypto/src/util/Strings.cs index a6080f427..3937a087f 100644 --- a/crypto/src/util/Strings.cs +++ b/crypto/src/util/Strings.cs @@ -52,7 +52,7 @@ namespace Org.BouncyCastle.Utilities public static string FromAsciiByteArray( byte[] bytes) { -#if SILVERLIGHT +#if SILVERLIGHT || PORTABLE // TODO Check for non-ASCII bytes in input? return Encoding.UTF8.GetString(bytes, 0, bytes.Length); #else @@ -63,7 +63,7 @@ namespace Org.BouncyCastle.Utilities public static byte[] ToAsciiByteArray( char[] cs) { -#if SILVERLIGHT +#if SILVERLIGHT || PORTABLE // TODO Check for non-ASCII characters in input? return Encoding.UTF8.GetBytes(cs); #else @@ -74,7 +74,7 @@ namespace Org.BouncyCastle.Utilities public static byte[] ToAsciiByteArray( string s) { -#if SILVERLIGHT +#if SILVERLIGHT || PORTABLE // TODO Check for non-ASCII characters in input? return Encoding.UTF8.GetBytes(s); #else |