Making sure mono_marshal_free is used instead of g_free in mono_string_builder_to_utf8
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / ErrorWrapper.cs
index c4b6bf096953e26323d092bbe303b36fae1c18c7..4bf947af4bce6a827bef0b3ab5da7834cd8a12cf 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+#if !FULL_AOT_RUNTIME
 using System;
 
 namespace System.Runtime.InteropServices
 {
+       [Serializable]
+       [ComVisible (true)]
        public sealed class ErrorWrapper
        {
                int errorCode;
@@ -58,3 +61,4 @@ namespace System.Runtime.InteropServices
                }
        }
 }
+#endif