Bug 1910 - Missing methods in the System libraries
Summary: Missing methods in the System libraries
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: BCL Class Libraries ()
Version: 2.0
Hardware: PC Windows
: Low enhancement
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-11-07 04:50 UTC by marcel
Modified: 2013-05-13 15:46 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description marcel 2011-11-07 04:50:05 UTC
I found some bugs in the newest Mono for Android Beta.

1. The "BinaryWriter.Dispose()" method is private. This should be an easy fix.

2. An IntPtr can't be added with an int or other IntPtr (operator+(), etc.)

Kind Regards
Comment 1 Atsushi Eno 2011-11-11 23:57:54 UTC
Hi,

First of all, our core libraries for mobile are mostly based on CoreCLR-based (Silverlight's) class library profile. So they are generally compared to Silverlight. Then...

1. While it is possible to make a change, this is not a bug. BinaryWriter.Dispose() is public only after Slverlight version 4 or .NET 4.0 and our mobile codebase is largely from Silverlight 3.5 era. The "private" BinaryWriter.Dispose() is rather an explicit interface implementation which means the type works as IDisposable (otherwise our class library itself does not build).
http://msdn.microsoft.com/en-us/library/dd383502
http://msdn.microsoft.com/en-us/library/dd383502%28v=VS.95%29

2. IntPtr.Addition operator is not available in Silverlight profile either. It is available only in .NET 4.0 or later. We may move forward to change some build profiles in the future, but not right now.
http://msdn.microsoft.com/en-us/library/system.intptr.op_addition.aspx
Comment 2 Miguel de Icaza [MSFT] 2013-05-13 15:46:31 UTC
new API changes are available on the beta.