Ignore:
Timestamp:
3/30/2012 6:12:31 AM (2 years ago)
Author:
lowjoel
Message:

Partially reverted r2583-r2584: We should not remove the normal binary serialization code, since RemoteExecutor? still depends on it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/XmlTaskLists/Eraser.DefaultPlugins/ErasureTargets/FolderErasureTarget.cs

    r2584 r2585  
    2626 
    2727using System.Text.RegularExpressions; 
     28using System.Runtime.Serialization; 
     29using System.Runtime.InteropServices; 
    2830using System.Xml; 
    2931using System.Xml.Serialization; 
    30 using System.Runtime.InteropServices; 
     32using System.Security.Permissions; 
    3133using System.IO; 
    32 using System.Globalization; 
    3334 
    3435using Eraser.Util; 
     
    4647    { 
    4748        #region Serialization code 
     49        protected FolderErasureTarget(SerializationInfo info, StreamingContext context) 
     50            : base(info, context) 
     51        { 
     52            IncludeMask = (string)info.GetValue("IncludeMask", typeof(string)); 
     53            ExcludeMask = (string)info.GetValue("ExcludeMask", typeof(string)); 
     54            DeleteIfEmpty = (bool)info.GetValue("DeleteIfEmpty", typeof(bool)); 
     55        } 
     56 
     57        [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] 
     58        public override void GetObjectData(SerializationInfo info, StreamingContext context) 
     59        { 
     60            base.GetObjectData(info, context); 
     61            info.AddValue("IncludeMask", IncludeMask); 
     62            info.AddValue("ExcludeMask", ExcludeMask); 
     63            info.AddValue("DeleteIfEmpty", DeleteIfEmpty); 
     64        } 
     65 
    4866        public override void ReadXml(XmlReader reader) 
    4967        { 
Note: See TracChangeset for help on using the changeset viewer.