// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
-
using System.Globalization;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.ConstrainedExecution;
using System.Security.Cryptography;
using System.Security.Permissions;
+#if NET_4_0
+using System.Runtime.ExceptionServices;
+#endif
namespace System.Security {
[MonoTODO ("work in progress - encryption is missing")]
- public sealed class SecureString : CriticalFinalizerObject, IDisposable {
+ public sealed class SecureString : IDisposable {
private const int BlockSize = 16;
private const int MaxSize = 65536;
}
}
+#if NET_4_0
+ [HandleProcessCorruptedStateExceptions]
+#endif
public void AppendChar (char c)
{
if (disposed)
length = 0;
}
+#if NET_4_0
+ [HandleProcessCorruptedStateExceptions]
+#endif
public void InsertAt (int index, char c)
{
if (disposed)
read_only = true;
}
+#if NET_4_0
+ [HandleProcessCorruptedStateExceptions]
+#endif
public void RemoveAt (int index)
{
if (disposed)
}
}
+#if NET_4_0
+ [HandleProcessCorruptedStateExceptions]
+#endif
public void SetAt (int index, char c)
{
if (disposed)
}
}
}
-
-#endif