String.Split(char[],int,StringSplitOptions) should remove empty entries while
[mono.git] / mcs / class / corlib / System / ApplicationIdentity.cs
index e69c19ff66ca4cbd9f047d44b208ef0bb5523fe9..b0fda9a20db292b0aa95742db35180105d7e187c 100644 (file)
 
 #if NET_2_0
 
+using System.Runtime.InteropServices;
+using System.Runtime.Serialization;
+
 namespace System {
 
-       public sealed class ApplicationIdentity {
+       [Serializable]
+       [ComVisible (false)]
+       public sealed class ApplicationIdentity: ISerializable {
 
                private string _fullName;
                private string _codeBase;
@@ -46,7 +51,9 @@ namespace System {
                                _fullName = applicationIdentityFullName;
                }
 
-               [MonoTODO ("URL but where does it comes from? manifest ?")]
+               //
+               // FIXME: "URL for deployment manifest", this message should be clearer!
+               // 
                public string CodeBase {
                        get { return _codeBase; }
                }
@@ -59,6 +66,13 @@ namespace System {
                {
                        return _fullName;
                }
+
+               [MonoTODO ("Missing serialization")]
+               void ISerializable.GetObjectData (SerializationInfo info, StreamingContext context)
+               {
+                       if (info == null)
+                               throw new ArgumentNullException ("info");
+               }
        }
 }