X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem%2FSystem.Net.Mail%2FAlternateView.cs;h=dce6729d75ae1b8bcd869d895256bc8d84ececa0;hb=b7461c8e10acd19aa25d0ff7946719b19fad0157;hp=1dff08e1d0a2ff29e3e2fd819bf2cdd456752e02;hpb=096265478e6e4145c90250a5bf78c0c179ee50af;p=mono.git diff --git a/mcs/class/System/System.Net.Mail/AlternateView.cs b/mcs/class/System/System.Net.Mail/AlternateView.cs index 1dff08e1d0a..dce6729d75a 100644 --- a/mcs/class/System/System.Net.Mail/AlternateView.cs +++ b/mcs/class/System/System.Net.Mail/AlternateView.cs @@ -45,42 +45,36 @@ namespace System.Net.Mail { #region Constructors - [MonoTODO] public AlternateView (string fileName) : base (fileName) { if (fileName == null) throw new ArgumentNullException (); } - [MonoTODO] public AlternateView (string fileName, ContentType contentType) : base (fileName, contentType) { if (fileName == null) throw new ArgumentNullException (); } - [MonoTODO] public AlternateView (string fileName, string mediaType) : base (fileName, mediaType) { if (fileName == null) throw new ArgumentNullException (); } - [MonoTODO] public AlternateView (Stream contentStream) : base (contentStream) { if (contentStream == null) throw new ArgumentNullException (); } - [MonoTODO] public AlternateView (Stream contentStream, string mediaType) : base (contentStream, mediaType) { if (contentStream == null) throw new ArgumentNullException (); } - [MonoTODO] public AlternateView (Stream contentStream, ContentType contentType) : base (contentStream, contentType) { if (contentStream == null) @@ -104,7 +98,6 @@ namespace System.Net.Mail { #region Methods - [MonoTODO] public static AlternateView CreateAlternateViewFromString (string content) { if (content == null) @@ -113,7 +106,6 @@ namespace System.Net.Mail { return new AlternateView (ms); } - [MonoTODO] public static AlternateView CreateAlternateViewFromString (string content, ContentType contentType) { if (content == null) @@ -122,7 +114,6 @@ namespace System.Net.Mail { return new AlternateView (ms, contentType); } - [MonoTODO] public static AlternateView CreateAlternateViewFromString (string content, Encoding encoding, string mediaType) { if (content == null) @@ -131,9 +122,11 @@ namespace System.Net.Mail { return new AlternateView (ms, mediaType); } - [MonoTODO] protected override void Dispose (bool disposing) { + if (disposing) + foreach (LinkedResource lr in linkedResources) + lr.Dispose (); base.Dispose (disposing); }