Changeset 2585 for branches/eraser6/XmlTaskLists/Eraser.DefaultPlugins/ErasureTargets/FolderErasureTarget.cs
- Timestamp:
- 3/30/2012 6:12:31 AM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/XmlTaskLists/Eraser.DefaultPlugins/ErasureTargets/FolderErasureTarget.cs
r2584 r2585 26 26 27 27 using System.Text.RegularExpressions; 28 using System.Runtime.Serialization; 29 using System.Runtime.InteropServices; 28 30 using System.Xml; 29 31 using System.Xml.Serialization; 30 using System. Runtime.InteropServices;32 using System.Security.Permissions; 31 33 using System.IO; 32 using System.Globalization;33 34 34 35 using Eraser.Util; … … 46 47 { 47 48 #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 48 66 public override void ReadXml(XmlReader reader) 49 67 {
Note: See TracChangeset
for help on using the changeset viewer.
