//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright 2011 Xamarin Inc
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
[Serializable]
[ComVisible (true)]
[MonoLimitation ("Serialization format not compatible with .NET")]
+ [StructLayout (LayoutKind.Sequential)]
public sealed class StringBuilder : ISerializable
{
private int _length;
return this;
}
-#if NET_4_0
+#if NET_4_0 || MOONLIGHT || MOBILE
public StringBuilder Clear ()
{
- _length = 0;
+ Length = 0;
return this;
}
#endif