From 6651eec8eccd0f2f79d1fe97889113cb054a5916 Mon Sep 17 00:00:00 2001 From: Rockford Lhotka Date: Fri, 16 Feb 2024 08:43:02 -0800 Subject: [PATCH] #2551 Remove obsolete serialization code --- .../ConcurrencyException.cs | 19 ------------------- .../DataNotFoundException.cs | 19 ------------------- .../UpdateFailureException.cs | 19 ------------------- 3 files changed, 57 deletions(-) diff --git a/Samples/ProjectTracker/ProjectTracker.Dal/ConcurrencyException.cs b/Samples/ProjectTracker/ProjectTracker.Dal/ConcurrencyException.cs index acd799fd5b..73abb0fac2 100644 --- a/Samples/ProjectTracker/ProjectTracker.Dal/ConcurrencyException.cs +++ b/Samples/ProjectTracker/ProjectTracker.Dal/ConcurrencyException.cs @@ -1,9 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using Csla.Serialization; -using System.Security.Permissions; namespace ProjectTracker.Dal { @@ -17,19 +12,5 @@ public ConcurrencyException(string message) public ConcurrencyException(string message, Exception innerException) : base(message, innerException) { } - - protected ConcurrencyException( - System.Runtime.Serialization.SerializationInfo info, - System.Runtime.Serialization.StreamingContext context) - : base(info, context) - { } - - [SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)] - [SecurityPermission(SecurityAction.Demand, Flags = SecurityPermissionFlag.SerializationFormatter)] - public override void GetObjectData( - System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) - { - base.GetObjectData(info, context); - } } } diff --git a/Samples/ProjectTracker/ProjectTracker.Dal/DataNotFoundException.cs b/Samples/ProjectTracker/ProjectTracker.Dal/DataNotFoundException.cs index 485eeb7247..a64ef8a12d 100644 --- a/Samples/ProjectTracker/ProjectTracker.Dal/DataNotFoundException.cs +++ b/Samples/ProjectTracker/ProjectTracker.Dal/DataNotFoundException.cs @@ -1,9 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using Csla.Serialization; -using System.Security.Permissions; namespace ProjectTracker.Dal { @@ -17,19 +12,5 @@ public DataNotFoundException(string message) public DataNotFoundException(string message, Exception innerException) : base(message, innerException) { } - - protected DataNotFoundException( - System.Runtime.Serialization.SerializationInfo info, - System.Runtime.Serialization.StreamingContext context) - : base(info, context) - { } - - [SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)] - [SecurityPermission(SecurityAction.Demand, Flags = SecurityPermissionFlag.SerializationFormatter)] - public override void GetObjectData( - System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) - { - base.GetObjectData(info, context); - } } } diff --git a/Samples/ProjectTracker/ProjectTracker.Dal/UpdateFailureException.cs b/Samples/ProjectTracker/ProjectTracker.Dal/UpdateFailureException.cs index a00fa98a90..307d50b343 100644 --- a/Samples/ProjectTracker/ProjectTracker.Dal/UpdateFailureException.cs +++ b/Samples/ProjectTracker/ProjectTracker.Dal/UpdateFailureException.cs @@ -1,9 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using Csla.Serialization; -using System.Security.Permissions; namespace ProjectTracker.Dal { @@ -17,19 +12,5 @@ public UpdateFailureException(string message) public UpdateFailureException(string message, Exception innerException) : base(message, innerException) { } - - protected UpdateFailureException( - System.Runtime.Serialization.SerializationInfo info, - System.Runtime.Serialization.StreamingContext context) - : base(info, context) - { } - - [SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)] - [SecurityPermission(SecurityAction.Demand, Flags = SecurityPermissionFlag.SerializationFormatter)] - public override void GetObjectData( - System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) - { - base.GetObjectData(info, context); - } } }