dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Security/Principal Wi


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Security/Principal WindowsIdentity.cs, 1.4, 1.5
Date: Thu, 21 Aug 2003 03:41:34 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/Principal
In directory subversions:/tmp/cvs-serv3755/runtime/System/Security/Principal

Modified Files:
        WindowsIdentity.cs 
Log Message:


Serialization support for "System.Security.Principal.WindowsIdentity".


Index: WindowsIdentity.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/Principal/WindowsIdentity.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** WindowsIdentity.cs  29 May 2003 03:12:58 -0000      1.4
--- WindowsIdentity.cs  21 Aug 2003 07:41:31 -0000      1.5
***************
*** 97,101 ****
                        }
  #if CONFIG_SERIALIZATION
-       [TODO]
        public WindowsIdentity(SerializationInfo info, StreamingContext context)
                        {
--- 97,100 ----
***************
*** 104,108 ****
                                        throw new ArgumentNullException("info");
                                }
!                               // TODO
                        }
  #endif
--- 103,113 ----
                                        throw new ArgumentNullException("info");
                                }
!                               userToken = (IntPtr)(info.GetValue
!                                       ("m_userToken", typeof(IntPtr)));
!                               name = info.GetString("m_name");
!                               type = info.GetString("m_type");
!                               acctType = (WindowsAccountType)(info.GetValue
!                                       ("m_acctType", 
typeof(WindowsAccountType)));
!                               isAuthenticated = 
info.GetBoolean("m_isAuthenticated");
                        }
  #endif
***************
*** 180,188 ****
  
        // Implement the ISerializable interface.
-       [TODO]
        void ISerializable.GetObjectData(SerializationInfo info,
                                                                         
StreamingContext context)
                        {
!                               // TODO
                        }
  
--- 185,201 ----
  
        // Implement the ISerializable interface.
        void ISerializable.GetObjectData(SerializationInfo info,
                                                                         
StreamingContext context)
                        {
!                               if(info == null)
!                               {
!                                       throw new ArgumentNullException("info");
!                               }
!                               info.AddValue("m_userToken", userToken, 
typeof(IntPtr));
!                               info.AddValue("m_name", name);
!                               info.AddValue("m_type", type);
!                               info.AddValue("m_acctType", acctType,
!                                                         
typeof(WindowsAccountType));
!                               info.AddValue("m_isAuthenticated", 
isAuthenticated);
                        }
  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]