diff --git a/Source/Csla.Analyzers/Csla.Analyzers/GlobalSuppressions.cs b/Source/Csla.Analyzers/Csla.Analyzers/GlobalSuppressions.cs index 3e3183d818..737c6a84f8 100644 --- a/Source/Csla.Analyzers/Csla.Analyzers/GlobalSuppressions.cs +++ b/Source/Csla.Analyzers/Csla.Analyzers/GlobalSuppressions.cs @@ -3,6 +3,4 @@ // Project-level suppressions either have no target or are given // a specific target and scoped to a namespace, type, member, etc. -using System.Diagnostics.CodeAnalysis; - [assembly: SuppressMessage("MicrosoftCodeAnalysisCorrectness", "RS1038:Compiler extensions should be implemented in assemblies with compiler-provided references", Justification = "")] diff --git a/Source/Csla.Analyzers/Csla.Analyzers/ManagedBackingFieldUsesNameof/EvaluateManagedBackingFieldsNameofAnalyzer.cs b/Source/Csla.Analyzers/Csla.Analyzers/ManagedBackingFieldUsesNameof/EvaluateManagedBackingFieldsNameofAnalyzer.cs index 78a8c6d94d..f33b5b5d73 100644 --- a/Source/Csla.Analyzers/Csla.Analyzers/ManagedBackingFieldUsesNameof/EvaluateManagedBackingFieldsNameofAnalyzer.cs +++ b/Source/Csla.Analyzers/Csla.Analyzers/ManagedBackingFieldUsesNameof/EvaluateManagedBackingFieldsNameofAnalyzer.cs @@ -3,7 +3,6 @@ using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Diagnostics; using System.Collections.Immutable; -using System.Reflection; using static Csla.Analyzers.Extensions.ITypeSymbolExtensions; namespace Csla.Analyzers.ManagedBackingFieldUsesNameof diff --git a/Source/Csla.Analyzers/Csla.Analyzers/ManagedBackingFieldUsesNameof/EvaluateManagedBackingFieldsNameofCodeFix.cs b/Source/Csla.Analyzers/Csla.Analyzers/ManagedBackingFieldUsesNameof/EvaluateManagedBackingFieldsNameofCodeFix.cs index 880c05d234..364b8dc84d 100644 --- a/Source/Csla.Analyzers/Csla.Analyzers/ManagedBackingFieldUsesNameof/EvaluateManagedBackingFieldsNameofCodeFix.cs +++ b/Source/Csla.Analyzers/Csla.Analyzers/ManagedBackingFieldUsesNameof/EvaluateManagedBackingFieldsNameofCodeFix.cs @@ -3,7 +3,6 @@ using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.CodeActions; -using Microsoft.CodeAnalysis.Editing; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp; diff --git a/Source/Csla.AspNetCore/ApplicationContextManagerHttpContext.cs b/Source/Csla.AspNetCore/ApplicationContextManagerHttpContext.cs index a6a85c295c..9f259a29d3 100644 --- a/Source/Csla.AspNetCore/ApplicationContextManagerHttpContext.cs +++ b/Source/Csla.AspNetCore/ApplicationContextManagerHttpContext.cs @@ -8,8 +8,6 @@ using Csla.Core; using Csla.Runtime; using Microsoft.AspNetCore.Http; -using System.Diagnostics.CodeAnalysis; -using System.Security.Claims; namespace Csla.AspNetCore { diff --git a/Source/Csla.AspNetCore/Blazor/ApplicationContextManagerBlazor.cs b/Source/Csla.AspNetCore/Blazor/ApplicationContextManagerBlazor.cs index 58bae04715..5fafb0dc76 100644 --- a/Source/Csla.AspNetCore/Blazor/ApplicationContextManagerBlazor.cs +++ b/Source/Csla.AspNetCore/Blazor/ApplicationContextManagerBlazor.cs @@ -6,13 +6,11 @@ // // Application context manager that uses HttpContextAccessor //----------------------------------------------------------------------- + using Csla.Core; using Csla.State; using Microsoft.AspNetCore.Components.Authorization; using Microsoft.AspNetCore.Http; -using System.Diagnostics.CodeAnalysis; -using System.Security.Claims; -using System.Security.Principal; namespace Csla.AspNetCore.Blazor { diff --git a/Source/Csla.AspNetCore/Blazor/ApplicationContextManagerInMemory.cs b/Source/Csla.AspNetCore/Blazor/ApplicationContextManagerInMemory.cs index 52b4dd352e..38c22e13cf 100644 --- a/Source/Csla.AspNetCore/Blazor/ApplicationContextManagerInMemory.cs +++ b/Source/Csla.AspNetCore/Blazor/ApplicationContextManagerInMemory.cs @@ -6,11 +6,10 @@ // // Application context manager that uses HttpContextAccessor //----------------------------------------------------------------------- + using Csla.Core; using Microsoft.AspNetCore.Components.Authorization; using Microsoft.AspNetCore.Http; -using System.Security.Claims; -using System.Security.Principal; namespace Csla.AspNetCore.Blazor { diff --git a/Source/Csla.AspNetCore/Blazor/State/SessionManager.cs b/Source/Csla.AspNetCore/Blazor/State/SessionManager.cs index 4d2cfae47f..53df63e914 100644 --- a/Source/Csla.AspNetCore/Blazor/State/SessionManager.cs +++ b/Source/Csla.AspNetCore/Blazor/State/SessionManager.cs @@ -6,7 +6,6 @@ // Manages all user session data //----------------------------------------------------------------------- -using System.Collections.Concurrent; using Csla.State; namespace Csla.Blazor.State diff --git a/Source/Csla.AspNetCore/Blazor/State/StateController.cs b/Source/Csla.AspNetCore/Blazor/State/StateController.cs index 89abb2f651..026bcca691 100644 --- a/Source/Csla.AspNetCore/Blazor/State/StateController.cs +++ b/Source/Csla.AspNetCore/Blazor/State/StateController.cs @@ -8,7 +8,6 @@ using Microsoft.AspNetCore.Mvc; using Csla.State; -using Csla.Security; using Csla.Blazor.State.Messages; using Csla.Serialization; diff --git a/Source/Csla.AspNetCore/Mvc/TagHelpers/CslaErrorsTagHelper.cs b/Source/Csla.AspNetCore/Mvc/TagHelpers/CslaErrorsTagHelper.cs index 4a36c24d5f..ab5f48a013 100644 --- a/Source/Csla.AspNetCore/Mvc/TagHelpers/CslaErrorsTagHelper.cs +++ b/Source/Csla.AspNetCore/Mvc/TagHelpers/CslaErrorsTagHelper.cs @@ -5,6 +5,7 @@ // // Razor tag helper //----------------------------------------------------------------------- + using Csla.Rules; using Microsoft.AspNetCore.Mvc.ViewFeatures; using Microsoft.AspNetCore.Razor.TagHelpers; diff --git a/Source/Csla.AspNetCore/Mvc/TagHelpers/CslaInformationTagHelper.cs b/Source/Csla.AspNetCore/Mvc/TagHelpers/CslaInformationTagHelper.cs index cea280a31c..59044eaa39 100644 --- a/Source/Csla.AspNetCore/Mvc/TagHelpers/CslaInformationTagHelper.cs +++ b/Source/Csla.AspNetCore/Mvc/TagHelpers/CslaInformationTagHelper.cs @@ -5,6 +5,7 @@ // // Razor tag helper //----------------------------------------------------------------------- + using Csla.Rules; using Microsoft.AspNetCore.Mvc.ViewFeatures; using Microsoft.AspNetCore.Razor.TagHelpers; diff --git a/Source/Csla.AspNetCore/Mvc/TagHelpers/CslaWarningsTagHelper.cs b/Source/Csla.AspNetCore/Mvc/TagHelpers/CslaWarningsTagHelper.cs index c7a9c0d8d4..5b3aa7c0bc 100644 --- a/Source/Csla.AspNetCore/Mvc/TagHelpers/CslaWarningsTagHelper.cs +++ b/Source/Csla.AspNetCore/Mvc/TagHelpers/CslaWarningsTagHelper.cs @@ -5,6 +5,7 @@ // // Razor tag helper //----------------------------------------------------------------------- + using Csla.Rules; using Microsoft.AspNetCore.Mvc.ViewFeatures; using Microsoft.AspNetCore.Razor.TagHelpers; diff --git a/Source/Csla.AspNetCore/PropertyInfo.cs b/Source/Csla.AspNetCore/PropertyInfo.cs index eab998f5bc..a3e7930776 100644 --- a/Source/Csla.AspNetCore/PropertyInfo.cs +++ b/Source/Csla.AspNetCore/PropertyInfo.cs @@ -6,7 +6,6 @@ // Exposes metastate for a property //----------------------------------------------------------------------- -using System.ComponentModel; using Csla.Rules; namespace Csla.AspNetCore diff --git a/Source/Csla.AspNetCore/RazorPages/PageModel.cs b/Source/Csla.AspNetCore/RazorPages/PageModel.cs index b24f6aedb7..9b92caa017 100644 --- a/Source/Csla.AspNetCore/RazorPages/PageModel.cs +++ b/Source/Csla.AspNetCore/RazorPages/PageModel.cs @@ -10,7 +10,6 @@ using Microsoft.AspNetCore.Mvc.RazorPages; using Csla.Rules; using Csla.Core; -using System.Diagnostics.CodeAnalysis; namespace Csla.AspNetCore.RazorPages { diff --git a/Source/Csla.Blazor.WebAssembly/ApplicationContextManager.cs b/Source/Csla.Blazor.WebAssembly/ApplicationContextManager.cs index 880257abfa..aca7368349 100644 --- a/Source/Csla.Blazor.WebAssembly/ApplicationContextManager.cs +++ b/Source/Csla.Blazor.WebAssembly/ApplicationContextManager.cs @@ -8,8 +8,6 @@ using Csla.Core; using Csla.State; using Microsoft.AspNetCore.Components.Authorization; -using System.Security.Claims; -using System.Security.Principal; namespace Csla.Blazor.WebAssembly { diff --git a/Source/Csla.Blazor.WebAssembly/Authentication/CslaAuthenticationStateProvider.cs b/Source/Csla.Blazor.WebAssembly/Authentication/CslaAuthenticationStateProvider.cs index 8b64f9aabf..2e13515140 100644 --- a/Source/Csla.Blazor.WebAssembly/Authentication/CslaAuthenticationStateProvider.cs +++ b/Source/Csla.Blazor.WebAssembly/Authentication/CslaAuthenticationStateProvider.cs @@ -5,7 +5,7 @@ // // Basic implementation of AuthenticationStateProvider //----------------------------------------------------------------------- -using System.Security.Claims; + using Microsoft.AspNetCore.Components.Authorization; namespace Csla.Blazor.Authentication diff --git a/Source/Csla.Blazor/CslaValidationMessages.razor.cs b/Source/Csla.Blazor/CslaValidationMessages.razor.cs index 3e887a9898..d0485ffe6d 100644 --- a/Source/Csla.Blazor/CslaValidationMessages.razor.cs +++ b/Source/Csla.Blazor/CslaValidationMessages.razor.cs @@ -2,7 +2,6 @@ using Csla.Rules; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Forms; -using System.Linq.Expressions; namespace Csla.Blazor { diff --git a/Source/Csla.Blazor/IPropertyInfo.cs b/Source/Csla.Blazor/IPropertyInfo.cs index c53f2b9eea..951192aa03 100644 --- a/Source/Csla.Blazor/IPropertyInfo.cs +++ b/Source/Csla.Blazor/IPropertyInfo.cs @@ -1,6 +1,4 @@ -using System.ComponentModel; - -namespace Csla.Blazor +namespace Csla.Blazor { /// /// Exposes metastate for a property. diff --git a/Source/Csla.Blazor/PropertyInfo.cs b/Source/Csla.Blazor/PropertyInfo.cs index 704317415a..928de08ab6 100644 --- a/Source/Csla.Blazor/PropertyInfo.cs +++ b/Source/Csla.Blazor/PropertyInfo.cs @@ -6,7 +6,6 @@ // Exposes metastate for a property //----------------------------------------------------------------------- -using System.ComponentModel; using Csla.Rules; namespace Csla.Blazor diff --git a/Source/Csla.Blazor/ViewModel.cs b/Source/Csla.Blazor/ViewModel.cs index 4f3727b216..3fbe98f280 100644 --- a/Source/Csla.Blazor/ViewModel.cs +++ b/Source/Csla.Blazor/ViewModel.cs @@ -6,10 +6,6 @@ // Base type for creating your own view model //----------------------------------------------------------------------- -using System.Collections.Specialized; -using System.ComponentModel; -using System.Linq.Expressions; -using System.Threading.Tasks; using Csla.Core; using Csla.Reflection; using Csla.Rules; diff --git a/Source/Csla.Channels.Grpc/GrpcPortal.cs b/Source/Csla.Channels.Grpc/GrpcPortal.cs index 8ebdf49fe8..3034d75f44 100644 --- a/Source/Csla.Channels.Grpc/GrpcPortal.cs +++ b/Source/Csla.Channels.Grpc/GrpcPortal.cs @@ -6,7 +6,6 @@ // Exposes server-side DataPortal functionality //----------------------------------------------------------------------- -using System.Security.Principal; using Csla.Core; using Csla.Serialization; using Csla.Serialization.Mobile; diff --git a/Source/Csla.Channels.Grpc/GrpcProxy.cs b/Source/Csla.Channels.Grpc/GrpcProxy.cs index 2ab398fe17..0c7cf1cdc2 100644 --- a/Source/Csla.Channels.Grpc/GrpcProxy.cs +++ b/Source/Csla.Channels.Grpc/GrpcProxy.cs @@ -6,7 +6,6 @@ // Implements a data portal proxy to relay data portal //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; using Csla.Configuration; using Csla.DataPortalClient; using Google.Protobuf; diff --git a/Source/Csla.Channels.RabbitMq/ProxyListener.cs b/Source/Csla.Channels.RabbitMq/ProxyListener.cs index 66f5903496..5d588f0fb0 100644 --- a/Source/Csla.Channels.RabbitMq/ProxyListener.cs +++ b/Source/Csla.Channels.RabbitMq/ProxyListener.cs @@ -6,8 +6,6 @@ // Handles replies from data portal server //----------------------------------------------------------------------- -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; using RabbitMQ.Client; using RabbitMQ.Client.Events; diff --git a/Source/Csla.Channels.RabbitMq/RabbitMqPortal.cs b/Source/Csla.Channels.RabbitMq/RabbitMqPortal.cs index a89b755886..0f77b1d7b1 100644 --- a/Source/Csla.Channels.RabbitMq/RabbitMqPortal.cs +++ b/Source/Csla.Channels.RabbitMq/RabbitMqPortal.cs @@ -6,9 +6,6 @@ // Exposes server-side DataPortal functionality through RabbitMQ //----------------------------------------------------------------------- -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Security.Principal; using Csla.Core; using Csla.Serialization; using Csla.Serialization.Mobile; diff --git a/Source/Csla.Channels.RabbitMq/RabbitMqProxy.cs b/Source/Csla.Channels.RabbitMq/RabbitMqProxy.cs index 851296ac2b..9b7a2c357b 100644 --- a/Source/Csla.Channels.RabbitMq/RabbitMqProxy.cs +++ b/Source/Csla.Channels.RabbitMq/RabbitMqProxy.cs @@ -6,7 +6,6 @@ // Implements a data portal proxy to relay data portal //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; using Csla.DataPortalClient; using Csla.Server; using RabbitMQ.Client; diff --git a/Source/Csla.Channels.RabbitMq/WorkInProgress.cs b/Source/Csla.Channels.RabbitMq/WorkInProgress.cs index df506d8fd2..29d64ab090 100644 --- a/Source/Csla.Channels.RabbitMq/WorkInProgress.cs +++ b/Source/Csla.Channels.RabbitMq/WorkInProgress.cs @@ -1,5 +1,4 @@ -using System.Collections.Concurrent; -using Csla.Threading; +using Csla.Threading; namespace Csla.Channels.RabbitMq { diff --git a/Source/Csla.Data.SqlClient.Fx/SafeSqlDataReader.cs b/Source/Csla.Data.SqlClient.Fx/SafeSqlDataReader.cs index 4d9d55d677..a8683c27f2 100644 --- a/Source/Csla.Data.SqlClient.Fx/SafeSqlDataReader.cs +++ b/Source/Csla.Data.SqlClient.Fx/SafeSqlDataReader.cs @@ -6,7 +6,6 @@ // This is a SqlDataReader based on SafeDataReader //----------------------------------------------------------------------- -using System.Data; #if NETFX using System.Data.SqlClient; #else diff --git a/Source/Csla.Generators/cs/AutoImplementProperties/Csla.Generator.AutoImplementProperties.CSharp/AutoImplement/Discovery/PropertyDefinitionsExtractor.cs b/Source/Csla.Generators/cs/AutoImplementProperties/Csla.Generator.AutoImplementProperties.CSharp/AutoImplement/Discovery/PropertyDefinitionsExtractor.cs index 9062cb4930..8c3da1f596 100644 --- a/Source/Csla.Generators/cs/AutoImplementProperties/Csla.Generator.AutoImplementProperties.CSharp/AutoImplement/Discovery/PropertyDefinitionsExtractor.cs +++ b/Source/Csla.Generators/cs/AutoImplementProperties/Csla.Generator.AutoImplementProperties.CSharp/AutoImplement/Discovery/PropertyDefinitionsExtractor.cs @@ -6,7 +6,6 @@ // Extract the definitions of all properties of a type for source generation //----------------------------------------------------------------------- -using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Csla.Generator.AutoImplementProperties.CSharp.AutoImplement.Discovery diff --git a/Source/Csla.Generators/cs/AutoImplementProperties/Csla.Generator.AutoImplementProperties.CSharp/AutoImplement/Discovery/TypeDefinitionExtractor.cs b/Source/Csla.Generators/cs/AutoImplementProperties/Csla.Generator.AutoImplementProperties.CSharp/AutoImplement/Discovery/TypeDefinitionExtractor.cs index ba70c7a8ba..4df2e28526 100644 --- a/Source/Csla.Generators/cs/AutoImplementProperties/Csla.Generator.AutoImplementProperties.CSharp/AutoImplement/Discovery/TypeDefinitionExtractor.cs +++ b/Source/Csla.Generators/cs/AutoImplementProperties/Csla.Generator.AutoImplementProperties.CSharp/AutoImplement/Discovery/TypeDefinitionExtractor.cs @@ -5,7 +5,7 @@ // // Extract the definition of a type for source generation //----------------------------------------------------------------------- -using System.Text; + using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp.Syntax; diff --git a/Source/Csla.Generators/cs/AutoImplementProperties/Csla.Generator.AutoImplementProperties.CSharp/AutoImplement/IncrementalAutoImplementInterfacePartialsGenerator.cs b/Source/Csla.Generators/cs/AutoImplementProperties/Csla.Generator.AutoImplementProperties.CSharp/AutoImplement/IncrementalAutoImplementInterfacePartialsGenerator.cs index 718d3c71b3..3b523af2df 100644 --- a/Source/Csla.Generators/cs/AutoImplementProperties/Csla.Generator.AutoImplementProperties.CSharp/AutoImplement/IncrementalAutoImplementInterfacePartialsGenerator.cs +++ b/Source/Csla.Generators/cs/AutoImplementProperties/Csla.Generator.AutoImplementProperties.CSharp/AutoImplement/IncrementalAutoImplementInterfacePartialsGenerator.cs @@ -5,7 +5,7 @@ // // Source generator for interface implementation //----------------------------------------------------------------------- -using System.Text; + using Csla.Generator.AutoImplementProperties.CSharp.AutoImplement.Discovery; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; diff --git a/Source/Csla.Generators/cs/AutoImplementProperties/Csla.Generator.AutoImplementProperties.CSharp/AutoImplement/IncrementalAutoImplementPropertiesPartialsGenerator.cs b/Source/Csla.Generators/cs/AutoImplementProperties/Csla.Generator.AutoImplementProperties.CSharp/AutoImplement/IncrementalAutoImplementPropertiesPartialsGenerator.cs index 4ced917839..6210ef84f5 100644 --- a/Source/Csla.Generators/cs/AutoImplementProperties/Csla.Generator.AutoImplementProperties.CSharp/AutoImplement/IncrementalAutoImplementPropertiesPartialsGenerator.cs +++ b/Source/Csla.Generators/cs/AutoImplementProperties/Csla.Generator.AutoImplementProperties.CSharp/AutoImplement/IncrementalAutoImplementPropertiesPartialsGenerator.cs @@ -5,7 +5,7 @@ // // Source generator for partial properties implementation //----------------------------------------------------------------------- -using System.Text; + using Csla.Generator.AutoImplementProperties.CSharp.AutoImplement.Discovery; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; diff --git a/Source/Csla.Generators/cs/AutoImplementProperties/Csla.Generator.AutoImplementProperties.CSharp/ExceptionExtensions.cs b/Source/Csla.Generators/cs/AutoImplementProperties/Csla.Generator.AutoImplementProperties.CSharp/ExceptionExtensions.cs index 858e7a1a95..d83e1ab902 100644 --- a/Source/Csla.Generators/cs/AutoImplementProperties/Csla.Generator.AutoImplementProperties.CSharp/ExceptionExtensions.cs +++ b/Source/Csla.Generators/cs/AutoImplementProperties/Csla.Generator.AutoImplementProperties.CSharp/ExceptionExtensions.cs @@ -5,6 +5,7 @@ // // Extension methods for the Exception type //----------------------------------------------------------------------- + using Microsoft.CodeAnalysis; namespace Csla.Generator.AutoImplementProperties.CSharp diff --git a/Source/Csla.Generators/cs/AutoSerialization/Csla.Generator.AutoSerialization.CSharp/AutoSerializable/Discovery/ContainerDefinitionsExtractor.cs b/Source/Csla.Generators/cs/AutoSerialization/Csla.Generator.AutoSerialization.CSharp/AutoSerializable/Discovery/ContainerDefinitionsExtractor.cs index 0e112cff9f..c53dfc603f 100644 --- a/Source/Csla.Generators/cs/AutoSerialization/Csla.Generator.AutoSerialization.CSharp/AutoSerializable/Discovery/ContainerDefinitionsExtractor.cs +++ b/Source/Csla.Generators/cs/AutoSerialization/Csla.Generator.AutoSerialization.CSharp/AutoSerializable/Discovery/ContainerDefinitionsExtractor.cs @@ -5,9 +5,9 @@ // // Extract the definitions of the containers of a type //----------------------------------------------------------------------- + using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp.Syntax; -using System.Text; namespace Csla.Generator.AutoSerialization.CSharp.AutoSerialization.Discovery { diff --git a/Source/Csla.Generators/cs/AutoSerialization/Csla.Generator.AutoSerialization.CSharp/AutoSerializable/Discovery/DefinitionExtractionContext.cs b/Source/Csla.Generators/cs/AutoSerialization/Csla.Generator.AutoSerialization.CSharp/AutoSerializable/Discovery/DefinitionExtractionContext.cs index 1acea772f0..9c85aaeb91 100644 --- a/Source/Csla.Generators/cs/AutoSerialization/Csla.Generator.AutoSerialization.CSharp/AutoSerializable/Discovery/DefinitionExtractionContext.cs +++ b/Source/Csla.Generators/cs/AutoSerialization/Csla.Generator.AutoSerialization.CSharp/AutoSerializable/Discovery/DefinitionExtractionContext.cs @@ -5,6 +5,7 @@ // // Helper for definition extraction, used to optimise symbo, recognition //----------------------------------------------------------------------- + using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp.Syntax; diff --git a/Source/Csla.Generators/cs/AutoSerialization/Csla.Generator.AutoSerialization.CSharp/AutoSerializable/Discovery/TypeDefinitionExtractor.cs b/Source/Csla.Generators/cs/AutoSerialization/Csla.Generator.AutoSerialization.CSharp/AutoSerializable/Discovery/TypeDefinitionExtractor.cs index 5a77332103..6d05c209a5 100644 --- a/Source/Csla.Generators/cs/AutoSerialization/Csla.Generator.AutoSerialization.CSharp/AutoSerializable/Discovery/TypeDefinitionExtractor.cs +++ b/Source/Csla.Generators/cs/AutoSerialization/Csla.Generator.AutoSerialization.CSharp/AutoSerializable/Discovery/TypeDefinitionExtractor.cs @@ -5,9 +5,9 @@ // // Extract the definition of a type for source generation //----------------------------------------------------------------------- + using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp.Syntax; -using System.Text; namespace Csla.Generator.AutoSerialization.CSharp.AutoSerialization.Discovery { diff --git a/Source/Csla.Generators/cs/AutoSerialization/Csla.Generator.AutoSerialization.CSharp/AutoSerializable/IncrementalSerializationPartialsGenerator.cs b/Source/Csla.Generators/cs/AutoSerialization/Csla.Generator.AutoSerialization.CSharp/AutoSerializable/IncrementalSerializationPartialsGenerator.cs index 97e1b97bfa..d125f56f9a 100644 --- a/Source/Csla.Generators/cs/AutoSerialization/Csla.Generator.AutoSerialization.CSharp/AutoSerializable/IncrementalSerializationPartialsGenerator.cs +++ b/Source/Csla.Generators/cs/AutoSerialization/Csla.Generator.AutoSerialization.CSharp/AutoSerializable/IncrementalSerializationPartialsGenerator.cs @@ -1,4 +1,3 @@ -using System.Text; using Csla.Generator.AutoSerialization.CSharp.AutoSerialization.Discovery; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; diff --git a/Source/Csla.Generators/cs/AutoSerialization/Csla.Generator.AutoSerialization.CSharp/ExceptionExtensions.cs b/Source/Csla.Generators/cs/AutoSerialization/Csla.Generator.AutoSerialization.CSharp/ExceptionExtensions.cs index f774fc2cec..257e95d65f 100644 --- a/Source/Csla.Generators/cs/AutoSerialization/Csla.Generator.AutoSerialization.CSharp/ExceptionExtensions.cs +++ b/Source/Csla.Generators/cs/AutoSerialization/Csla.Generator.AutoSerialization.CSharp/ExceptionExtensions.cs @@ -5,6 +5,7 @@ // // Extension methods for the Exception type //----------------------------------------------------------------------- + using Microsoft.CodeAnalysis; namespace Csla.Generator.AutoSerialization.CSharp diff --git a/Source/Csla.Web.Mvc.Shared/ApplicationContextManager.cs b/Source/Csla.Web.Mvc.Shared/ApplicationContextManager.cs index 254676817f..a68fe92060 100644 --- a/Source/Csla.Web.Mvc.Shared/ApplicationContextManager.cs +++ b/Source/Csla.Web.Mvc.Shared/ApplicationContextManager.cs @@ -6,6 +6,7 @@ // // Application context manager that uses HttpContext //----------------------------------------------------------------------- + using Csla.Core; using System.Web; diff --git a/Source/Csla.Web.Mvc.Shared/AsyncController.cs b/Source/Csla.Web.Mvc.Shared/AsyncController.cs index 333c4f2d1e..31142618cf 100644 --- a/Source/Csla.Web.Mvc.Shared/AsyncController.cs +++ b/Source/Csla.Web.Mvc.Shared/AsyncController.cs @@ -6,6 +6,7 @@ // // Provides methods that respond to HTTP requests //----------------------------------------------------------------------- + using System.Web.Mvc; namespace Csla.Web.Mvc diff --git a/Source/Csla.Web.Mvc.Shared/CslaModelBinder.cs b/Source/Csla.Web.Mvc.Shared/CslaModelBinder.cs index 86c88f7132..c7bb19788e 100644 --- a/Source/Csla.Web.Mvc.Shared/CslaModelBinder.cs +++ b/Source/Csla.Web.Mvc.Shared/CslaModelBinder.cs @@ -6,7 +6,6 @@ // Model binder for use with CSLA .NET editable business objects. //----------------------------------------------------------------------- #if NETSTANDARD2_0 || NET8_0_OR_GREATER -using System.Collections; using Microsoft.AspNetCore.Mvc.ModelBinding; using Microsoft.Extensions.DependencyInjection; @@ -127,8 +126,6 @@ private void BindSingleProperty(ModelBindingContext bindingContext, object resul } #elif !NETSTANDARD using System.Web.Mvc; -using System.ComponentModel; -using System.Collections; using Csla.Core; namespace Csla.Web.Mvc diff --git a/Source/Csla.Web.Mvc.Shared/HtmlExtensions.cs b/Source/Csla.Web.Mvc.Shared/HtmlExtensions.cs index b4ab6f14d9..ccef3ee76b 100644 --- a/Source/Csla.Web.Mvc.Shared/HtmlExtensions.cs +++ b/Source/Csla.Web.Mvc.Shared/HtmlExtensions.cs @@ -25,11 +25,11 @@ public static class HtmlExtensions /// Model property public static HtmlString InformationFor( this IHtmlHelper htmlHelper, - System.Linq.Expressions.Expression> expression) + Expression> expression) { var result = string.Empty; var model = htmlHelper.ViewData.Model; - System.Reflection.PropertyInfo reflectedPropertyInfo = Reflection.Reflect.GetProperty(expression); + PropertyInfo reflectedPropertyInfo = Reflection.Reflect.GetProperty(expression); var propertyName = reflectedPropertyInfo.Name; if (model is Core.BusinessBase bb) result = bb.BrokenRulesCollection.ToString(",", Rules.RuleSeverity.Information, propertyName); @@ -65,7 +65,7 @@ public static HtmlString WarningFor( /// Model property public static HtmlString ErrorFor( this IHtmlHelper htmlHelper, - System.Linq.Expressions.Expression> expression) + Expression> expression) { var result = string.Empty; var model = htmlHelper.ViewData.Model; diff --git a/Source/Csla.Web.Mvc.Shared/Server/Hosts/HttpPortal.cs b/Source/Csla.Web.Mvc.Shared/Server/Hosts/HttpPortal.cs index c53a3f732f..f80dc64529 100644 --- a/Source/Csla.Web.Mvc.Shared/Server/Hosts/HttpPortal.cs +++ b/Source/Csla.Web.Mvc.Shared/Server/Hosts/HttpPortal.cs @@ -5,9 +5,9 @@ // // Exposes server-side DataPortal functionality //----------------------------------------------------------------------- + using Csla.Serialization.Mobile; using Csla.Core; -using System.Security.Principal; using Csla.Serialization; using Csla.Server.Hosts.DataPortalChannel; diff --git a/Source/Csla.Web.Mvc.Shared/Server/Hosts/HttpPortalController.cs b/Source/Csla.Web.Mvc.Shared/Server/Hosts/HttpPortalController.cs index 50f42b92ae..6ce56376b2 100644 --- a/Source/Csla.Web.Mvc.Shared/Server/Hosts/HttpPortalController.cs +++ b/Source/Csla.Web.Mvc.Shared/Server/Hosts/HttpPortalController.cs @@ -6,7 +6,6 @@ // Exposes server-side DataPortal functionality //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; using Csla.Serialization; using Csla.Server.Hosts.DataPortalChannel; diff --git a/Source/Csla.Web.Mvc.Shared/ViewModelBase.cs b/Source/Csla.Web.Mvc.Shared/ViewModelBase.cs index de32af0ebd..f4b3e79a55 100644 --- a/Source/Csla.Web.Mvc.Shared/ViewModelBase.cs +++ b/Source/Csla.Web.Mvc.Shared/ViewModelBase.cs @@ -6,6 +6,7 @@ // // Base class used to create ViewModel objects that contain the Model object and related elements. //----------------------------------------------------------------------- + using System.Web.Mvc; using Csla.Core; diff --git a/Source/Csla.Web.Mvc.Shared/WebConfiguration.cs b/Source/Csla.Web.Mvc.Shared/WebConfiguration.cs index 2f9680069b..2d1cf8fa14 100644 --- a/Source/Csla.Web.Mvc.Shared/WebConfiguration.cs +++ b/Source/Csla.Web.Mvc.Shared/WebConfiguration.cs @@ -6,6 +6,7 @@ // // Implement extension methods for .NET Core configuration //----------------------------------------------------------------------- + using Microsoft.AspNetCore.Builder; namespace Csla.Configuration diff --git a/Source/Csla.Web/ApplicationContextManager.cs b/Source/Csla.Web/ApplicationContextManager.cs index 95f5b498d4..2750ea2997 100644 --- a/Source/Csla.Web/ApplicationContextManager.cs +++ b/Source/Csla.Web/ApplicationContextManager.cs @@ -5,6 +5,7 @@ // // Application context manager that uses HttpContext //----------------------------------------------------------------------- + using Csla.Core; using System.Web; diff --git a/Source/Csla.Web/CslaDataSource.cs b/Source/Csla.Web/CslaDataSource.cs index 33459782b3..9b93339ef1 100644 --- a/Source/Csla.Web/CslaDataSource.cs +++ b/Source/Csla.Web/CslaDataSource.cs @@ -7,8 +7,6 @@ //----------------------------------------------------------------------- using System.Web.UI; -using System.ComponentModel; -using System.Reflection; using Csla.Properties; namespace Csla.Web diff --git a/Source/Csla.Web/CslaDataSourceView.cs b/Source/Csla.Web/CslaDataSourceView.cs index d742ea94d6..9396fcd227 100644 --- a/Source/Csla.Web/CslaDataSourceView.cs +++ b/Source/Csla.Web/CslaDataSourceView.cs @@ -6,7 +6,6 @@ // The object responsible for managing data binding //----------------------------------------------------------------------- -using System.Collections; using System.Web.UI; namespace Csla.Web diff --git a/Source/Csla.Web/Design/CslaDataSourceConfiguration.cs b/Source/Csla.Web/Design/CslaDataSourceConfiguration.cs index a047723706..56167b4315 100644 --- a/Source/Csla.Web/Design/CslaDataSourceConfiguration.cs +++ b/Source/Csla.Web/Design/CslaDataSourceConfiguration.cs @@ -6,7 +6,6 @@ // CslaDataSource configuration form. //----------------------------------------------------------------------- -using System.Collections; using System.Web.UI; using System.ComponentModel.Design; using System.Windows.Forms; diff --git a/Source/Csla.Web/Design/CslaDataSourceDesigner.cs b/Source/Csla.Web/Design/CslaDataSourceDesigner.cs index 4d5c7ae584..8fe3349205 100644 --- a/Source/Csla.Web/Design/CslaDataSourceDesigner.cs +++ b/Source/Csla.Web/Design/CslaDataSourceDesigner.cs @@ -8,7 +8,6 @@ using System.Web.UI; using System.Web.UI.Design; -using System.ComponentModel; using System.Windows.Forms.Design; namespace Csla.Web.Design diff --git a/Source/Csla.Web/Design/CslaDesignerDataSourceView.cs b/Source/Csla.Web/Design/CslaDesignerDataSourceView.cs index 3c7036f461..0d6d152498 100644 --- a/Source/Csla.Web/Design/CslaDesignerDataSourceView.cs +++ b/Source/Csla.Web/Design/CslaDesignerDataSourceView.cs @@ -6,11 +6,8 @@ // Object responsible for providing details about //----------------------------------------------------------------------- -using System.Collections; using System.Web.UI.Design; using System.ComponentModel.Design; -using System.Data; -using System.ComponentModel; namespace Csla.Web.Design { diff --git a/Source/Csla.Web/Design/ObjectFieldInfo.cs b/Source/Csla.Web/Design/ObjectFieldInfo.cs index 4dc41ab7f4..1cb59a119c 100644 --- a/Source/Csla.Web/Design/ObjectFieldInfo.cs +++ b/Source/Csla.Web/Design/ObjectFieldInfo.cs @@ -7,7 +7,6 @@ //----------------------------------------------------------------------- using System.Web.UI.Design; -using System.ComponentModel; namespace Csla.Web.Design { diff --git a/Source/Csla.Web/Design/ObjectSchema.cs b/Source/Csla.Web/Design/ObjectSchema.cs index b9ab915e56..8912c33d4b 100644 --- a/Source/Csla.Web/Design/ObjectSchema.cs +++ b/Source/Csla.Web/Design/ObjectSchema.cs @@ -5,6 +5,7 @@ // // Object providing access to schema information for //----------------------------------------------------------------------- + using System.Web.UI.Design; namespace Csla.Web.Design diff --git a/Source/Csla.Web/Design/ObjectViewSchema.cs b/Source/Csla.Web/Design/ObjectViewSchema.cs index d0a55be708..e75952ac68 100644 --- a/Source/Csla.Web/Design/ObjectViewSchema.cs +++ b/Source/Csla.Web/Design/ObjectViewSchema.cs @@ -6,9 +6,7 @@ // Object providing schema information for a //----------------------------------------------------------------------- -using System.Collections; using System.Web.UI.Design; -using System.ComponentModel; using System.ComponentModel.Design; namespace Csla.Web.Design diff --git a/Source/Csla.Web/SelectObjectArgs.cs b/Source/Csla.Web/SelectObjectArgs.cs index dc2fb2753f..85418a063c 100644 --- a/Source/Csla.Web/SelectObjectArgs.cs +++ b/Source/Csla.Web/SelectObjectArgs.cs @@ -6,8 +6,6 @@ // Argument object used in the SelectObject event. //----------------------------------------------------------------------- -using System.ComponentModel; - namespace Csla.Web { /// diff --git a/Source/Csla.Windows/ApplicationContextManager.cs b/Source/Csla.Windows/ApplicationContextManager.cs index 46fc4fcdb9..31345d14a7 100644 --- a/Source/Csla.Windows/ApplicationContextManager.cs +++ b/Source/Csla.Windows/ApplicationContextManager.cs @@ -5,7 +5,7 @@ // // Provides consistent context information between the client //----------------------------------------------------------------------- -using System.Security.Principal; + using Csla.Configuration; namespace Csla.Windows diff --git a/Source/Csla.Windows/BindingSourceHelper.cs b/Source/Csla.Windows/BindingSourceHelper.cs index d74f014752..f755ff2afb 100644 --- a/Source/Csla.Windows/BindingSourceHelper.cs +++ b/Source/Csla.Windows/BindingSourceHelper.cs @@ -6,7 +6,6 @@ // Helper methods for dealing with BindingSource //----------------------------------------------------------------------- -using System.ComponentModel; using Csla.Properties; namespace Csla.Windows diff --git a/Source/Csla.Windows/BindingSourceNode.cs b/Source/Csla.Windows/BindingSourceNode.cs index 5204ed2dd7..83c6c47de2 100644 --- a/Source/Csla.Windows/BindingSourceNode.cs +++ b/Source/Csla.Windows/BindingSourceNode.cs @@ -6,7 +6,6 @@ // Maintains a reference to a BindingSource object //----------------------------------------------------------------------- -using System.ComponentModel; using Csla.Core; namespace Csla.Windows diff --git a/Source/Csla.Windows/BindingSourceRefresh.cs b/Source/Csla.Windows/BindingSourceRefresh.cs index e37bf0e898..28af436398 100644 --- a/Source/Csla.Windows/BindingSourceRefresh.cs +++ b/Source/Csla.Windows/BindingSourceRefresh.cs @@ -6,7 +6,7 @@ // BindingSourceRefresh contains functionality for refreshing the data bound to controls on Host as well as a mechinism for catching data //----------------------------------------------------------------------- -using System.ComponentModel; + // code from Bill McCarthy // http://msmvps.com/bill/archive/2005/10/05/69012.aspx diff --git a/Source/Csla.Windows/BusyAnimation.cs b/Source/Csla.Windows/BusyAnimation.cs index 7f4934ddb1..fbb656ac4b 100644 --- a/Source/Csla.Windows/BusyAnimation.cs +++ b/Source/Csla.Windows/BusyAnimation.cs @@ -6,8 +6,6 @@ // User control that displays busy animation //----------------------------------------------------------------------- -using System.ComponentModel; - namespace Csla.Windows { /// diff --git a/Source/Csla.Windows/CslaActionCancelEventArgs.cs b/Source/Csla.Windows/CslaActionCancelEventArgs.cs index 414f8a47c5..81f6c2a80c 100644 --- a/Source/Csla.Windows/CslaActionCancelEventArgs.cs +++ b/Source/Csla.Windows/CslaActionCancelEventArgs.cs @@ -6,8 +6,6 @@ // Event args providing information about //----------------------------------------------------------------------- -using System.ComponentModel; - namespace Csla.Windows { /// diff --git a/Source/Csla.Windows/CslaActionExtender.cs b/Source/Csla.Windows/CslaActionExtender.cs index 19e41c7919..d298d38aff 100644 --- a/Source/Csla.Windows/CslaActionExtender.cs +++ b/Source/Csla.Windows/CslaActionExtender.cs @@ -6,7 +6,6 @@ // Extender control providing automation around //----------------------------------------------------------------------- -using System.ComponentModel; using Csla.Core; using Csla.Core.FieldManager; using Csla.Properties; diff --git a/Source/Csla.Windows/CslaActionExtenderToolStrip.cs b/Source/Csla.Windows/CslaActionExtenderToolStrip.cs index cf1477414f..6fd4c59f6c 100644 --- a/Source/Csla.Windows/CslaActionExtenderToolStrip.cs +++ b/Source/Csla.Windows/CslaActionExtenderToolStrip.cs @@ -6,7 +6,6 @@ // Extender control providing automation around //----------------------------------------------------------------------- -using System.ComponentModel; using Csla.Core; using Csla.Core.FieldManager; using Csla.Properties; diff --git a/Source/Csla.Windows/ReadWriteAuthorization.cs b/Source/Csla.Windows/ReadWriteAuthorization.cs index ebffd18b35..87655699c5 100644 --- a/Source/Csla.Windows/ReadWriteAuthorization.cs +++ b/Source/Csla.Windows/ReadWriteAuthorization.cs @@ -6,9 +6,8 @@ // Windows Forms extender control that automatically //----------------------------------------------------------------------- -using System.ComponentModel; -using System.Reflection; using Csla.Security; +using Label = System.Windows.Forms.Label; namespace Csla.Windows { diff --git a/Source/Csla.Xaml.Shared/ApplicationContextManager.cs b/Source/Csla.Xaml.Shared/ApplicationContextManager.cs index cd248a2a65..684c505592 100644 --- a/Source/Csla.Xaml.Shared/ApplicationContextManager.cs +++ b/Source/Csla.Xaml.Shared/ApplicationContextManager.cs @@ -6,7 +6,6 @@ // Provides consistent context information between the client //----------------------------------------------------------------------- -using System.Security.Principal; using Csla.Configuration; namespace Csla.Xaml diff --git a/Source/Csla.Xaml.Shared/BrokenRulesSeverityConverter.cs b/Source/Csla.Xaml.Shared/BrokenRulesSeverityConverter.cs index d2dc3157a5..d685e183eb 100644 --- a/Source/Csla.Xaml.Shared/BrokenRulesSeverityConverter.cs +++ b/Source/Csla.Xaml.Shared/BrokenRulesSeverityConverter.cs @@ -6,6 +6,7 @@ // // Converts validation severity values into corresponding //----------------------------------------------------------------------- + using Csla.Rules; using System.Windows.Resources; using System.Windows.Media.Imaging; diff --git a/Source/Csla.Xaml.Shared/BusyAnimation.cs b/Source/Csla.Xaml.Shared/BusyAnimation.cs index de8a6e4c71..e07733860b 100644 --- a/Source/Csla.Xaml.Shared/BusyAnimation.cs +++ b/Source/Csla.Xaml.Shared/BusyAnimation.cs @@ -6,11 +6,11 @@ // // Displays a busy animation. //----------------------------------------------------------------------- + using System.Windows; using System.Windows.Controls; using System.Windows.Media; using System.Windows.Threading; -using System.ComponentModel; namespace Csla.Xaml { diff --git a/Source/Csla.Xaml.Shared/CslaDataProvider.cs b/Source/Csla.Xaml.Shared/CslaDataProvider.cs index c2f3a8783b..13a8ef447c 100644 --- a/Source/Csla.Xaml.Shared/CslaDataProvider.cs +++ b/Source/Csla.Xaml.Shared/CslaDataProvider.cs @@ -6,11 +6,9 @@ // // Wraps and creates a CSLA .NET-style object //----------------------------------------------------------------------- -using System.Collections; + using System.Collections.ObjectModel; -using System.ComponentModel; using System.Windows.Data; -using System.Reflection; using Csla.Core; using Csla.Reflection; using Csla.Properties; diff --git a/Source/Csla.Xaml.Shared/CslaDataProviderCommandManager.cs b/Source/Csla.Xaml.Shared/CslaDataProviderCommandManager.cs index d37531dde3..949bd0200e 100644 --- a/Source/Csla.Xaml.Shared/CslaDataProviderCommandManager.cs +++ b/Source/Csla.Xaml.Shared/CslaDataProviderCommandManager.cs @@ -6,8 +6,8 @@ // // Implements support for RoutedCommands that can //----------------------------------------------------------------------- + using System.Windows.Input; -using System.ComponentModel; using Csla.Core; namespace Csla.Xaml diff --git a/Source/Csla.Xaml.Shared/DataDecoratorBase.cs b/Source/Csla.Xaml.Shared/DataDecoratorBase.cs index 179b6bd3b8..96d253a6f3 100644 --- a/Source/Csla.Xaml.Shared/DataDecoratorBase.cs +++ b/Source/Csla.Xaml.Shared/DataDecoratorBase.cs @@ -6,13 +6,11 @@ // // Base class for creating WPF panel //----------------------------------------------------------------------- -using System.Collections.Specialized; + using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Media; -using System.ComponentModel; -using System.Reflection; namespace Csla.Xaml { diff --git a/Source/Csla.Xaml.Shared/ErrorDialog.cs b/Source/Csla.Xaml.Shared/ErrorDialog.cs index 70738ed771..a2613778df 100644 --- a/Source/Csla.Xaml.Shared/ErrorDialog.cs +++ b/Source/Csla.Xaml.Shared/ErrorDialog.cs @@ -6,6 +6,7 @@ // // Displays an error dialog for any exceptions //----------------------------------------------------------------------- + using System.Windows; using System.Windows.Controls; using System.Windows.Data; diff --git a/Source/Csla.Xaml.Shared/ExecuteEventArgs.cs b/Source/Csla.Xaml.Shared/ExecuteEventArgs.cs index 3db22c7782..9da857016a 100644 --- a/Source/Csla.Xaml.Shared/ExecuteEventArgs.cs +++ b/Source/Csla.Xaml.Shared/ExecuteEventArgs.cs @@ -6,6 +6,7 @@ // // Arguments passed to a method invoked //----------------------------------------------------------------------- + using System.Windows; #if ANDROID diff --git a/Source/Csla.Xaml.Shared/IdentityConverter.cs b/Source/Csla.Xaml.Shared/IdentityConverter.cs index e21ab25020..29a104156b 100644 --- a/Source/Csla.Xaml.Shared/IdentityConverter.cs +++ b/Source/Csla.Xaml.Shared/IdentityConverter.cs @@ -6,6 +6,7 @@ // // Provides the functionality of a WPF //----------------------------------------------------------------------- + using System.Windows.Data; namespace Csla.Xaml diff --git a/Source/Csla.Xaml.Shared/InvokeMethod.cs b/Source/Csla.Xaml.Shared/InvokeMethod.cs index 6f4bba2e68..3ce840c9d8 100644 --- a/Source/Csla.Xaml.Shared/InvokeMethod.cs +++ b/Source/Csla.Xaml.Shared/InvokeMethod.cs @@ -6,8 +6,8 @@ // // Invokes a method on a target object when a //----------------------------------------------------------------------- + using System.Windows; -using System.ComponentModel; namespace Csla.Xaml { diff --git a/Source/Csla.Xaml.Shared/IsNotConverter.cs b/Source/Csla.Xaml.Shared/IsNotConverter.cs index c6be6a62c4..f895b17587 100644 --- a/Source/Csla.Xaml.Shared/IsNotConverter.cs +++ b/Source/Csla.Xaml.Shared/IsNotConverter.cs @@ -6,6 +6,7 @@ // // Converts a Boolean value into its inverse. //----------------------------------------------------------------------- + using System.Windows.Data; namespace Csla.Xaml diff --git a/Source/Csla.Xaml.Shared/ObjectStatus.cs b/Source/Csla.Xaml.Shared/ObjectStatus.cs index 413addc90e..8f71a9dbee 100644 --- a/Source/Csla.Xaml.Shared/ObjectStatus.cs +++ b/Source/Csla.Xaml.Shared/ObjectStatus.cs @@ -6,8 +6,8 @@ // // Container for other UI controls that exposes //----------------------------------------------------------------------- + using System.Windows; -using System.ComponentModel; using Csla.Core; namespace Csla.Xaml diff --git a/Source/Csla.Xaml.Shared/PropertyInfo.cs b/Source/Csla.Xaml.Shared/PropertyInfo.cs index b12863a715..c23ade3c70 100644 --- a/Source/Csla.Xaml.Shared/PropertyInfo.cs +++ b/Source/Csla.Xaml.Shared/PropertyInfo.cs @@ -6,11 +6,9 @@ // Expose metastate information about a property. //----------------------------------------------------------------------- -using System.ComponentModel; using Csla.Reflection; using Csla.Core; using Csla.Rules; -using System.Reflection; using System.Collections.ObjectModel; #if NETFX_CORE diff --git a/Source/Csla.Xaml.Shared/PropertyStatus.cs b/Source/Csla.Xaml.Shared/PropertyStatus.cs index 38f234deaf..eea300be16 100644 --- a/Source/Csla.Xaml.Shared/PropertyStatus.cs +++ b/Source/Csla.Xaml.Shared/PropertyStatus.cs @@ -6,8 +6,8 @@ // // Displays validation information for a business //----------------------------------------------------------------------- + using System.Collections.ObjectModel; -using System.ComponentModel; using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; diff --git a/Source/Csla.Xaml.Shared/TriggerAction.cs b/Source/Csla.Xaml.Shared/TriggerAction.cs index 58495bea3f..faa7ee5bdb 100644 --- a/Source/Csla.Xaml.Shared/TriggerAction.cs +++ b/Source/Csla.Xaml.Shared/TriggerAction.cs @@ -7,9 +7,7 @@ // Control used to invoke a method on the DataContext //----------------------------------------------------------------------- #define DEBUG -using System.Diagnostics; using System.Windows; -using System.ComponentModel; using System.Windows.Data; namespace Csla.Xaml diff --git a/Source/Csla.Xaml.Shared/ViewModelBase.cs b/Source/Csla.Xaml.Shared/ViewModelBase.cs index 9b973a6530..2c88c717f5 100644 --- a/Source/Csla.Xaml.Shared/ViewModelBase.cs +++ b/Source/Csla.Xaml.Shared/ViewModelBase.cs @@ -6,9 +6,6 @@ // Base class used to create ViewModel objects that //----------------------------------------------------------------------- -using System.Collections; -using System.Collections.Specialized; -using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Windows; using Csla.Core; diff --git a/Source/Csla.Xaml.Wpf/Properties/AssemblyInfo.cs b/Source/Csla.Xaml.Wpf/Properties/AssemblyInfo.cs index c3ddd566c5..4b808f1a1e 100644 --- a/Source/Csla.Xaml.Wpf/Properties/AssemblyInfo.cs +++ b/Source/Csla.Xaml.Wpf/Properties/AssemblyInfo.cs @@ -5,6 +5,7 @@ // // no summary //----------------------------------------------------------------------- + using System.Windows; using System.Windows.Markup; diff --git a/Source/Csla/ApplicationContext.cs b/Source/Csla/ApplicationContext.cs index aa00aef5ec..825b797bf4 100644 --- a/Source/Csla/ApplicationContext.cs +++ b/Source/Csla/ApplicationContext.cs @@ -6,13 +6,9 @@ // Provides consistent context information between the client //----------------------------------------------------------------------- -using System.Security.Principal; using Csla.Core; -using System.Security.Claims; using Microsoft.Extensions.DependencyInjection; -using System.ComponentModel; using Csla.Server; -using System.Diagnostics.CodeAnalysis; namespace Csla { diff --git a/Source/Csla/BusinessBase.cs b/Source/Csla/BusinessBase.cs index 716568b6eb..138394e1bf 100644 --- a/Source/Csla/BusinessBase.cs +++ b/Source/Csla/BusinessBase.cs @@ -6,10 +6,6 @@ // This is the base class from which most business objects //----------------------------------------------------------------------- -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Reflection; using Csla.Core; using Csla.Properties; using Csla.Reflection; @@ -303,7 +299,7 @@ object ISavable.Save(bool forceUpdate) /// /// Event raised when an object has been saved. /// - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", + [SuppressMessage("Microsoft.Design", "CA1062:ValidateArgumentsOfPublicMethods")] public event EventHandler Saved { diff --git a/Source/Csla/BusinessBindingListBase.cs b/Source/Csla/BusinessBindingListBase.cs index 6b6f2dcde9..e156ee8c35 100644 --- a/Source/Csla/BusinessBindingListBase.cs +++ b/Source/Csla/BusinessBindingListBase.cs @@ -6,9 +6,7 @@ // This is the base class from which most business collections //----------------------------------------------------------------------- -using System.ComponentModel; using System.ComponentModel.DataAnnotations; -using System.Diagnostics.CodeAnalysis; using Csla.Core; using Csla.Properties; using Csla.Server; @@ -21,7 +19,7 @@ namespace Csla /// /// Type of the business object being defined. /// Type of the child objects contained in the list. - [System.Diagnostics.CodeAnalysis.SuppressMessage( + [SuppressMessage( "Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix")] [Serializable] public abstract class BusinessBindingListBase< @@ -144,7 +142,7 @@ public T Clone() /// A collection containing all child objects marked /// for deletion. /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( + [SuppressMessage( "Microsoft.Design", "CA1002:DoNotExposeGenericLists")] [EditorBrowsable(EditorBrowsableState.Advanced)] protected MobileList DeletedList @@ -157,7 +155,7 @@ protected MobileList DeletedList } } - [System.Diagnostics.CodeAnalysis.SuppressMessage( + [SuppressMessage( "Microsoft.Design", "CA1002:DoNotExposeGenericLists")] [EditorBrowsable(EditorBrowsableState.Advanced)] IEnumerable IContainsDeletedList.DeletedList => (IEnumerable)DeletedList; @@ -1023,7 +1021,7 @@ public async Task SaveAndMergeAsync() /// requested DataPortal_xyz method. /// /// The DataPortalContext object passed to the DataPortal. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] [EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void DataPortal_OnDataPortalInvoke(DataPortalEventArgs e) { } @@ -1033,7 +1031,7 @@ protected virtual void DataPortal_OnDataPortalInvoke(DataPortalEventArgs e) /// requested DataPortal_xyz method. /// /// The DataPortalContext object passed to the DataPortal. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] [EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void DataPortal_OnDataPortalInvokeComplete(DataPortalEventArgs e) { } @@ -1044,7 +1042,7 @@ protected virtual void DataPortal_OnDataPortalInvokeComplete(DataPortalEventArgs /// /// The DataPortalContext object passed to the DataPortal. /// The Exception thrown during data access. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] [EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void DataPortal_OnDataPortalException(DataPortalEventArgs e, Exception ex) { } @@ -1054,7 +1052,7 @@ protected virtual void DataPortal_OnDataPortalException(DataPortalEventArgs e, E /// requested DataPortal_XYZ method. /// /// The DataPortalContext object passed to the DataPortal. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] [EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void Child_OnDataPortalInvoke(DataPortalEventArgs e) { } @@ -1064,7 +1062,7 @@ protected virtual void Child_OnDataPortalInvoke(DataPortalEventArgs e) /// requested DataPortal_XYZ method. /// /// The DataPortalContext object passed to the DataPortal. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] [EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void Child_OnDataPortalInvokeComplete(DataPortalEventArgs e) { } @@ -1075,7 +1073,7 @@ protected virtual void Child_OnDataPortalInvokeComplete(DataPortalEventArgs e) /// /// The DataPortalContext object passed to the DataPortal. /// The Exception thrown during data access. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] [EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void Child_OnDataPortalException(DataPortalEventArgs e, Exception ex) { } @@ -1143,8 +1141,7 @@ void ISavable.SaveComplete(T newObject) /// /// Event raised when an object has been saved. /// - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", - "CA1062:ValidateArgumentsOfPublicMethods")] + [SuppressMessage("Microsoft.Design", "CA1062:ValidateArgumentsOfPublicMethods")] public event EventHandler Saved { add diff --git a/Source/Csla/BusinessListBase.cs b/Source/Csla/BusinessListBase.cs index 0bb715c958..0a0b6905ae 100644 --- a/Source/Csla/BusinessListBase.cs +++ b/Source/Csla/BusinessListBase.cs @@ -6,10 +6,7 @@ // This is the base class from which most business collections //----------------------------------------------------------------------- -using System.Collections.Specialized; -using System.ComponentModel; using System.ComponentModel.DataAnnotations; -using System.Diagnostics.CodeAnalysis; using Csla.Core; using Csla.Properties; using Csla.Serialization.Mobile; @@ -24,7 +21,7 @@ namespace Csla /// Type of the business object being defined. /// Type of the child objects contained in the list. #if TESTING - [System.Diagnostics.DebuggerStepThrough] + [DebuggerStepThrough] #endif [Serializable] public abstract class BusinessListBase< @@ -149,7 +146,7 @@ public T Clone() /// A collection containing all child objects marked /// for deletion. /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( + [SuppressMessage( "Microsoft.Design", "CA1002:DoNotExposeGenericLists")] [EditorBrowsable(EditorBrowsableState.Advanced)] protected MobileList DeletedList @@ -162,7 +159,7 @@ protected MobileList DeletedList } } - [System.Diagnostics.CodeAnalysis.SuppressMessage( + [SuppressMessage( "Microsoft.Design", "CA1002:DoNotExposeGenericLists")] [EditorBrowsable(EditorBrowsableState.Advanced)] IEnumerable IContainsDeletedList.DeletedList => (IEnumerable)DeletedList; @@ -1156,8 +1153,7 @@ void ISavable.SaveComplete(T newObject) /// /// Event raised when an object has been saved. /// - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", - "CA1062:ValidateArgumentsOfPublicMethods")] + [SuppressMessage("Microsoft.Design", "CA1062:ValidateArgumentsOfPublicMethods")] public event EventHandler Saved { add diff --git a/Source/Csla/CommandBase.cs b/Source/Csla/CommandBase.cs index a74413e5fb..7571625ffb 100644 --- a/Source/Csla/CommandBase.cs +++ b/Source/Csla/CommandBase.cs @@ -6,10 +6,6 @@ // This is the base class from which command //----------------------------------------------------------------------- -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Reflection; using Csla.Core; using Csla.Properties; using Csla.Reflection; @@ -81,32 +77,32 @@ int IBusinessObject.Identity #region Data Access - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "criteria")] - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + [SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "criteria")] + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] + [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] private void DataPortal_Create(object criteria) { throw new NotSupportedException(Resources.CreateNotSupportedException); } - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "criteria")] - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + [SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "criteria")] + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] + [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] private void DataPortal_Fetch(object criteria) { throw new NotSupportedException(Resources.FetchNotSupportedException); } - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] + [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] private void DataPortal_Update() { throw new NotSupportedException(Resources.UpdateNotSupportedException); } - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "criteria")] - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + [SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "criteria")] + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] + [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] [Delete] private void DataPortal_Delete(object criteria) { @@ -118,7 +114,7 @@ private void DataPortal_Delete(object criteria) /// requested DataPortal_xyz method. /// /// The DataPortalContext object passed to the DataPortal. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] [EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void DataPortal_OnDataPortalInvoke(DataPortalEventArgs e) { @@ -130,7 +126,7 @@ protected virtual void DataPortal_OnDataPortalInvoke(DataPortalEventArgs e) /// requested DataPortal_xyz method. /// /// The DataPortalContext object passed to the DataPortal. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] [EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void DataPortal_OnDataPortalInvokeComplete(DataPortalEventArgs e) { @@ -143,7 +139,7 @@ protected virtual void DataPortal_OnDataPortalInvokeComplete(DataPortalEventArgs /// /// The DataPortalContext object passed to the DataPortal. /// The Exception thrown during processing. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] [EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void DataPortal_OnDataPortalException(DataPortalEventArgs e, Exception ex) { diff --git a/Source/Csla/Configuration/Abstraction/ConfigurationManager.cs b/Source/Csla/Configuration/Abstraction/ConfigurationManager.cs index a23800884f..a1d3c36040 100644 --- a/Source/Csla/Configuration/Abstraction/ConfigurationManager.cs +++ b/Source/Csla/Configuration/Abstraction/ConfigurationManager.cs @@ -6,8 +6,6 @@ // ConfigurationManager that abstracts underlying configuration //----------------------------------------------------------------------- -using System.Collections.Specialized; - namespace Csla.Configuration { /// diff --git a/Source/Csla/Configuration/ConfigurationExtensions.cs b/Source/Csla/Configuration/ConfigurationExtensions.cs index b152d920ab..c8901de37b 100644 --- a/Source/Csla/Configuration/ConfigurationExtensions.cs +++ b/Source/Csla/Configuration/ConfigurationExtensions.cs @@ -5,6 +5,7 @@ // // Implement extension methods for base .NET configuration //----------------------------------------------------------------------- + using Csla.DataPortalClient; using Csla.Runtime; using Microsoft.Extensions.DependencyInjection; diff --git a/Source/Csla/Configuration/Fluent/CslaOptions.cs b/Source/Csla/Configuration/Fluent/CslaOptions.cs index 56ba7c16e7..4b341ca2a3 100644 --- a/Source/Csla/Configuration/Fluent/CslaOptions.cs +++ b/Source/Csla/Configuration/Fluent/CslaOptions.cs @@ -6,7 +6,6 @@ // Use this type to configure the settings for CSLA .NET //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; using Csla.Core; using Microsoft.Extensions.DependencyInjection; diff --git a/Source/Csla/Configuration/Fluent/DataPortalClientOptions.cs b/Source/Csla/Configuration/Fluent/DataPortalClientOptions.cs index c1372510ef..053b5035cc 100644 --- a/Source/Csla/Configuration/Fluent/DataPortalClientOptions.cs +++ b/Source/Csla/Configuration/Fluent/DataPortalClientOptions.cs @@ -6,7 +6,6 @@ // Client-side data portal options. //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; using Csla.DataPortalClient; using Microsoft.Extensions.DependencyInjection; diff --git a/Source/Csla/Configuration/Fluent/DataPortalServerOptions.cs b/Source/Csla/Configuration/Fluent/DataPortalServerOptions.cs index 421e46b863..7d0ee207dc 100644 --- a/Source/Csla/Configuration/Fluent/DataPortalServerOptions.cs +++ b/Source/Csla/Configuration/Fluent/DataPortalServerOptions.cs @@ -6,7 +6,6 @@ // Server-side data portal options. //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; using Csla.Server; using Microsoft.Extensions.DependencyInjection; diff --git a/Source/Csla/Configuration/Fluent/SerializationOptions.cs b/Source/Csla/Configuration/Fluent/SerializationOptions.cs index fed2225e29..2fec638b2e 100644 --- a/Source/Csla/Configuration/Fluent/SerializationOptions.cs +++ b/Source/Csla/Configuration/Fluent/SerializationOptions.cs @@ -7,7 +7,6 @@ //----------------------------------------------------------------------- using Csla.Serialization; -using System.Diagnostics.CodeAnalysis; using Microsoft.Extensions.DependencyInjection; namespace Csla.Configuration diff --git a/Source/Csla/Core/ApplicationContextManager.cs b/Source/Csla/Core/ApplicationContextManager.cs index f3826ae407..9fe36d65bb 100644 --- a/Source/Csla/Core/ApplicationContextManager.cs +++ b/Source/Csla/Core/ApplicationContextManager.cs @@ -6,7 +6,6 @@ // Default context manager for the user property //----------------------------------------------------------------------- -using System.Security.Principal; namespace Csla.Core { diff --git a/Source/Csla/Core/ApplicationContextManagerAsyncLocal.cs b/Source/Csla/Core/ApplicationContextManagerAsyncLocal.cs index 638ac8553d..aafdeaedf1 100644 --- a/Source/Csla/Core/ApplicationContextManagerAsyncLocal.cs +++ b/Source/Csla/Core/ApplicationContextManagerAsyncLocal.cs @@ -5,7 +5,6 @@ // // Application context manager using AsyncLocal //----------------------------------------------------------------------- -using System.Security.Principal; namespace Csla.Core { diff --git a/Source/Csla/Core/ApplicationContextManagerStatic.cs b/Source/Csla/Core/ApplicationContextManagerStatic.cs index 8e248d16d7..7a5fae30b9 100644 --- a/Source/Csla/Core/ApplicationContextManagerStatic.cs +++ b/Source/Csla/Core/ApplicationContextManagerStatic.cs @@ -6,9 +6,6 @@ // Default context manager for the user property //----------------------------------------------------------------------- -using System.Security.Principal; -using System.Security.Claims; - namespace Csla.Core { /// diff --git a/Source/Csla/Core/ApplicationContextManagerTls.cs b/Source/Csla/Core/ApplicationContextManagerTls.cs index 34a6420055..76c1d78842 100644 --- a/Source/Csla/Core/ApplicationContextManagerTls.cs +++ b/Source/Csla/Core/ApplicationContextManagerTls.cs @@ -6,7 +6,6 @@ // Default context manager for the user property //----------------------------------------------------------------------- -using System.Security.Principal; namespace Csla.Core { diff --git a/Source/Csla/Core/BindableBase.cs b/Source/Csla/Core/BindableBase.cs index 4019e56850..5fdf038cac 100644 --- a/Source/Csla/Core/BindableBase.cs +++ b/Source/Csla/Core/BindableBase.cs @@ -6,8 +6,6 @@ // This class implements INotifyPropertyChanged //----------------------------------------------------------------------- -using System.ComponentModel; - namespace Csla.Core { /// @@ -34,8 +32,7 @@ protected BindableBase() /// /// Implements a serialization-safe PropertyChanged event. /// - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", - "CA1062:ValidateArgumentsOfPublicMethods")] + [SuppressMessage("Microsoft.Design", "CA1062:ValidateArgumentsOfPublicMethods")] public event PropertyChangedEventHandler PropertyChanged { add @@ -159,8 +156,7 @@ protected virtual void OnUnknownPropertyChanged() /// /// Implements a serialization-safe PropertyChanging event. /// - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", - "CA1062:ValidateArgumentsOfPublicMethods")] + [SuppressMessage("Microsoft.Design", "CA1062:ValidateArgumentsOfPublicMethods")] public event PropertyChangingEventHandler PropertyChanging { add diff --git a/Source/Csla/Core/BusinessBase.cs b/Source/Csla/Core/BusinessBase.cs index b70b5db9bc..951ccdf6ab 100644 --- a/Source/Csla/Core/BusinessBase.cs +++ b/Source/Csla/Core/BusinessBase.cs @@ -6,14 +6,7 @@ // This is the non-generic base class from which most //----------------------------------------------------------------------- -using System.Collections; -using System.Collections.Concurrent; -using System.Collections.Specialized; -using System.ComponentModel; using System.ComponentModel.DataAnnotations; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; using Csla.Core.FieldManager; using Csla.Core.LoadManager; using Csla.Properties; @@ -31,7 +24,7 @@ namespace Csla.Core /// business objects will be derived. /// #if TESTING - [System.Diagnostics.DebuggerStepThrough] + [DebuggerStepThrough] #endif [Serializable] public abstract class BusinessBase : UndoableBase, @@ -3401,8 +3394,7 @@ protected void OnUnhandledAsyncException(object originalSender, Exception error) /// /// Event raised when a child object has been changed. /// - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", - "CA1062:ValidateArgumentsOfPublicMethods")] + [SuppressMessage("Microsoft.Design", "CA1062:ValidateArgumentsOfPublicMethods")] public event EventHandler ChildChanged { add diff --git a/Source/Csla/Core/ChildChangedEventArgs.cs b/Source/Csla/Core/ChildChangedEventArgs.cs index 86b2575438..5d272bc041 100644 --- a/Source/Csla/Core/ChildChangedEventArgs.cs +++ b/Source/Csla/Core/ChildChangedEventArgs.cs @@ -6,9 +6,6 @@ // Contains event data about the changed child object. //----------------------------------------------------------------------- -using System.ComponentModel; -using System.Collections.Specialized; - namespace Csla.Core { /// diff --git a/Source/Csla/Core/ContextDictionary.cs b/Source/Csla/Core/ContextDictionary.cs index 8c7a31690a..8aca58ab27 100644 --- a/Source/Csla/Core/ContextDictionary.cs +++ b/Source/Csla/Core/ContextDictionary.cs @@ -8,7 +8,6 @@ using Csla.Properties; using Csla.Serialization.Mobile; -using System.Collections.Concurrent; namespace Csla.Core { diff --git a/Source/Csla/Core/ExtendedBindingList.cs b/Source/Csla/Core/ExtendedBindingList.cs index 2bb3e71839..dc8610722a 100644 --- a/Source/Csla/Core/ExtendedBindingList.cs +++ b/Source/Csla/Core/ExtendedBindingList.cs @@ -6,11 +6,7 @@ // Extends BindingList of T by adding extra //----------------------------------------------------------------------- -using System.ComponentModel; using Csla.Serialization.Mobile; -#if ANDROID || IOS -using System.Collections.Specialized; -#endif #if NET8_0_OR_GREATER using System.Diagnostics.CodeAnalysis; #endif diff --git a/Source/Csla/Core/FieldManager/DefaultPropertyInfoFactory.cs b/Source/Csla/Core/FieldManager/DefaultPropertyInfoFactory.cs index e603512edc..49cc1e4f33 100644 --- a/Source/Csla/Core/FieldManager/DefaultPropertyInfoFactory.cs +++ b/Source/Csla/Core/FieldManager/DefaultPropertyInfoFactory.cs @@ -6,8 +6,6 @@ // Creates PropertyInfo objects. //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; - namespace Csla.Core.FieldManager { /// diff --git a/Source/Csla/Core/FieldManager/FieldData.cs b/Source/Csla/Core/FieldManager/FieldData.cs index c0710aa8f7..8661ef8f31 100644 --- a/Source/Csla/Core/FieldManager/FieldData.cs +++ b/Source/Csla/Core/FieldManager/FieldData.cs @@ -6,9 +6,7 @@ // Contains a field value and related metadata. //----------------------------------------------------------------------- -using System.ComponentModel; using System.ComponentModel.DataAnnotations; -using System.Diagnostics.CodeAnalysis; using Csla.Serialization.Mobile; namespace Csla.Core.FieldManager diff --git a/Source/Csla/Core/FieldManager/FieldDataManager.cs b/Source/Csla/Core/FieldManager/FieldDataManager.cs index 129fa34d75..4efdf8a66a 100644 --- a/Source/Csla/Core/FieldManager/FieldDataManager.cs +++ b/Source/Csla/Core/FieldManager/FieldDataManager.cs @@ -6,7 +6,6 @@ // Manages properties and property data for //----------------------------------------------------------------------- -using System.Reflection; #if NET8_0_OR_GREATER using System.Runtime.Loader; @@ -15,8 +14,6 @@ using Csla.Properties; using Csla.Serialization; using Csla.Serialization.Mobile; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; namespace Csla.Core.FieldManager { @@ -26,7 +23,7 @@ namespace Csla.Core.FieldManager /// /// #if TESTING - [System.Diagnostics.DebuggerStepThrough] + [DebuggerStepThrough] #endif [Serializable] public class FieldDataManager : MobileObject, IUndoableObject, IUseApplicationContext @@ -240,7 +237,7 @@ private static List CreateConsolidatedList( /// /// The property corresponding to the field. /// - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)] + [EditorBrowsable(EditorBrowsableState.Advanced)] public IFieldData GetFieldData(IPropertyInfo propertyInfo) { if ((propertyInfo.RelationshipType & RelationshipTypes.PrivateField) == RelationshipTypes.PrivateField) diff --git a/Source/Csla/Core/FieldManager/IFieldData.cs b/Source/Csla/Core/FieldManager/IFieldData.cs index fa49546d4a..a3e61f95c7 100644 --- a/Source/Csla/Core/FieldManager/IFieldData.cs +++ b/Source/Csla/Core/FieldManager/IFieldData.cs @@ -5,6 +5,7 @@ // // Defines the members required by a field //----------------------------------------------------------------------- + using Csla.Serialization.Mobile; namespace Csla.Core.FieldManager diff --git a/Source/Csla/Core/FieldManager/PropertyInfoFactory.cs b/Source/Csla/Core/FieldManager/PropertyInfoFactory.cs index 73df302d2d..0eb970c191 100644 --- a/Source/Csla/Core/FieldManager/PropertyInfoFactory.cs +++ b/Source/Csla/Core/FieldManager/PropertyInfoFactory.cs @@ -6,8 +6,6 @@ // Creates the factory object that //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; - namespace Csla.Core.FieldManager { /// diff --git a/Source/Csla/Core/FieldManager/PropertyInfoManager.cs b/Source/Csla/Core/FieldManager/PropertyInfoManager.cs index 4eaba3433f..fedaa2cfb3 100644 --- a/Source/Csla/Core/FieldManager/PropertyInfoManager.cs +++ b/Source/Csla/Core/FieldManager/PropertyInfoManager.cs @@ -6,8 +6,6 @@ // Indicates that the specified property belongs //----------------------------------------------------------------------- -using System.Collections.Concurrent; -using System.Diagnostics.CodeAnalysis; #if NET8_0_OR_GREATER using System.Runtime.Loader; diff --git a/Source/Csla/Core/GraphMerger.cs b/Source/Csla/Core/GraphMerger.cs index 0ace4d84f0..352afd115d 100644 --- a/Source/Csla/Core/GraphMerger.cs +++ b/Source/Csla/Core/GraphMerger.cs @@ -6,9 +6,6 @@ // Defines members required for smart //----------------------------------------------------------------------- -using System.Collections.Concurrent; -using System.Diagnostics.CodeAnalysis; - namespace Csla.Core { /// diff --git a/Source/Csla/Core/IContextDictionary.cs b/Source/Csla/Core/IContextDictionary.cs index 52f73898ef..6aaabe546f 100644 --- a/Source/Csla/Core/IContextDictionary.cs +++ b/Source/Csla/Core/IContextDictionary.cs @@ -1,5 +1,4 @@ -using System.Collections; -using Csla.Serialization.Mobile; +using Csla.Serialization.Mobile; namespace Csla.Core { diff --git a/Source/Csla/Core/IContextManager.cs b/Source/Csla/Core/IContextManager.cs index af12453142..a320841b06 100644 --- a/Source/Csla/Core/IContextManager.cs +++ b/Source/Csla/Core/IContextManager.cs @@ -7,7 +7,6 @@ //----------------------------------------------------------------------- #nullable enable -using System.Security.Principal; namespace Csla.Core { diff --git a/Source/Csla/Core/IExtendedBindingList.cs b/Source/Csla/Core/IExtendedBindingList.cs index 265d24b585..759c6bba59 100644 --- a/Source/Csla/Core/IExtendedBindingList.cs +++ b/Source/Csla/Core/IExtendedBindingList.cs @@ -6,8 +6,6 @@ // Extends by adding extra //----------------------------------------------------------------------- -using System.ComponentModel; - namespace Csla.Core { /// diff --git a/Source/Csla/Core/IManageProperties.cs b/Source/Csla/Core/IManageProperties.cs index b1262b0c36..160c4566b0 100644 --- a/Source/Csla/Core/IManageProperties.cs +++ b/Source/Csla/Core/IManageProperties.cs @@ -6,8 +6,6 @@ // no summary //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; - namespace Csla.Core { internal interface IManageProperties diff --git a/Source/Csla/Core/IPropertyInfoFactory.cs b/Source/Csla/Core/IPropertyInfoFactory.cs index e207c5c006..7556e659ae 100644 --- a/Source/Csla/Core/IPropertyInfoFactory.cs +++ b/Source/Csla/Core/IPropertyInfoFactory.cs @@ -6,8 +6,6 @@ // Defines the interface for a factory object //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; - namespace Csla.Core { /// diff --git a/Source/Csla/Core/IUseBusinessRules.cs b/Source/Csla/Core/IUseBusinessRules.cs index a151feeba9..cf9b013c52 100644 --- a/Source/Csla/Core/IUseBusinessRules.cs +++ b/Source/Csla/Core/IUseBusinessRules.cs @@ -5,6 +5,7 @@ // // //----------------------------------------------------------------------- + using Csla.Rules; namespace Csla.Core diff --git a/Source/Csla/Core/LoadManager/AsyncLoadManager.cs b/Source/Csla/Core/LoadManager/AsyncLoadManager.cs index f857c67084..4ef2fffdad 100644 --- a/Source/Csla/Core/LoadManager/AsyncLoadManager.cs +++ b/Source/Csla/Core/LoadManager/AsyncLoadManager.cs @@ -6,7 +6,6 @@ // no summary //----------------------------------------------------------------------- -using System.Collections.ObjectModel; using Csla.Properties; namespace Csla.Core.LoadManager diff --git a/Source/Csla/Core/ManagedObjectBase.cs b/Source/Csla/Core/ManagedObjectBase.cs index a153fffd1d..694ec32c70 100644 --- a/Source/Csla/Core/ManagedObjectBase.cs +++ b/Source/Csla/Core/ManagedObjectBase.cs @@ -6,10 +6,6 @@ // Base class for an object that is serializable //----------------------------------------------------------------------- -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Reflection; using Csla.Core.FieldManager; using Csla.Reflection; using Csla.Serialization.Mobile; diff --git a/Source/Csla/Core/MetaPropertyChangedEventArgs.cs b/Source/Csla/Core/MetaPropertyChangedEventArgs.cs index a9417c4b35..10037d8875 100644 --- a/Source/Csla/Core/MetaPropertyChangedEventArgs.cs +++ b/Source/Csla/Core/MetaPropertyChangedEventArgs.cs @@ -1,6 +1,4 @@ -using System.ComponentModel; - -namespace Csla.Core +namespace Csla.Core { /// diff --git a/Source/Csla/Core/MobileBindingList.cs b/Source/Csla/Core/MobileBindingList.cs index 81b23d5b97..4b0f9dca86 100644 --- a/Source/Csla/Core/MobileBindingList.cs +++ b/Source/Csla/Core/MobileBindingList.cs @@ -6,10 +6,8 @@ // Inherit from this base class to easily //----------------------------------------------------------------------- -using System.ComponentModel; using Csla.Serialization.Mobile; using Csla.Properties; -using System.Diagnostics; #if NET8_0_OR_GREATER using System.Diagnostics.CodeAnalysis; #endif @@ -24,7 +22,7 @@ namespace Csla.Core /// Type of the items contained in the list. /// #if TESTING - [System.Diagnostics.DebuggerStepThrough] + [DebuggerStepThrough] #endif [Serializable] public class MobileBindingList< diff --git a/Source/Csla/Core/MobileDictionary.cs b/Source/Csla/Core/MobileDictionary.cs index a2e8fd47c3..4f3395cc19 100644 --- a/Source/Csla/Core/MobileDictionary.cs +++ b/Source/Csla/Core/MobileDictionary.cs @@ -6,7 +6,6 @@ // Defines a dictionary that can be serialized through //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; using Csla.Serialization.Mobile; namespace Csla.Core diff --git a/Source/Csla/Core/MobileList.cs b/Source/Csla/Core/MobileList.cs index 3577144607..2abfc365da 100644 --- a/Source/Csla/Core/MobileList.cs +++ b/Source/Csla/Core/MobileList.cs @@ -6,7 +6,6 @@ // Implements a list that is serializable using //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; using Csla.Serialization.Mobile; namespace Csla.Core diff --git a/Source/Csla/Core/MobileObject.cs b/Source/Csla/Core/MobileObject.cs index 40f2534c19..a31f776897 100644 --- a/Source/Csla/Core/MobileObject.cs +++ b/Source/Csla/Core/MobileObject.cs @@ -6,7 +6,6 @@ // Inherit from this base class to easily //----------------------------------------------------------------------- -using System.ComponentModel; using Csla.Serialization.Mobile; namespace Csla.Core diff --git a/Source/Csla/Core/MobileObservableCollection.cs b/Source/Csla/Core/MobileObservableCollection.cs index 3582074837..5f425bfd56 100644 --- a/Source/Csla/Core/MobileObservableCollection.cs +++ b/Source/Csla/Core/MobileObservableCollection.cs @@ -6,10 +6,8 @@ // Inherit from this base class to easily //----------------------------------------------------------------------- -using System.ComponentModel; using Csla.Serialization.Mobile; using Csla.Properties; -using System.Diagnostics; namespace Csla.Core { @@ -21,10 +19,10 @@ namespace Csla.Core /// Type of the items contained in the list. /// #if TESTING - [System.Diagnostics.DebuggerStepThrough] + [DebuggerStepThrough] #endif [Serializable] - public class MobileObservableCollection : System.Collections.ObjectModel.ObservableCollection, + public class MobileObservableCollection : ObservableCollection, IMobileList { #region LoadListMode diff --git a/Source/Csla/Core/ObjectCloner.cs b/Source/Csla/Core/ObjectCloner.cs index bcd0ec383f..5ff697184d 100644 --- a/Source/Csla/Core/ObjectCloner.cs +++ b/Source/Csla/Core/ObjectCloner.cs @@ -5,6 +5,7 @@ // // This class provides an implementation of a deep //----------------------------------------------------------------------- + using Csla.Serialization; namespace Csla.Core diff --git a/Source/Csla/Core/ObservableBindingList.cs b/Source/Csla/Core/ObservableBindingList.cs index 714128229f..ead0dc9465 100644 --- a/Source/Csla/Core/ObservableBindingList.cs +++ b/Source/Csla/Core/ObservableBindingList.cs @@ -6,8 +6,6 @@ // Extends ObservableCollection with behaviors required //----------------------------------------------------------------------- -using System.Collections.Specialized; -using System.ComponentModel; using System.ComponentModel.DataAnnotations; using Csla.Properties; using Csla.Serialization.Mobile; diff --git a/Source/Csla/Core/ReadOnlyBindingList.cs b/Source/Csla/Core/ReadOnlyBindingList.cs index 572e0be35c..8049cf898e 100644 --- a/Source/Csla/Core/ReadOnlyBindingList.cs +++ b/Source/Csla/Core/ReadOnlyBindingList.cs @@ -6,7 +6,6 @@ // A readonly version of BindingList(Of T) //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; using Csla.Properties; namespace Csla.Core diff --git a/Source/Csla/Core/ReadOnlyObservableBindingList.cs b/Source/Csla/Core/ReadOnlyObservableBindingList.cs index 66895c7c4d..a1f18d17c7 100644 --- a/Source/Csla/Core/ReadOnlyObservableBindingList.cs +++ b/Source/Csla/Core/ReadOnlyObservableBindingList.cs @@ -6,7 +6,6 @@ // A readonly version of ObservableBindingList. //----------------------------------------------------------------------- -using System.Collections.Specialized; using Csla.Properties; namespace Csla.Core diff --git a/Source/Csla/Core/TypeConverters/SmartDateConverter.cs b/Source/Csla/Core/TypeConverters/SmartDateConverter.cs index b52c7ed87e..a0aa269068 100644 --- a/Source/Csla/Core/TypeConverters/SmartDateConverter.cs +++ b/Source/Csla/Core/TypeConverters/SmartDateConverter.cs @@ -5,7 +5,6 @@ // // Converts values to and from a SmartDate. //----------------------------------------------------------------------- -using System.ComponentModel; namespace Csla.Core.TypeConverters { diff --git a/Source/Csla/Core/UndoableBase.cs b/Source/Csla/Core/UndoableBase.cs index d856d9318f..51bf0fa9b1 100644 --- a/Source/Csla/Core/UndoableBase.cs +++ b/Source/Csla/Core/UndoableBase.cs @@ -6,7 +6,6 @@ // Implements n-level undo capabilities as //----------------------------------------------------------------------- -using System.ComponentModel; using Csla.Properties; using Csla.Reflection; using Csla.Serialization.Mobile; diff --git a/Source/Csla/Core/UndoableHandler.cs b/Source/Csla/Core/UndoableHandler.cs index d2870fcec5..dc9841103b 100644 --- a/Source/Csla/Core/UndoableHandler.cs +++ b/Source/Csla/Core/UndoableHandler.cs @@ -7,7 +7,6 @@ // // no summary //----------------------------------------------------------------------- -using System.Reflection; #if NET8_0_OR_GREATER using System.Runtime.Loader; diff --git a/Source/Csla/CriteriaBase.cs b/Source/Csla/CriteriaBase.cs index 38acb118ee..9dcc040ae2 100644 --- a/Source/Csla/CriteriaBase.cs +++ b/Source/Csla/CriteriaBase.cs @@ -7,10 +7,7 @@ //----------------------------------------------------------------------- using Csla.Core; -using System.Linq.Expressions; using Csla.Reflection; -using System.Reflection; -using System.Diagnostics.CodeAnalysis; namespace Csla { diff --git a/Source/Csla/Data/DataMapper.cs b/Source/Csla/Data/DataMapper.cs index 44702e8dd2..b32e1b81dd 100644 --- a/Source/Csla/Data/DataMapper.cs +++ b/Source/Csla/Data/DataMapper.cs @@ -6,8 +6,6 @@ // Map data from a source into a target object //----------------------------------------------------------------------- -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; using Csla.Core; using Csla.Properties; using Csla.Reflection; @@ -70,7 +68,7 @@ public static void Map(System.Collections.IDictionary source, object target, par /// object. Target properties may not be readonly or indexed. /// public static void Map( - System.Collections.IDictionary source, + IDictionary source, object target, bool suppressExceptions, params string[] ignoreList) { diff --git a/Source/Csla/Data/ObjectAdapter.cs b/Source/Csla/Data/ObjectAdapter.cs index 62a72a9bf7..46c5d1c4a3 100644 --- a/Source/Csla/Data/ObjectAdapter.cs +++ b/Source/Csla/Data/ObjectAdapter.cs @@ -6,15 +6,10 @@ // An ObjectAdapter is used to convert data in an object //----------------------------------------------------------------------- -using System.Collections; -using System.Data; -using System.ComponentModel; -using System.Reflection; using Csla.Properties; namespace Csla.Data { - /// /// An ObjectAdapter is used to convert data in an object /// or collection into a DataTable. @@ -106,7 +101,7 @@ private IList GetIList(object source) } } - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")] + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")] private void CopyData( DataTable dt, IList ds, List columns) { diff --git a/Source/Csla/Data/SafeDataReader.cs b/Source/Csla/Data/SafeDataReader.cs index f5ed6fa97a..02a2e1615d 100644 --- a/Source/Csla/Data/SafeDataReader.cs +++ b/Source/Csla/Data/SafeDataReader.cs @@ -6,7 +6,6 @@ // This is a DataReader that 'fixes' any null values before //----------------------------------------------------------------------- -using System.Data; #if !NETSTANDARD2_0 && !NET8_0_OR_GREATER using System.Data.SqlClient; #endif diff --git a/Source/Csla/DataPortalClient/DataPortalFactory.cs b/Source/Csla/DataPortalClient/DataPortalFactory.cs index 387ae38d15..82c241c4f1 100644 --- a/Source/Csla/DataPortalClient/DataPortalFactory.cs +++ b/Source/Csla/DataPortalClient/DataPortalFactory.cs @@ -6,8 +6,6 @@ // Implements a data portal service //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; - namespace Csla.DataPortalClient { /// diff --git a/Source/Csla/DataPortalClient/DataPortalProxy.cs b/Source/Csla/DataPortalClient/DataPortalProxy.cs index fecc243836..cb945bb7ea 100644 --- a/Source/Csla/DataPortalClient/DataPortalProxy.cs +++ b/Source/Csla/DataPortalClient/DataPortalProxy.cs @@ -6,7 +6,6 @@ // Abstract data portal proxy with common data portal proxy behaviour. Implements IDataPortalProxy //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; using Csla.Configuration; using Csla.Serialization; using Csla.Serialization.Mobile; diff --git a/Source/Csla/DataPortalClient/HttpCompressionProxy.cs b/Source/Csla/DataPortalClient/HttpCompressionProxy.cs index 47701e4f3a..262292921b 100644 --- a/Source/Csla/DataPortalClient/HttpCompressionProxy.cs +++ b/Source/Csla/DataPortalClient/HttpCompressionProxy.cs @@ -6,9 +6,6 @@ // Implements a data portal proxy to relay data portal //----------------------------------------------------------------------- -using System.Net; -using System.Net.Http; -using System.Runtime.Versioning; using Csla.Configuration; namespace Csla.Channels.Http diff --git a/Source/Csla/DataPortalClient/HttpProxy.cs b/Source/Csla/DataPortalClient/HttpProxy.cs index 4b88e8eb76..914f62d820 100644 --- a/Source/Csla/DataPortalClient/HttpProxy.cs +++ b/Source/Csla/DataPortalClient/HttpProxy.cs @@ -5,16 +5,11 @@ // // Implements a data portal proxy to relay data portal //----------------------------------------------------------------------- + using Csla.Configuration; using Csla.DataPortalClient; using Csla.Properties; -using System.Net; -using System.Net.Http; using System.Net.Http.Headers; -#if NET8_0_OR_GREATER -using System.Runtime.Versioning; -#endif -using System.Text; namespace Csla.Channels.Http { diff --git a/Source/Csla/DataPortalClient/HttpProxyOptions.cs b/Source/Csla/DataPortalClient/HttpProxyOptions.cs index b7fe2bef90..323d363887 100644 --- a/Source/Csla/DataPortalClient/HttpProxyOptions.cs +++ b/Source/Csla/DataPortalClient/HttpProxyOptions.cs @@ -8,9 +8,6 @@ //----------------------------------------------------------------------- using Microsoft.Extensions.DependencyInjection; -#if !NETSTANDARD2_0 && !NET8_0_OR_GREATER -using System.Net.Http; -#endif namespace Csla.Channels.Http { diff --git a/Source/Csla/DataPortalClient/HttpProxyOptionsExtensions.cs b/Source/Csla/DataPortalClient/HttpProxyOptionsExtensions.cs index 450a3058c1..9ac53da778 100644 --- a/Source/Csla/DataPortalClient/HttpProxyOptionsExtensions.cs +++ b/Source/Csla/DataPortalClient/HttpProxyOptionsExtensions.cs @@ -7,9 +7,6 @@ // Extensions for HttpProxyOptions //----------------------------------------------------------------------- -#if !NETSTANDARD2_0 && !NET8_0_OR_GREATER -using System.Net.Http; -#endif namespace Csla.Channels.Http { diff --git a/Source/Csla/DataPortalClient/LocalProxy.cs b/Source/Csla/DataPortalClient/LocalProxy.cs index 15e4013520..615b0d0122 100644 --- a/Source/Csla/DataPortalClient/LocalProxy.cs +++ b/Source/Csla/DataPortalClient/LocalProxy.cs @@ -6,8 +6,6 @@ // Implements a data portal proxy to relay data portal //----------------------------------------------------------------------- -using System.Collections; -using System.Diagnostics.CodeAnalysis; using Csla.Core; using Csla.DataPortalClient; using Csla.Runtime; diff --git a/Source/Csla/DataPortalClient/WebCallCapabilities.cs b/Source/Csla/DataPortalClient/WebCallCapabilities.cs index 6db8ba9e1a..18293449cf 100644 --- a/Source/Csla/DataPortalClient/WebCallCapabilities.cs +++ b/Source/Csla/DataPortalClient/WebCallCapabilities.cs @@ -6,17 +6,13 @@ // Exposes platform-specific web call capabilities //----------------------------------------------------------------------- -using System.Runtime.InteropServices; - namespace Csla.DataPortalClient { - /// /// Determines capabilities of web calls in the current runtime environment /// internal static class WebCallCapabilities { - /// /// Method to determine if the runtime supports synchronous WebClient usage /// WebAssembly specifically disallows use of this synchronous class diff --git a/Source/Csla/DataPortalException.cs b/Source/Csla/DataPortalException.cs index 7b10cf9bbb..3559877109 100644 --- a/Source/Csla/DataPortalException.cs +++ b/Source/Csla/DataPortalException.cs @@ -14,7 +14,7 @@ namespace Csla /// This exception is returned for any errors occurring /// during the server-side DataPortal invocation. /// - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors")] + [SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors")] [Serializable] public class DataPortalException : Exception { @@ -182,7 +182,7 @@ public string BusinessExceptionMessage /// Get the combined stack trace from the server /// and client. /// - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Globalization", "CA1305:SpecifyIFormatProvider", MessageId = "System.String.Format(System.String,System.Object,System.Object,System.Object)")] + [SuppressMessage("Microsoft.Globalization", "CA1305:SpecifyIFormatProvider", MessageId = "System.String.Format(System.String,System.Object,System.Object,System.Object)")] public override string StackTrace { get { return $"{_innerStackTrace}{Environment.NewLine}{base.StackTrace}"; } diff --git a/Source/Csla/DataPortalOperations.cs b/Source/Csla/DataPortalOperations.cs index 484edf95cb..2a9f8c20e1 100644 --- a/Source/Csla/DataPortalOperations.cs +++ b/Source/Csla/DataPortalOperations.cs @@ -5,7 +5,6 @@ // // List of data portal operations. //----------------------------------------------------------------------- -using System.ComponentModel; namespace Csla { diff --git a/Source/Csla/DataPortalT.cs b/Source/Csla/DataPortalT.cs index dfbc2c068d..b026ed3fc0 100644 --- a/Source/Csla/DataPortalT.cs +++ b/Source/Csla/DataPortalT.cs @@ -6,7 +6,6 @@ // Client side data portal used for making asynchronous //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; using System.Globalization; using Csla.Configuration; using Csla.Core; diff --git a/Source/Csla/DynamicBindingListBase.cs b/Source/Csla/DynamicBindingListBase.cs index a9e189a5d9..115c622206 100644 --- a/Source/Csla/DynamicBindingListBase.cs +++ b/Source/Csla/DynamicBindingListBase.cs @@ -6,8 +6,6 @@ // This is the base class from which collections //----------------------------------------------------------------------- -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; using Csla.Core; using Csla.Serialization.Mobile; @@ -222,8 +220,7 @@ public virtual T SaveItem(int index) /// /// Event raised when an object has been saved. /// - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", - "CA1062:ValidateArgumentsOfPublicMethods")] + [SuppressMessage("Microsoft.Design", "CA1062:ValidateArgumentsOfPublicMethods")] public event EventHandler Saved { add @@ -434,7 +431,7 @@ private void DataPortal_Update() throw new NotSupportedException(Properties.Resources.UpdateNotSupportedException); } - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "criteria")] + [SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "criteria")] [Delete] private void DataPortal_Delete(object criteria) { @@ -446,7 +443,7 @@ private void DataPortal_Delete(object criteria) /// requested DataPortal_xyz method. /// /// The DataPortalContext object passed to the DataPortal. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member"), EditorBrowsable(EditorBrowsableState.Advanced)] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member"), EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void DataPortal_OnDataPortalInvoke(DataPortalEventArgs e) { @@ -457,7 +454,7 @@ protected virtual void DataPortal_OnDataPortalInvoke(DataPortalEventArgs e) /// requested DataPortal_xyz method. /// /// The DataPortalContext object passed to the DataPortal. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member"), EditorBrowsable(EditorBrowsableState.Advanced)] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member"), EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void DataPortal_OnDataPortalInvokeComplete(DataPortalEventArgs e) { @@ -469,7 +466,7 @@ protected virtual void DataPortal_OnDataPortalInvokeComplete(DataPortalEventArgs /// /// The DataPortalContext object passed to the DataPortal. /// The Exception thrown during data access. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member"), EditorBrowsable(EditorBrowsableState.Advanced)] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member"), EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void DataPortal_OnDataPortalException(DataPortalEventArgs e, Exception ex) { diff --git a/Source/Csla/DynamicListBase.cs b/Source/Csla/DynamicListBase.cs index 38fd8c938e..460b6e778d 100644 --- a/Source/Csla/DynamicListBase.cs +++ b/Source/Csla/DynamicListBase.cs @@ -6,9 +6,6 @@ // This is the base class from which collections //----------------------------------------------------------------------- -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; using Csla.Core; using Csla.Reflection; using Csla.Serialization.Mobile; @@ -458,7 +455,7 @@ private void DataPortal_Update() throw new NotSupportedException(Properties.Resources.UpdateNotSupportedException); } - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "criteria")] + [SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "criteria")] [Delete] private void DataPortal_Delete(object criteria) { @@ -470,7 +467,7 @@ private void DataPortal_Delete(object criteria) /// requested DataPortal_xyz method. /// /// The DataPortalContext object passed to the DataPortal. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member"), EditorBrowsable(EditorBrowsableState.Advanced)] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member"), EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void DataPortal_OnDataPortalInvoke(DataPortalEventArgs e) { @@ -481,7 +478,7 @@ protected virtual void DataPortal_OnDataPortalInvoke(DataPortalEventArgs e) /// requested DataPortal_xyz method. /// /// The DataPortalContext object passed to the DataPortal. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member"), EditorBrowsable(EditorBrowsableState.Advanced)] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member"), EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void DataPortal_OnDataPortalInvokeComplete(DataPortalEventArgs e) { @@ -493,7 +490,7 @@ protected virtual void DataPortal_OnDataPortalInvokeComplete(DataPortalEventArgs /// /// The DataPortalContext object passed to the DataPortal. /// The Exception thrown during data access. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member"), EditorBrowsable(EditorBrowsableState.Advanced)] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member"), EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void DataPortal_OnDataPortalException(DataPortalEventArgs e, Exception ex) { diff --git a/Source/Csla/EnterpriseServicesSettings.cs b/Source/Csla/EnterpriseServicesSettings.cs index 40b990bee5..de9ca77989 100644 --- a/Source/Csla/EnterpriseServicesSettings.cs +++ b/Source/Csla/EnterpriseServicesSettings.cs @@ -12,7 +12,7 @@ // EnterpriseServices settings [assembly: ApplicationActivation(ActivationOption.Library)] [assembly: ApplicationName("CSLA .NET DataPortal")] -[assembly: Description("CSLA .NET Serviced DataPortal")] +[assembly: System.EnterpriseServices.Description("CSLA .NET Serviced DataPortal")] [assembly: ApplicationAccessControl(false)] #endif \ No newline at end of file diff --git a/Source/Csla/FilteredBindingList.cs b/Source/Csla/FilteredBindingList.cs index 14810f4130..39fd968f34 100644 --- a/Source/Csla/FilteredBindingList.cs +++ b/Source/Csla/FilteredBindingList.cs @@ -6,9 +6,6 @@ // Provides a filtered view into an existing IList(Of T). //----------------------------------------------------------------------- -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Collections; using Csla.Properties; namespace Csla diff --git a/Source/Csla/GlobalUsings.cs b/Source/Csla/GlobalUsings.cs new file mode 100644 index 0000000000..1797fb3765 --- /dev/null +++ b/Source/Csla/GlobalUsings.cs @@ -0,0 +1,3 @@ +// Global using directives + +global using System.Net.Http; \ No newline at end of file diff --git a/Source/Csla/IBusinessBase.cs b/Source/Csla/IBusinessBase.cs index 65b4b7751a..253d1b6910 100644 --- a/Source/Csla/IBusinessBase.cs +++ b/Source/Csla/IBusinessBase.cs @@ -1,5 +1,4 @@ using Csla.Core; -using System.ComponentModel; using Csla.Security; using Csla.Rules; using Csla.Serialization.Mobile; diff --git a/Source/Csla/IBusinessListBase.cs b/Source/Csla/IBusinessListBase.cs index ceaebe89ec..32c1577fdd 100644 --- a/Source/Csla/IBusinessListBase.cs +++ b/Source/Csla/IBusinessListBase.cs @@ -1,7 +1,5 @@ using Csla.Core; -using System.ComponentModel; using Csla.Serialization.Mobile; -using System.Collections.Specialized; namespace Csla { diff --git a/Source/Csla/IChildDataPortalFactory.cs b/Source/Csla/IChildDataPortalFactory.cs index 31e715831f..29e1c006a8 100644 --- a/Source/Csla/IChildDataPortalFactory.cs +++ b/Source/Csla/IChildDataPortalFactory.cs @@ -5,7 +5,6 @@ // // Implements a data portal service //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; namespace Csla { diff --git a/Source/Csla/IChildDataPortalT.cs b/Source/Csla/IChildDataPortalT.cs index 30037bc703..102b5521bf 100644 --- a/Source/Csla/IChildDataPortalT.cs +++ b/Source/Csla/IChildDataPortalT.cs @@ -6,8 +6,6 @@ // Interface defining the members of the child data portal type //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; - namespace Csla { /// diff --git a/Source/Csla/ICommandBase.cs b/Source/Csla/ICommandBase.cs index 451b7fa652..738866b12b 100644 --- a/Source/Csla/ICommandBase.cs +++ b/Source/Csla/ICommandBase.cs @@ -1,5 +1,4 @@ using Csla.Core; -using System.ComponentModel; namespace Csla { diff --git a/Source/Csla/IDataPortalFactory.cs b/Source/Csla/IDataPortalFactory.cs index f2a727b7cd..bca32c2a47 100644 --- a/Source/Csla/IDataPortalFactory.cs +++ b/Source/Csla/IDataPortalFactory.cs @@ -5,7 +5,6 @@ // // Implements a data portal service //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; namespace Csla { diff --git a/Source/Csla/IDataPortalT.cs b/Source/Csla/IDataPortalT.cs index e96ad80a70..2cd8a50e5b 100644 --- a/Source/Csla/IDataPortalT.cs +++ b/Source/Csla/IDataPortalT.cs @@ -6,8 +6,6 @@ // Interface defining the members of the data portal type //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; - namespace Csla { /// diff --git a/Source/Csla/IReadOnlyBase.cs b/Source/Csla/IReadOnlyBase.cs index 48e24d27b2..b0587550d3 100644 --- a/Source/Csla/IReadOnlyBase.cs +++ b/Source/Csla/IReadOnlyBase.cs @@ -2,7 +2,6 @@ using Csla.Rules; using Csla.Security; using Csla.Serialization.Mobile; -using System.ComponentModel; namespace Csla { diff --git a/Source/Csla/IReadOnlyListBase.cs b/Source/Csla/IReadOnlyListBase.cs index 8c8ad1a65d..807130fc6e 100644 --- a/Source/Csla/IReadOnlyListBase.cs +++ b/Source/Csla/IReadOnlyListBase.cs @@ -1,7 +1,5 @@ using Csla.Core; using Csla.Serialization.Mobile; -using System.Collections.Specialized; -using System.ComponentModel; namespace Csla { diff --git a/Source/Csla/LazySingleton.cs b/Source/Csla/LazySingleton.cs index ca0bf0183f..fd1fd8f201 100644 --- a/Source/Csla/LazySingleton.cs +++ b/Source/Csla/LazySingleton.cs @@ -1,6 +1,4 @@ -using System.Diagnostics.CodeAnalysis; - -namespace Csla +namespace Csla { /// /// An alternative to Lazy<T> diff --git a/Source/Csla/LinqObservableCollection.cs b/Source/Csla/LinqObservableCollection.cs index 79d84c373d..d6d86a4d5e 100644 --- a/Source/Csla/LinqObservableCollection.cs +++ b/Source/Csla/LinqObservableCollection.cs @@ -6,10 +6,6 @@ // Synchronized view over a source list, //----------------------------------------------------------------------- -using System.Collections; -using System.Collections.Specialized; -using System.Linq.Expressions; - namespace Csla { /// diff --git a/Source/Csla/NameValueListBase.cs b/Source/Csla/NameValueListBase.cs index 36e9803f22..52c18dbe26 100644 --- a/Source/Csla/NameValueListBase.cs +++ b/Source/Csla/NameValueListBase.cs @@ -6,8 +6,6 @@ // This is the base class from which readonly name/value //----------------------------------------------------------------------- -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; using Csla.Core; using Csla.Properties; using Csla.Serialization.Mobile; @@ -21,7 +19,7 @@ namespace Csla /// /// Type of the key values. /// Type of the values. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix")] + [SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix")] [Serializable] public abstract class NameValueListBase< #if NET8_0_OR_GREATER @@ -292,7 +290,7 @@ private void DataPortal_Update() throw new NotSupportedException(Resources.UpdateNotSupportedException); } - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "criteria")] + [SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "criteria")] [Delete] private void DataPortal_Delete(object criteria) { @@ -304,7 +302,7 @@ private void DataPortal_Delete(object criteria) /// requested DataPortal_XYZ method. /// /// The DataPortalContext object passed to the DataPortal. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] [EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void DataPortal_OnDataPortalInvoke(DataPortalEventArgs e) { @@ -316,7 +314,7 @@ protected virtual void DataPortal_OnDataPortalInvoke(DataPortalEventArgs e) /// requested DataPortal_XYZ method. /// /// The DataPortalContext object passed to the DataPortal. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] [EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void DataPortal_OnDataPortalInvokeComplete(DataPortalEventArgs e) { @@ -329,7 +327,7 @@ protected virtual void DataPortal_OnDataPortalInvokeComplete(DataPortalEventArgs /// /// The DataPortalContext object passed to the DataPortal. /// The Exception thrown during data access. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] [EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void DataPortal_OnDataPortalException(DataPortalEventArgs e, Exception ex) { diff --git a/Source/Csla/PropertyInfo.cs b/Source/Csla/PropertyInfo.cs index 8667671ec4..03e19ed4a2 100644 --- a/Source/Csla/PropertyInfo.cs +++ b/Source/Csla/PropertyInfo.cs @@ -6,9 +6,7 @@ // Maintains metadata about a property. //----------------------------------------------------------------------- -using System.ComponentModel; using System.ComponentModel.DataAnnotations; -using System.Diagnostics.CodeAnalysis; namespace Csla { diff --git a/Source/Csla/ReadOnlyBase.cs b/Source/Csla/ReadOnlyBase.cs index 88369a4d6d..9978f200d7 100644 --- a/Source/Csla/ReadOnlyBase.cs +++ b/Source/Csla/ReadOnlyBase.cs @@ -6,13 +6,7 @@ // This is a base class from which readonly business classes //----------------------------------------------------------------------- -using System.Collections.Concurrent; -using System.ComponentModel; using System.ComponentModel.DataAnnotations; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Reflection; using Csla.Core; using Csla.Core.FieldManager; using Csla.Core.LoadManager; @@ -411,24 +405,24 @@ public T Clone() #region Data Access - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "criteria")] - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + [SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "criteria")] + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] + [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] private void DataPortal_Create(object criteria) { throw new NotSupportedException(Resources.CreateNotSupportedException); } - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] + [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] private void DataPortal_Update() { throw new NotSupportedException(Resources.UpdateNotSupportedException); } - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "criteria")] - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + [SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "criteria")] + [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] + [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] [Delete] private void DataPortal_Delete(object criteria) { @@ -440,7 +434,7 @@ private void DataPortal_Delete(object criteria) /// requested DataPortal_xyz method. /// /// The DataPortalContext object passed to the DataPortal. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] [EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void DataPortal_OnDataPortalInvoke(DataPortalEventArgs e) { @@ -452,7 +446,7 @@ protected virtual void DataPortal_OnDataPortalInvoke(DataPortalEventArgs e) /// requested DataPortal_xyz method. /// /// The DataPortalContext object passed to the DataPortal. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] [EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void DataPortal_OnDataPortalInvokeComplete(DataPortalEventArgs e) { @@ -465,7 +459,7 @@ protected virtual void DataPortal_OnDataPortalInvokeComplete(DataPortalEventArgs /// /// The DataPortalContext object passed to the DataPortal. /// The Exception thrown during data access. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] [EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void DataPortal_OnDataPortalException(DataPortalEventArgs e, Exception ex) { @@ -477,7 +471,7 @@ protected virtual void DataPortal_OnDataPortalException(DataPortalEventArgs e, E /// requested DataPortal_XYZ method. /// /// The DataPortalContext object passed to the DataPortal. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] [EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void Child_OnDataPortalInvoke(DataPortalEventArgs e) { @@ -488,7 +482,7 @@ protected virtual void Child_OnDataPortalInvoke(DataPortalEventArgs e) /// requested DataPortal_XYZ method. /// /// The DataPortalContext object passed to the DataPortal. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] [EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void Child_OnDataPortalInvokeComplete(DataPortalEventArgs e) { @@ -500,7 +494,7 @@ protected virtual void Child_OnDataPortalInvokeComplete(DataPortalEventArgs e) /// /// The DataPortalContext object passed to the DataPortal. /// The Exception thrown during data access. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] [EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void Child_OnDataPortalException(DataPortalEventArgs e, Exception ex) { diff --git a/Source/Csla/ReadOnlyBindingListBase.cs b/Source/Csla/ReadOnlyBindingListBase.cs index 9b837108a5..45ed672846 100644 --- a/Source/Csla/ReadOnlyBindingListBase.cs +++ b/Source/Csla/ReadOnlyBindingListBase.cs @@ -5,8 +5,7 @@ // // This is the base class from which readonly collections //----------------------------------------------------------------------- -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; + using Csla.Core; using Csla.Properties; @@ -98,7 +97,7 @@ private void DataPortal_Update() throw new NotSupportedException(Resources.UpdateNotSupportedException); } - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "criteria")] + [SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "criteria")] [Delete] private void DataPortal_Delete(object criteria) { @@ -110,7 +109,7 @@ private void DataPortal_Delete(object criteria) /// requested DataPortal_xyz method. /// /// The DataPortalContext object passed to the DataPortal. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] [EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void DataPortal_OnDataPortalInvoke(DataPortalEventArgs e) { @@ -122,7 +121,7 @@ protected virtual void DataPortal_OnDataPortalInvoke(DataPortalEventArgs e) /// requested DataPortal_xyz method. /// /// The DataPortalContext object passed to the DataPortal. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] [EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void DataPortal_OnDataPortalInvokeComplete(DataPortalEventArgs e) { @@ -135,7 +134,7 @@ protected virtual void DataPortal_OnDataPortalInvokeComplete(DataPortalEventArgs /// /// The DataPortalContext object passed to the DataPortal. /// The Exception thrown during data access. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] [EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void DataPortal_OnDataPortalException(DataPortalEventArgs e, Exception ex) { @@ -147,7 +146,7 @@ protected virtual void DataPortal_OnDataPortalException(DataPortalEventArgs e, E /// requested DataPortal_XYZ method. /// /// The DataPortalContext object passed to the DataPortal. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] [EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void Child_OnDataPortalInvoke(DataPortalEventArgs e) { @@ -158,7 +157,7 @@ protected virtual void Child_OnDataPortalInvoke(DataPortalEventArgs e) /// requested DataPortal_XYZ method. /// /// The DataPortalContext object passed to the DataPortal. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] [EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void Child_OnDataPortalInvokeComplete(DataPortalEventArgs e) { @@ -170,7 +169,7 @@ protected virtual void Child_OnDataPortalInvokeComplete(DataPortalEventArgs e) /// /// The DataPortalContext object passed to the DataPortal. /// The Exception thrown during data access. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", MessageId = "Member")] [EditorBrowsable(EditorBrowsableState.Advanced)] protected virtual void Child_OnDataPortalException(DataPortalEventArgs e, Exception ex) { diff --git a/Source/Csla/ReadOnlyListBase.cs b/Source/Csla/ReadOnlyListBase.cs index de00e36e64..8fa8e8a8e5 100644 --- a/Source/Csla/ReadOnlyListBase.cs +++ b/Source/Csla/ReadOnlyListBase.cs @@ -6,8 +6,6 @@ // This is the base class from which readonly collections //----------------------------------------------------------------------- -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; using Csla.Core; using Csla.Properties; diff --git a/Source/Csla/Reflection/CallMethodException.cs b/Source/Csla/Reflection/CallMethodException.cs index e265d02c1b..c8fcde32b8 100644 --- a/Source/Csla/Reflection/CallMethodException.cs +++ b/Source/Csla/Reflection/CallMethodException.cs @@ -15,7 +15,7 @@ namespace Csla.Reflection /// underlying business object method that was /// being invoked. /// - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors")] + [SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors")] [Serializable] public class CallMethodException : Exception { @@ -27,7 +27,7 @@ public class CallMethodException : Exception /// /// /// - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Globalization", "CA1305:SpecifyIFormatProvider", MessageId = "System.String.Format(System.String,System.Object,System.Object,System.Object)")] + [SuppressMessage("Microsoft.Globalization", "CA1305:SpecifyIFormatProvider", MessageId = "System.String.Format(System.String,System.Object,System.Object,System.Object)")] public override string StackTrace { get diff --git a/Source/Csla/Reflection/DynamicMemberHandle.cs b/Source/Csla/Reflection/DynamicMemberHandle.cs index eda4c49bcb..5a1f4b3e85 100644 --- a/Source/Csla/Reflection/DynamicMemberHandle.cs +++ b/Source/Csla/Reflection/DynamicMemberHandle.cs @@ -6,8 +6,6 @@ // // no summary //----------------------------------------------------------------------- -using System.Reflection; - namespace Csla.Reflection { internal class DynamicMemberHandle diff --git a/Source/Csla/Reflection/DynamicMethodHandlerFactory.cs b/Source/Csla/Reflection/DynamicMethodHandlerFactory.cs index b4db1d0fcd..30cbaf7ea9 100644 --- a/Source/Csla/Reflection/DynamicMethodHandlerFactory.cs +++ b/Source/Csla/Reflection/DynamicMethodHandlerFactory.cs @@ -6,11 +6,7 @@ // // Delegate for a dynamic constructor method. //----------------------------------------------------------------------- -using System.Linq.Expressions; -using System.Reflection; -#if !NETSTANDARD2_0 && !NET8_0_OR_GREATER -using System.Reflection.Emit; -#endif + using Csla.Properties; namespace Csla.Reflection diff --git a/Source/Csla/Reflection/ExpressionExtensions.cs b/Source/Csla/Reflection/ExpressionExtensions.cs index b85d985d44..be8101436a 100644 --- a/Source/Csla/Reflection/ExpressionExtensions.cs +++ b/Source/Csla/Reflection/ExpressionExtensions.cs @@ -6,8 +6,6 @@ // Extension methods for Expression types //----------------------------------------------------------------------- -using System.Linq.Expressions; - namespace Csla.Reflection { /// diff --git a/Source/Csla/Reflection/LateBoundObject.cs b/Source/Csla/Reflection/LateBoundObject.cs index 118ed51fb7..8ae8d5afda 100644 --- a/Source/Csla/Reflection/LateBoundObject.cs +++ b/Source/Csla/Reflection/LateBoundObject.cs @@ -6,7 +6,6 @@ // Enables simple invocation of methods //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; using Csla.Properties; namespace Csla.Reflection diff --git a/Source/Csla/Reflection/MethodCaller.cs b/Source/Csla/Reflection/MethodCaller.cs index d828c8f5e9..474f9a9643 100644 --- a/Source/Csla/Reflection/MethodCaller.cs +++ b/Source/Csla/Reflection/MethodCaller.cs @@ -6,11 +6,7 @@ // Provides methods to dynamically find and call methods. //----------------------------------------------------------------------- -using System.ComponentModel; -using System.Reflection; -using System.Globalization; using Csla.Properties; -using System.Diagnostics.CodeAnalysis; #if NET8_0_OR_GREATER using System.Runtime.Loader; diff --git a/Source/Csla/Reflection/Reflect.cs b/Source/Csla/Reflection/Reflect.cs index 63cc115e01..7ed1583c98 100644 --- a/Source/Csla/Reflection/Reflect.cs +++ b/Source/Csla/Reflection/Reflect.cs @@ -6,9 +6,6 @@ // Provides strong-typed reflection of the //----------------------------------------------------------------------- -using System.Linq.Expressions; -using System.Reflection; - namespace Csla.Reflection { /// diff --git a/Source/Csla/Reflection/ServiceProviderMethodCaller.cs b/Source/Csla/Reflection/ServiceProviderMethodCaller.cs index f26d4bb936..149cec46fe 100644 --- a/Source/Csla/Reflection/ServiceProviderMethodCaller.cs +++ b/Source/Csla/Reflection/ServiceProviderMethodCaller.cs @@ -6,8 +6,6 @@ // Dynamically find/invoke methods with DI provided params //----------------------------------------------------------------------- -using System.Collections.Concurrent; -using System.Reflection; #if NET8_0_OR_GREATER using System.Runtime.Loader; @@ -15,7 +13,6 @@ #endif using Csla.Properties; using Csla.Server; -using System.Diagnostics.CodeAnalysis; namespace Csla.Reflection { diff --git a/Source/Csla/Reflection/ServiceProviderMethodInfo.cs b/Source/Csla/Reflection/ServiceProviderMethodInfo.cs index 796102066d..303c2527da 100644 --- a/Source/Csla/Reflection/ServiceProviderMethodInfo.cs +++ b/Source/Csla/Reflection/ServiceProviderMethodInfo.cs @@ -6,7 +6,6 @@ // Class that contains cached metadata about data portal //----------------------------------------------------------------------- -using System.Reflection; using Csla.Server; namespace Csla.Reflection diff --git a/Source/Csla/Rules/AddObjectAuthorizationRulesContext.cs b/Source/Csla/Rules/AddObjectAuthorizationRulesContext.cs index 91ee3b639c..d5af9fc463 100644 --- a/Source/Csla/Rules/AddObjectAuthorizationRulesContext.cs +++ b/Source/Csla/Rules/AddObjectAuthorizationRulesContext.cs @@ -5,6 +5,7 @@ // // Context for the AddObjectAuthorizationRulesContext method. //----------------------------------------------------------------------- + using Microsoft.Extensions.DependencyInjection; namespace Csla.Rules diff --git a/Source/Csla/Rules/AuthorizationContext.cs b/Source/Csla/Rules/AuthorizationContext.cs index a782cf3b1d..8b3ca3a398 100644 --- a/Source/Csla/Rules/AuthorizationContext.cs +++ b/Source/Csla/Rules/AuthorizationContext.cs @@ -6,8 +6,6 @@ // Context information provided to an authorization //----------------------------------------------------------------------- -using System.ComponentModel; - namespace Csla.Rules { /// diff --git a/Source/Csla/Rules/AuthorizationRuleManager.cs b/Source/Csla/Rules/AuthorizationRuleManager.cs index 50e4b9b226..2b7aba4758 100644 --- a/Source/Csla/Rules/AuthorizationRuleManager.cs +++ b/Source/Csla/Rules/AuthorizationRuleManager.cs @@ -6,7 +6,6 @@ // Manages the list of authorization //----------------------------------------------------------------------- -using System.Reflection; #if NET8_0_OR_GREATER using System.Runtime.Loader; diff --git a/Source/Csla/Rules/BusinessRules.cs b/Source/Csla/Rules/BusinessRules.cs index 290c51d73d..a90ead8168 100644 --- a/Source/Csla/Rules/BusinessRules.cs +++ b/Source/Csla/Rules/BusinessRules.cs @@ -6,8 +6,6 @@ // Tracks the business rules for a business object. //----------------------------------------------------------------------- -using System.Collections; -using System.Diagnostics.CodeAnalysis; using Csla.Core; using Csla.Serialization.Mobile; using Csla.Server; diff --git a/Source/Csla/Rules/BusinessRulesExtensions.cs b/Source/Csla/Rules/BusinessRulesExtensions.cs index 5575462790..55b87adfd5 100644 --- a/Source/Csla/Rules/BusinessRulesExtensions.cs +++ b/Source/Csla/Rules/BusinessRulesExtensions.cs @@ -6,7 +6,6 @@ // Extension methods to simplify lambda business rules //----------------------------------------------------------------------- -using System.Text; using Csla.Core; namespace Csla.Rules diff --git a/Source/Csla/Rules/CommonRules.cs b/Source/Csla/Rules/CommonRules.cs index ec803c7679..bf1e224f0e 100644 --- a/Source/Csla/Rules/CommonRules.cs +++ b/Source/Csla/Rules/CommonRules.cs @@ -6,9 +6,6 @@ // Base class used to create common rules. //----------------------------------------------------------------------- -using System.Text; -using System.Text.RegularExpressions; - namespace Csla.Rules.CommonRules { /// diff --git a/Source/Csla/Rules/IRuleContext.cs b/Source/Csla/Rules/IRuleContext.cs index 24ddae54ff..25ad09b880 100644 --- a/Source/Csla/Rules/IRuleContext.cs +++ b/Source/Csla/Rules/IRuleContext.cs @@ -5,7 +5,7 @@ // // Context information provided to a business rule //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; + using Csla.Core; namespace Csla.Rules diff --git a/Source/Csla/Rules/RuleContext.cs b/Source/Csla/Rules/RuleContext.cs index e857ab15a5..6342f08566 100644 --- a/Source/Csla/Rules/RuleContext.cs +++ b/Source/Csla/Rules/RuleContext.cs @@ -6,8 +6,6 @@ // Context information provided to a business rule //----------------------------------------------------------------------- -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; using Csla.Core; using Csla.Properties; diff --git a/Source/Csla/Rules/RuleUri.cs b/Source/Csla/Rules/RuleUri.cs index 40d2f832eb..33e9154b84 100644 --- a/Source/Csla/Rules/RuleUri.cs +++ b/Source/Csla/Rules/RuleUri.cs @@ -6,8 +6,6 @@ // Parses a rule:// URI to provide //----------------------------------------------------------------------- -using System.Text; - namespace Csla.Rules { /// diff --git a/Source/Csla/Runtime/AssemblyLoadContextManager.cs b/Source/Csla/Runtime/AssemblyLoadContextManager.cs index 32f352efbf..f5716c5357 100644 --- a/Source/Csla/Runtime/AssemblyLoadContextManager.cs +++ b/Source/Csla/Runtime/AssemblyLoadContextManager.cs @@ -6,7 +6,7 @@ // // Provides common access to "AssemblyLoadContext" logic //----------------------------------------------------------------------- -using System.Collections.Concurrent; + using System.Runtime.Loader; namespace Csla.Runtime diff --git a/Source/Csla/Security/UsernameCriteria.cs b/Source/Csla/Security/UsernameCriteria.cs index 5846d39103..9321d35d89 100644 --- a/Source/Csla/Security/UsernameCriteria.cs +++ b/Source/Csla/Security/UsernameCriteria.cs @@ -6,8 +6,6 @@ // Criteria class for passing a //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; - namespace Csla.Security { /// diff --git a/Source/Csla/Serialization/Mobile/AssemblyNameTranslator.cs b/Source/Csla/Serialization/Mobile/AssemblyNameTranslator.cs index 809b3be7d8..1a51aff9f5 100644 --- a/Source/Csla/Serialization/Mobile/AssemblyNameTranslator.cs +++ b/Source/Csla/Serialization/Mobile/AssemblyNameTranslator.cs @@ -6,8 +6,6 @@ // Translates assembly names to and from short //----------------------------------------------------------------------- -using System.ComponentModel.DataAnnotations; - namespace Csla.Serialization.Mobile { /// diff --git a/Source/Csla/Serialization/Mobile/Configuration/MobileFormatterConfigurationExtensions.cs b/Source/Csla/Serialization/Mobile/Configuration/MobileFormatterConfigurationExtensions.cs index 5633f17837..ff4b7142dc 100644 --- a/Source/Csla/Serialization/Mobile/Configuration/MobileFormatterConfigurationExtensions.cs +++ b/Source/Csla/Serialization/Mobile/Configuration/MobileFormatterConfigurationExtensions.cs @@ -5,7 +5,7 @@ // // Implement extension methods for MobileFormatter configuration //----------------------------------------------------------------------- -using System.Security.Claims; + using Csla.Serialization.Mobile; using Csla.Serialization.Mobile.CustomSerializers; using Microsoft.Extensions.DependencyInjection; diff --git a/Source/Csla/Serialization/Mobile/Configuration/MobileFormatterOptions.cs b/Source/Csla/Serialization/Mobile/Configuration/MobileFormatterOptions.cs index dc32788b2b..364fa54349 100644 --- a/Source/Csla/Serialization/Mobile/Configuration/MobileFormatterOptions.cs +++ b/Source/Csla/Serialization/Mobile/Configuration/MobileFormatterOptions.cs @@ -5,6 +5,7 @@ // // Options for MobileFormatter configuration //----------------------------------------------------------------------- + using Csla.Serialization.Mobile; namespace Csla.Configuration; diff --git a/Source/Csla/Serialization/Mobile/CslaReaderWriterFactory.cs b/Source/Csla/Serialization/Mobile/CslaReaderWriterFactory.cs index b5f6b3a7c3..c6b4cb3b7b 100644 --- a/Source/Csla/Serialization/Mobile/CslaReaderWriterFactory.cs +++ b/Source/Csla/Serialization/Mobile/CslaReaderWriterFactory.cs @@ -5,6 +5,7 @@ // // Factory class that is used to create Reader/Writer pair of classes //----------------------------------------------------------------------- + using System.Runtime.Serialization; namespace Csla.Serialization.Mobile diff --git a/Source/Csla/Serialization/Mobile/CslaXmlBinaryReader.cs b/Source/Csla/Serialization/Mobile/CslaXmlBinaryReader.cs index bbb86860f7..e3f0cddf3c 100644 --- a/Source/Csla/Serialization/Mobile/CslaXmlBinaryReader.cs +++ b/Source/Csla/Serialization/Mobile/CslaXmlBinaryReader.cs @@ -1,5 +1,4 @@ using System.Runtime.Serialization; -using System.Xml; namespace Csla.Serialization.Mobile { diff --git a/Source/Csla/Serialization/Mobile/CslaXmlBinaryWriter.cs b/Source/Csla/Serialization/Mobile/CslaXmlBinaryWriter.cs index 00da0d475f..1225a90ea8 100644 --- a/Source/Csla/Serialization/Mobile/CslaXmlBinaryWriter.cs +++ b/Source/Csla/Serialization/Mobile/CslaXmlBinaryWriter.cs @@ -1,5 +1,4 @@ using System.Runtime.Serialization; -using System.Xml; namespace Csla.Serialization.Mobile { diff --git a/Source/Csla/Serialization/Mobile/CslaXmlReader.cs b/Source/Csla/Serialization/Mobile/CslaXmlReader.cs index eef10b15c5..3650bc7602 100644 --- a/Source/Csla/Serialization/Mobile/CslaXmlReader.cs +++ b/Source/Csla/Serialization/Mobile/CslaXmlReader.cs @@ -1,5 +1,4 @@ using System.Runtime.Serialization; -using System.Xml; namespace Csla.Serialization.Mobile { diff --git a/Source/Csla/Serialization/Mobile/CslaXmlWriter.cs b/Source/Csla/Serialization/Mobile/CslaXmlWriter.cs index c569b11f8a..3c30c96bbe 100644 --- a/Source/Csla/Serialization/Mobile/CslaXmlWriter.cs +++ b/Source/Csla/Serialization/Mobile/CslaXmlWriter.cs @@ -1,5 +1,4 @@ using System.Runtime.Serialization; -using System.Xml; namespace Csla.Serialization.Mobile { diff --git a/Source/Csla/Serialization/Mobile/CustomSerializers/ClaimsPrincipalSerializer.cs b/Source/Csla/Serialization/Mobile/CustomSerializers/ClaimsPrincipalSerializer.cs index f0e347693b..afddffc13b 100644 --- a/Source/Csla/Serialization/Mobile/CustomSerializers/ClaimsPrincipalSerializer.cs +++ b/Source/Csla/Serialization/Mobile/CustomSerializers/ClaimsPrincipalSerializer.cs @@ -6,7 +6,7 @@ // A formatter that can serialize and deserialize a ClaimsPrincipal object //----------------------------------------------------------------------- -using System.Security.Claims; +using System.Text.Json; namespace Csla.Serialization.Mobile.CustomSerializers; @@ -45,7 +45,6 @@ public void Serialize(object obj, SerializationInfo info) } } #else -using System.Text.Json; /// /// A formatter that can serialize and deserialize a ClaimsPrincipal object. diff --git a/Source/Csla/Serialization/Mobile/IMobileSerializer.cs b/Source/Csla/Serialization/Mobile/IMobileSerializer.cs index a366d82d6e..89f251a573 100644 --- a/Source/Csla/Serialization/Mobile/IMobileSerializer.cs +++ b/Source/Csla/Serialization/Mobile/IMobileSerializer.cs @@ -5,8 +5,6 @@ // // Custom serializer for a type //----------------------------------------------------------------------- -using System.Text; -using Csla.Core; namespace Csla.Serialization.Mobile { diff --git a/Source/Csla/Serialization/Mobile/MobileFormatter.cs b/Source/Csla/Serialization/Mobile/MobileFormatter.cs index 6c61a388a9..f4fc628e1f 100644 --- a/Source/Csla/Serialization/Mobile/MobileFormatter.cs +++ b/Source/Csla/Serialization/Mobile/MobileFormatter.cs @@ -6,7 +6,6 @@ // Serializes and deserializes objects //----------------------------------------------------------------------- -using System.ComponentModel.DataAnnotations; using Csla.Configuration; using Csla.Properties; using Csla.Reflection; @@ -22,7 +21,7 @@ namespace Csla.Serialization.Mobile /// /// #if TESTING - [System.Diagnostics.DebuggerStepThrough] + [DebuggerStepThrough] #endif public sealed class MobileFormatter(ApplicationContext applicationContext) : ISerializationFormatter { diff --git a/Source/Csla/Serialization/Mobile/SerializationInfo.cs b/Source/Csla/Serialization/Mobile/SerializationInfo.cs index bdf39c30a0..7823f95bc2 100644 --- a/Source/Csla/Serialization/Mobile/SerializationInfo.cs +++ b/Source/Csla/Serialization/Mobile/SerializationInfo.cs @@ -6,7 +6,6 @@ // Object containing the serialization //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; using System.Runtime.Serialization; namespace Csla.Serialization.Mobile @@ -16,7 +15,7 @@ namespace Csla.Serialization.Mobile /// data for a specific object. /// #if TESTING - [System.Diagnostics.DebuggerNonUserCode] + [DebuggerNonUserCode] #endif [Serializable] [DataContract] diff --git a/Source/Csla/Server/ChildDataPortal.cs b/Source/Csla/Server/ChildDataPortal.cs index 87e526c10b..b0a22adbfa 100644 --- a/Source/Csla/Server/ChildDataPortal.cs +++ b/Source/Csla/Server/ChildDataPortal.cs @@ -6,8 +6,6 @@ // Invoke data portal methods on child //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; - namespace Csla.Server { /// diff --git a/Source/Csla/Server/ChildDataPortalFactory.cs b/Source/Csla/Server/ChildDataPortalFactory.cs index 7d2fc14759..a68c31192e 100644 --- a/Source/Csla/Server/ChildDataPortalFactory.cs +++ b/Source/Csla/Server/ChildDataPortalFactory.cs @@ -6,8 +6,6 @@ // Implements a data portal service //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; - namespace Csla.Server { /// diff --git a/Source/Csla/Server/Dashboard/Dashboard.cs b/Source/Csla/Server/Dashboard/Dashboard.cs index fa37cbb22d..77f02002b1 100644 --- a/Source/Csla/Server/Dashboard/Dashboard.cs +++ b/Source/Csla/Server/Dashboard/Dashboard.cs @@ -6,8 +6,6 @@ // Data portal dashboard //----------------------------------------------------------------------- -using System.Collections.Concurrent; - namespace Csla.Server.Dashboard { /// diff --git a/Source/Csla/Server/DataPortal.cs b/Source/Csla/Server/DataPortal.cs index e19b0ff141..43c04d978a 100644 --- a/Source/Csla/Server/DataPortal.cs +++ b/Source/Csla/Server/DataPortal.cs @@ -6,9 +6,6 @@ // Implements the server-side DataPortal //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; -using System.Security.Claims; -using System.Security.Principal; using Csla.Configuration; using Csla.Properties; using Csla.Server.Dashboard; @@ -435,7 +432,7 @@ private async Task Execute( /// object passed to the server. /// /// True if the client-side proxy should synchronously invoke the server. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1062:ValidateArgumentsOfPublicMethods")] + [SuppressMessage("Microsoft.Design", "CA1062:ValidateArgumentsOfPublicMethods")] public async Task Update(object obj, DataPortalContext context, bool isSync) { Type objectType = null; diff --git a/Source/Csla/Server/DataPortalBroker.cs b/Source/Csla/Server/DataPortalBroker.cs index 63f8d7af9c..7e9636196e 100644 --- a/Source/Csla/Server/DataPortalBroker.cs +++ b/Source/Csla/Server/DataPortalBroker.cs @@ -6,8 +6,6 @@ // Allows interception of DataPortal call //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; - namespace Csla.Server { /// diff --git a/Source/Csla/Server/DataPortalContext.cs b/Source/Csla/Server/DataPortalContext.cs index 77eaa02891..d99f15e5f4 100644 --- a/Source/Csla/Server/DataPortalContext.cs +++ b/Source/Csla/Server/DataPortalContext.cs @@ -6,7 +6,6 @@ // Provides consistent context information between the client //----------------------------------------------------------------------- -using System.Security.Principal; using Csla.Core; using Csla.Configuration; using Csla.Serialization; diff --git a/Source/Csla/Server/DataPortalException.cs b/Source/Csla/Server/DataPortalException.cs index f652d391c6..f94ef7d816 100644 --- a/Source/Csla/Server/DataPortalException.cs +++ b/Source/Csla/Server/DataPortalException.cs @@ -13,7 +13,7 @@ namespace Csla.Server /// server-side DataPortal and contains the exception /// and context data from the server. /// - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors")] + [SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors")] [Serializable] public class DataPortalException : Exception { @@ -28,7 +28,7 @@ public class DataPortalException : Exception /// Get the server-side stack trace from the /// original exception. /// - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Globalization", "CA1305:SpecifyIFormatProvider", MessageId = "System.String.Format(System.String,System.Object,System.Object,System.Object)")] + [SuppressMessage("Microsoft.Globalization", "CA1305:SpecifyIFormatProvider", MessageId = "System.String.Format(System.String,System.Object,System.Object,System.Object)")] public override string StackTrace { get { return $"{_innerStackTrace}{Environment.NewLine}{base.StackTrace}"; } diff --git a/Source/Csla/Server/DataPortalMethodCache.cs b/Source/Csla/Server/DataPortalMethodCache.cs index 94007e2a46..68fc22a3d4 100644 --- a/Source/Csla/Server/DataPortalMethodCache.cs +++ b/Source/Csla/Server/DataPortalMethodCache.cs @@ -11,7 +11,6 @@ using Csla.Runtime; #endif using Csla.Reflection; -using System.Diagnostics.CodeAnalysis; namespace Csla.Server { diff --git a/Source/Csla/Server/DataPortalSelector.cs b/Source/Csla/Server/DataPortalSelector.cs index 26957c5691..7e9d5edb40 100644 --- a/Source/Csla/Server/DataPortalSelector.cs +++ b/Source/Csla/Server/DataPortalSelector.cs @@ -6,7 +6,6 @@ // Selects the appropriate data portal implementation //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; using Csla.Properties; namespace Csla.Server diff --git a/Source/Csla/Server/DataPortalTarget.cs b/Source/Csla/Server/DataPortalTarget.cs index 445aa142da..4d477711ea 100644 --- a/Source/Csla/Server/DataPortalTarget.cs +++ b/Source/Csla/Server/DataPortalTarget.cs @@ -6,7 +6,6 @@ // Encapsulates server-side data portal invocations //----------------------------------------------------------------------- -using System.Collections.Concurrent; using Csla.Core; #if NET8_0_OR_GREATER diff --git a/Source/Csla/Server/DefaultDataPortalActivator.cs b/Source/Csla/Server/DefaultDataPortalActivator.cs index e73ff5d58a..bc07399275 100644 --- a/Source/Csla/Server/DefaultDataPortalActivator.cs +++ b/Source/Csla/Server/DefaultDataPortalActivator.cs @@ -6,7 +6,6 @@ // Defines a type used to activate concrete business instances. //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; using Csla.Core; using Microsoft.Extensions.DependencyInjection; diff --git a/Source/Csla/Server/FactoryDataPortal.cs b/Source/Csla/Server/FactoryDataPortal.cs index 530b4bd19a..c9bdba7cea 100644 --- a/Source/Csla/Server/FactoryDataPortal.cs +++ b/Source/Csla/Server/FactoryDataPortal.cs @@ -6,7 +6,6 @@ // Server-side data portal implementation that //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; using Csla.Configuration; using Csla.Properties; diff --git a/Source/Csla/Server/GenericBusinessException.cs b/Source/Csla/Server/GenericBusinessException.cs index e634b59e7f..84a8d02546 100644 --- a/Source/Csla/Server/GenericBusinessException.cs +++ b/Source/Csla/Server/GenericBusinessException.cs @@ -6,15 +6,13 @@ // // This exception is returned as BusinessException in DataPortalException when the //----------------------------------------------------------------------- -using System.Collections; - namespace Csla.Server { /// /// This exception is returned as BusinessException in DataPortalException when the /// serverside/inner exception is not serializable /// - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors")] + [SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors")] [Serializable] public class GenericBusinessException : Exception { diff --git a/Source/Csla/Server/Hosts/DataPortalChannel/DataPortalErrorInfo.cs b/Source/Csla/Server/Hosts/DataPortalChannel/DataPortalErrorInfo.cs index dc34358b90..fb3994133c 100644 --- a/Source/Csla/Server/Hosts/DataPortalChannel/DataPortalErrorInfo.cs +++ b/Source/Csla/Server/Hosts/DataPortalChannel/DataPortalErrorInfo.cs @@ -6,8 +6,6 @@ // Message containing details about any //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; - namespace Csla.Server.Hosts.DataPortalChannel { /// diff --git a/Source/Csla/Server/IDataPortalActivator.cs b/Source/Csla/Server/IDataPortalActivator.cs index 48434bc4a9..c54a7314f2 100644 --- a/Source/Csla/Server/IDataPortalActivator.cs +++ b/Source/Csla/Server/IDataPortalActivator.cs @@ -6,8 +6,6 @@ // Defines a type used to activate concrete business instances. //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; - namespace Csla.Server { /// diff --git a/Source/Csla/Server/IDataPortalServer.cs b/Source/Csla/Server/IDataPortalServer.cs index cc4f4385dd..017ebb96ce 100644 --- a/Source/Csla/Server/IDataPortalServer.cs +++ b/Source/Csla/Server/IDataPortalServer.cs @@ -6,8 +6,6 @@ // Interface implemented by server-side data portal //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; - namespace Csla.Server { /// diff --git a/Source/Csla/Server/Interceptors/ServerSide/RevalidatingInterceptor.cs b/Source/Csla/Server/Interceptors/ServerSide/RevalidatingInterceptor.cs index 7884bd6adb..89e420032b 100644 --- a/Source/Csla/Server/Interceptors/ServerSide/RevalidatingInterceptor.cs +++ b/Source/Csla/Server/Interceptors/ServerSide/RevalidatingInterceptor.cs @@ -6,7 +6,6 @@ // Initiates revalidation on business objects during data portal operations //----------------------------------------------------------------------- -using System.Collections; using Csla.Core; using Csla.Properties; diff --git a/Source/Csla/Server/ObjectFactory.cs b/Source/Csla/Server/ObjectFactory.cs index 4c4c43a776..c6c41a216b 100644 --- a/Source/Csla/Server/ObjectFactory.cs +++ b/Source/Csla/Server/ObjectFactory.cs @@ -6,7 +6,6 @@ // Base class to be used when creating a data portal //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; using Csla.Core; using Csla.Properties; using Csla.Reflection; diff --git a/Source/Csla/Server/ServicedDataPortalReadCommitted.cs b/Source/Csla/Server/ServicedDataPortalReadCommitted.cs index b7906d4080..c3bcf35c73 100644 --- a/Source/Csla/Server/ServicedDataPortalReadCommitted.cs +++ b/Source/Csla/Server/ServicedDataPortalReadCommitted.cs @@ -6,8 +6,8 @@ // // Implements the server-side Serviced //----------------------------------------------------------------------- + using System.EnterpriseServices; -using System.Runtime.InteropServices; namespace Csla.Server { diff --git a/Source/Csla/Server/ServicedDataPortalReadUncommitted.cs b/Source/Csla/Server/ServicedDataPortalReadUncommitted.cs index 800c1ca7f2..b60d324154 100644 --- a/Source/Csla/Server/ServicedDataPortalReadUncommitted.cs +++ b/Source/Csla/Server/ServicedDataPortalReadUncommitted.cs @@ -6,8 +6,8 @@ // // Implements the server-side Serviced //----------------------------------------------------------------------- + using System.EnterpriseServices; -using System.Runtime.InteropServices; namespace Csla.Server { diff --git a/Source/Csla/Server/ServicedDataPortalRepeatableRead.cs b/Source/Csla/Server/ServicedDataPortalRepeatableRead.cs index f684a05f68..5ff3e0bc66 100644 --- a/Source/Csla/Server/ServicedDataPortalRepeatableRead.cs +++ b/Source/Csla/Server/ServicedDataPortalRepeatableRead.cs @@ -6,8 +6,8 @@ // // Implements the server-side Serviced //----------------------------------------------------------------------- + using System.EnterpriseServices; -using System.Runtime.InteropServices; namespace Csla.Server { diff --git a/Source/Csla/Server/ServicedDataPortalSerializable.cs b/Source/Csla/Server/ServicedDataPortalSerializable.cs index c5761a037a..d53a062cfa 100644 --- a/Source/Csla/Server/ServicedDataPortalSerializable.cs +++ b/Source/Csla/Server/ServicedDataPortalSerializable.cs @@ -6,8 +6,8 @@ // // Implements the server-side Serviced //----------------------------------------------------------------------- + using System.EnterpriseServices; -using System.Runtime.InteropServices; namespace Csla.Server { diff --git a/Source/Csla/Server/SimpleDataPortal.cs b/Source/Csla/Server/SimpleDataPortal.cs index ad087a1d8e..9b5f880633 100644 --- a/Source/Csla/Server/SimpleDataPortal.cs +++ b/Source/Csla/Server/SimpleDataPortal.cs @@ -6,7 +6,6 @@ // Implements the server-side DataPortal as discussed //----------------------------------------------------------------------- -using System.Diagnostics.CodeAnalysis; using Csla.Properties; namespace Csla.Server @@ -46,8 +45,8 @@ public SimpleDataPortal(ApplicationContext applicationContext, IDataPortalActiva /// object passed to the server. /// /// True if the client-side proxy should synchronously invoke the server. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Globalization", "CA1303:DoNotPassLiteralsAsLocalizedParameters", MessageId = "Csla.Server.DataPortalException.#ctor(System.String,System.Exception,Csla.Server.DataPortalResult)")] - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")] + [SuppressMessage("Microsoft.Globalization", "CA1303:DoNotPassLiteralsAsLocalizedParameters", MessageId = "Csla.Server.DataPortalException.#ctor(System.String,System.Exception,Csla.Server.DataPortalResult)")] + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")] public async Task Create( #if NET8_0_OR_GREATER [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] @@ -102,8 +101,8 @@ public async Task Create( /// object passed to the server. /// /// True if the client-side proxy should synchronously invoke the server. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Globalization", "CA1303:DoNotPassLiteralsAsLocalizedParameters", MessageId = "Csla.Server.DataPortalException.#ctor(System.String,System.Exception,Csla.Server.DataPortalResult)")] - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")] + [SuppressMessage("Microsoft.Globalization", "CA1303:DoNotPassLiteralsAsLocalizedParameters", MessageId = "Csla.Server.DataPortalException.#ctor(System.String,System.Exception,Csla.Server.DataPortalResult)")] + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")] public async Task Fetch( #if NET8_0_OR_GREATER [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] @@ -209,8 +208,8 @@ private async Task Execute( /// object passed to the server. /// /// True if the client-side proxy should synchronously invoke the server. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Globalization", "CA1303:DoNotPassLiteralsAsLocalizedParameters", MessageId = "Csla.Server.DataPortalException.#ctor(System.String,System.Exception,Csla.Server.DataPortalResult)")] + [SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] + [SuppressMessage("Microsoft.Globalization", "CA1303:DoNotPassLiteralsAsLocalizedParameters", MessageId = "Csla.Server.DataPortalException.#ctor(System.String,System.Exception,Csla.Server.DataPortalResult)")] public async Task Update(object obj, DataPortalContext context, bool isSync) { DataPortalOperations operation = DataPortalOperations.Update; @@ -303,7 +302,7 @@ private async Task Execute(DataPortalTarget obj, DataPortalCon /// object passed to the server. /// /// True if the client-side proxy should synchronously invoke the server. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Globalization", "CA1303:DoNotPassLiteralsAsLocalizedParameters", MessageId = "Csla.Server.DataPortalException.#ctor(System.String,System.Exception,Csla.Server.DataPortalResult)")] + [SuppressMessage("Microsoft.Globalization", "CA1303:DoNotPassLiteralsAsLocalizedParameters", MessageId = "Csla.Server.DataPortalException.#ctor(System.String,System.Exception,Csla.Server.DataPortalResult)")] public async Task Delete( #if NET8_0_OR_GREATER [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] diff --git a/Source/Csla/Server/TransactionalDataPortal.cs b/Source/Csla/Server/TransactionalDataPortal.cs index 794e23b004..64d1994a25 100644 --- a/Source/Csla/Server/TransactionalDataPortal.cs +++ b/Source/Csla/Server/TransactionalDataPortal.cs @@ -8,9 +8,9 @@ #if NET8_0_OR_GREATER using System.Diagnostics.CodeAnalysis; -using System.Runtime.Versioning; #endif using System.Transactions; +using IsolationLevel = System.Transactions.IsolationLevel; namespace Csla.Server { @@ -77,12 +77,11 @@ private TransactionScope CreateTransactionScope() private TransactionOptions GetTransactionOptions() { - var option = new TransactionOptions - { - IsolationLevel = GetIsolationLevel(_transactionalAttribute.TransactionIsolationLevel), - Timeout = TimeSpan.FromSeconds(_transactionalAttribute.TimeoutInSeconds) - }; - return option; + return new() + { + IsolationLevel = GetIsolationLevel(_transactionalAttribute.TransactionIsolationLevel), + Timeout = TimeSpan.FromSeconds(_transactionalAttribute.TimeoutInSeconds) + }; } private IsolationLevel GetIsolationLevel(TransactionIsolationLevel transactionIsolationLevel) diff --git a/Source/Csla/SortedBindingList.cs b/Source/Csla/SortedBindingList.cs index 24a9560780..f845e35532 100644 --- a/Source/Csla/SortedBindingList.cs +++ b/Source/Csla/SortedBindingList.cs @@ -5,9 +5,7 @@ // // Provides a sorted view into an existing IList(Of T). //----------------------------------------------------------------------- -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Collections; + using Csla.Properties; namespace Csla diff --git a/Source/Csla/State/Session.cs b/Source/Csla/State/Session.cs index 721c6a72ba..36a9977202 100644 --- a/Source/Csla/State/Session.cs +++ b/Source/Csla/State/Session.cs @@ -6,7 +6,6 @@ // Per-user session data. //----------------------------------------------------------------------- -using System.ComponentModel; using Csla.Core; namespace Csla.State diff --git a/Source/Csla/State/SessionMessage.cs b/Source/Csla/State/SessionMessage.cs index 90b3fd6c85..b51b9496cc 100644 --- a/Source/Csla/State/SessionMessage.cs +++ b/Source/Csla/State/SessionMessage.cs @@ -6,8 +6,6 @@ // Per-user session data. //----------------------------------------------------------------------- -using System.Security.Claims; - namespace Csla.State; /// diff --git a/Source/Csla/Threading/BackgroundWorker.cs b/Source/Csla/Threading/BackgroundWorker.cs index f7c2c28a14..266a3b02da 100644 --- a/Source/Csla/Threading/BackgroundWorker.cs +++ b/Source/Csla/Threading/BackgroundWorker.cs @@ -6,8 +6,6 @@ // Wraps a System.ComponentModel.BackgroundWorker and transfers ApplicationContext.User, ClientContest, CurrentCulture and CurrentUICulture to background thread. //----------------------------------------------------------------------- -using System.ComponentModel; - namespace Csla.Threading { /// diff --git a/Source/Csla/Threading/ContextParams.cs b/Source/Csla/Threading/ContextParams.cs index 5f00c6b539..24e9ded86f 100644 --- a/Source/Csla/Threading/ContextParams.cs +++ b/Source/Csla/Threading/ContextParams.cs @@ -5,8 +5,6 @@ // // Implementation of a lock that waits while //---------------------------------------------------------------------- -using System.Globalization; -using System.Security.Principal; namespace Csla.Threading { diff --git a/Source/Csla/Utilities.cs b/Source/Csla/Utilities.cs index 9b7aa27450..c6600066d0 100644 --- a/Source/Csla/Utilities.cs +++ b/Source/Csla/Utilities.cs @@ -6,11 +6,8 @@ // Contains utility methods used by the //----------------------------------------------------------------------- -using System.Reflection; using Csla.Reflection; -using System.ComponentModel; using Csla.Properties; -using System.Diagnostics.CodeAnalysis; namespace Csla { diff --git a/Source/Directory.Build.props b/Source/Directory.Build.props index 66b9dae81f..e0d4b02858 100644 --- a/Source/Directory.Build.props +++ b/Source/Directory.Build.props @@ -3,7 +3,30 @@ latest enable - + + + + + + + + + + + + + + + + + + + + + + + + 9.0.0.0