From 5238a1dbc773239db96d4d958de82ea655f87512 Mon Sep 17 00:00:00 2001 From: stakx Date: Fri, 1 May 2020 18:51:43 +0200 Subject: [PATCH 01/16] Fix redundant or incorrect uses of `DOTNET40` --- buildscripts/CommonAssemblyInfo.cs | 2 +- .../Xml/XmlTypeSerializerCacheTestCase.cs | 3 ++- .../Core/Internal/PermissionUtil.cs | 2 +- .../Core/Logging/LevelFilteredLogger.cs | 8 ------- src/Castle.Core/Core/Logging/TraceLogger.cs | 14 +++++------ .../Core/Logging/TraceLoggerFactory.cs | 10 ++++---- .../Core/Smtp/DefaultSmtpSender.cs | 16 ++++++------- .../Generators/Emitters/StrongNameUtil.cs | 2 +- .../DynamicProxy/ProxyGenerationOptions.cs | 4 ++-- .../DynamicProxy/ProxyGenerator.cs | 2 +- .../Serialization/ProxyObjectReference.cs | 24 +++++++++---------- 11 files changed, 40 insertions(+), 47 deletions(-) diff --git a/buildscripts/CommonAssemblyInfo.cs b/buildscripts/CommonAssemblyInfo.cs index 6037875734..8b636ea468 100644 --- a/buildscripts/CommonAssemblyInfo.cs +++ b/buildscripts/CommonAssemblyInfo.cs @@ -19,6 +19,6 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(true)] -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [assembly: SecurityRules(SecurityRuleSet.Level2)] #endif diff --git a/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/Xml/XmlTypeSerializerCacheTestCase.cs b/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/Xml/XmlTypeSerializerCacheTestCase.cs index b3a8e4d738..3a27fe76ac 100644 --- a/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/Xml/XmlTypeSerializerCacheTestCase.cs +++ b/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/Xml/XmlTypeSerializerCacheTestCase.cs @@ -14,9 +14,10 @@ namespace Castle.Components.DictionaryAdapter.Xml.Tests { - using NUnit.Framework; using System.Threading.Tasks; + using NUnit.Framework; + [TestFixture] public class XmlTypeSerializerCacheTestCase { diff --git a/src/Castle.Core/Core/Internal/PermissionUtil.cs b/src/Castle.Core/Core/Internal/PermissionUtil.cs index 38a9490eb2..0f303f14a3 100644 --- a/src/Castle.Core/Core/Internal/PermissionUtil.cs +++ b/src/Castle.Core/Core/Internal/PermissionUtil.cs @@ -22,7 +22,7 @@ namespace Castle.Core.Internal public static class PermissionUtil { -#if DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecuritySafeCritical] #endif public static bool IsGranted(this IPermission permission) diff --git a/src/Castle.Core/Core/Logging/LevelFilteredLogger.cs b/src/Castle.Core/Core/Logging/LevelFilteredLogger.cs index 40a6be8f0b..a49f91831e 100644 --- a/src/Castle.Core/Core/Logging/LevelFilteredLogger.cs +++ b/src/Castle.Core/Core/Logging/LevelFilteredLogger.cs @@ -17,11 +17,7 @@ namespace Castle.Core.Logging using System; using System.Globalization; #if FEATURE_SECURITY_PERMISSIONS -#if DOTNET40 using System.Security; -#else - using System.Security.Permissions; -#endif #endif /// @@ -68,11 +64,7 @@ protected LevelFilteredLogger(String loggerName, LoggerLevel loggerLevel) : this /// Keep the instance alive in a remoting scenario /// #if FEATURE_SECURITY_PERMISSIONS -#if DOTNET40 [SecurityCritical] -#else - [SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.Infrastructure)] -#endif #endif public override object InitializeLifetimeService() { diff --git a/src/Castle.Core/Core/Logging/TraceLogger.cs b/src/Castle.Core/Core/Logging/TraceLogger.cs index 024c8031e8..767946fac4 100644 --- a/src/Castle.Core/Core/Logging/TraceLogger.cs +++ b/src/Castle.Core/Core/Logging/TraceLogger.cs @@ -17,7 +17,7 @@ namespace Castle.Core.Logging using System; using System.Diagnostics; using System.Collections.Generic; -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS using System.Security; #endif @@ -47,7 +47,7 @@ public class TraceLogger : LevelFilteredLogger /// Build a new trace logger based on the named TraceSource /// /// The name used to locate the best TraceSource. In most cases comes from the using type's fullname. -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecuritySafeCritical] #endif public TraceLogger(string name) @@ -63,7 +63,7 @@ public TraceLogger(string name) /// The name used to locate the best TraceSource. In most cases comes from the using type's fullname. /// The default logging level at which this source should write messages. In almost all cases this /// default value will be overridden in the config file. -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecuritySafeCritical] #endif public TraceLogger(string name, LoggerLevel level) @@ -79,7 +79,7 @@ public TraceLogger(string name, LoggerLevel level) /// /// The Subname of this logger. /// The New ILogger instance. -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecuritySafeCritical] #endif public override ILogger CreateChildLogger(string loggerName) @@ -87,7 +87,7 @@ public override ILogger CreateChildLogger(string loggerName) return InternalCreateChildLogger(loggerName); } -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecurityCritical] #endif private ILogger InternalCreateChildLogger(string loggerName) @@ -107,7 +107,7 @@ protected override void Log(LoggerLevel loggerLevel, string loggerName, string m } } -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecurityCritical] #endif private void Initialize() @@ -172,7 +172,7 @@ private static string ShortenName(string name) return null; } -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecuritySafeCritical] #endif private static bool IsSourceConfigured(TraceSource source) diff --git a/src/Castle.Core/Core/Logging/TraceLoggerFactory.cs b/src/Castle.Core/Core/Logging/TraceLoggerFactory.cs index 4843b9c6d5..9bf05a164d 100644 --- a/src/Castle.Core/Core/Logging/TraceLoggerFactory.cs +++ b/src/Castle.Core/Core/Logging/TraceLoggerFactory.cs @@ -14,7 +14,7 @@ namespace Castle.Core.Logging { -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS using System.Security; #endif @@ -34,7 +34,7 @@ public TraceLoggerFactory(LoggerLevel level) this.level = level; } -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecuritySafeCritical] #endif public override ILogger Create(string name) @@ -46,7 +46,7 @@ public override ILogger Create(string name) return InternalCreate(name); } -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecurityCritical] #endif private ILogger InternalCreate(string name) @@ -54,7 +54,7 @@ private ILogger InternalCreate(string name) return new TraceLogger(name); } -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecuritySafeCritical] #endif public override ILogger Create(string name, LoggerLevel level) @@ -62,7 +62,7 @@ public override ILogger Create(string name, LoggerLevel level) return InternalCreate(name, level); } -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecurityCritical] #endif private ILogger InternalCreate(string name, LoggerLevel level) diff --git a/src/Castle.Core/Core/Smtp/DefaultSmtpSender.cs b/src/Castle.Core/Core/Smtp/DefaultSmtpSender.cs index 2f30794706..4860d1bed7 100644 --- a/src/Castle.Core/Core/Smtp/DefaultSmtpSender.cs +++ b/src/Castle.Core/Core/Smtp/DefaultSmtpSender.cs @@ -23,10 +23,10 @@ namespace Castle.Core.Smtp using System.ComponentModel; using System.Net; using System.Net.Mail; -#if DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS using System.Security; -#endif using System.Security.Permissions; +#endif using Castle.Core.Internal; /// @@ -117,7 +117,7 @@ public bool UseSsl /// To field /// e-mail's subject /// message's body -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecuritySafeCritical] #endif public void Send(String from, String to, String subject, String messageText) @@ -135,7 +135,7 @@ public void Send(String from, String to, String subject, String messageText) /// /// If the message is null /// Message instance -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecuritySafeCritical] #endif public void Send(MailMessage message) @@ -143,7 +143,7 @@ public void Send(MailMessage message) InternalSend(message); } -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecurityCritical] #endif private void InternalSend(MailMessage message) @@ -182,7 +182,7 @@ private void InternalSend(MailMessage message) } } -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecuritySafeCritical] #endif public void Send(IEnumerable messages) @@ -229,7 +229,7 @@ public String Password /// informed /// /// Message instance -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecurityCritical] #endif protected virtual void Configure(SmtpClient smtpClient) @@ -263,7 +263,7 @@ private bool HasCredentials get { return !string.IsNullOrEmpty(credentials.UserName); } } -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecuritySafeCritical] #endif private SmtpClient CreateSmtpClient() diff --git a/src/Castle.Core/DynamicProxy/Generators/Emitters/StrongNameUtil.cs b/src/Castle.Core/DynamicProxy/Generators/Emitters/StrongNameUtil.cs index d82d31c716..c3ca9d9a67 100644 --- a/src/Castle.Core/DynamicProxy/Generators/Emitters/StrongNameUtil.cs +++ b/src/Castle.Core/DynamicProxy/Generators/Emitters/StrongNameUtil.cs @@ -28,7 +28,7 @@ public static class StrongNameUtil private static readonly IDictionary signedAssemblyCache = new Dictionary(); private static readonly object lockObject = new object(); -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecuritySafeCritical] #endif static StrongNameUtil() diff --git a/src/Castle.Core/DynamicProxy/ProxyGenerationOptions.cs b/src/Castle.Core/DynamicProxy/ProxyGenerationOptions.cs index d9fc68146e..6ad6b4dea4 100644 --- a/src/Castle.Core/DynamicProxy/ProxyGenerationOptions.cs +++ b/src/Castle.Core/DynamicProxy/ProxyGenerationOptions.cs @@ -21,7 +21,7 @@ namespace Castle.DynamicProxy #if FEATURE_SERIALIZATION using System.Runtime.Serialization; #endif -#if DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS using System.Security; #endif @@ -102,7 +102,7 @@ public void Initialize() } #if FEATURE_SERIALIZATION -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecurityCritical] #endif public void GetObjectData(SerializationInfo info, StreamingContext context) diff --git a/src/Castle.Core/DynamicProxy/ProxyGenerator.cs b/src/Castle.Core/DynamicProxy/ProxyGenerator.cs index 83a9cc8a18..c0bcfc75bf 100644 --- a/src/Castle.Core/DynamicProxy/ProxyGenerator.cs +++ b/src/Castle.Core/DynamicProxy/ProxyGenerator.cs @@ -550,7 +550,7 @@ public object CreateInterfaceProxyWithTargetInterface(Type interfaceToProxy, obj /// This method uses implementation to generate a proxy type. /// As such caller should expect any type of exception that given implementation may throw. /// -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecuritySafeCritical] #endif public virtual object CreateInterfaceProxyWithTargetInterface(Type interfaceToProxy, diff --git a/src/Castle.Core/DynamicProxy/Serialization/ProxyObjectReference.cs b/src/Castle.Core/DynamicProxy/Serialization/ProxyObjectReference.cs index 6123b17d4d..b3d3429d79 100644 --- a/src/Castle.Core/DynamicProxy/Serialization/ProxyObjectReference.cs +++ b/src/Castle.Core/DynamicProxy/Serialization/ProxyObjectReference.cs @@ -21,7 +21,7 @@ namespace Castle.DynamicProxy.Serialization using System.Diagnostics; using System.Reflection; using System.Runtime.Serialization; -#if DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS using System.Security; #endif @@ -86,7 +86,7 @@ public static ModuleScope ModuleScope get { return scope; } } -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecurityCritical] #endif protected ProxyObjectReference(SerializationInfo info, StreamingContext context) @@ -118,7 +118,7 @@ private Type DeserializeTypeFromString(string key) return Type.GetType(info.GetString(key), true, false); } -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecurityCritical] #endif protected virtual object RecreateProxy() @@ -138,7 +138,7 @@ protected virtual object RecreateProxy() return RecreateInterfaceProxy(generatorType); } -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecurityCritical] #endif private object RecreateClassProxyWithTarget() @@ -148,7 +148,7 @@ private object RecreateClassProxyWithTarget() return InstantiateClassProxy(proxyType); } -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecurityCritical] #endif public object RecreateInterfaceProxy(string generatorType) @@ -181,7 +181,7 @@ public object RecreateInterfaceProxy(string generatorType) return FormatterServices.GetSafeUninitializedObject(proxyType); } -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecurityCritical] #endif public object RecreateClassProxy() @@ -191,7 +191,7 @@ public object RecreateClassProxy() return InstantiateClassProxy(proxyType); } -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecurityCritical] #endif private object InstantiateClassProxy(Type proxy_type) @@ -215,7 +215,7 @@ protected void InvokeCallback(object target) } } -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecurityCritical] #endif public object GetRealObject(StreamingContext context) @@ -223,7 +223,7 @@ public object GetRealObject(StreamingContext context) return proxy; } -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecurityCritical] #endif public void GetObjectData(SerializationInfo info, StreamingContext context) @@ -232,7 +232,7 @@ public void GetObjectData(SerializationInfo info, StreamingContext context) // this class would never be serialized. } -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecuritySafeCritical] #endif public void OnDeserialization(object sender) @@ -247,7 +247,7 @@ public void OnDeserialization(object sender) InvokeCallback(proxy); } -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecurityCritical] #endif private void DeserializeProxyMembers() @@ -274,7 +274,7 @@ private void DeserializeProxyMembers() FormatterServices.PopulateObjectMembers(proxy, deserializedMembers.ToArray(), deserializedValues.ToArray()); } -#if FEATURE_SECURITY_PERMISSIONS && DOTNET40 +#if FEATURE_SECURITY_PERMISSIONS [SecurityCritical] #endif private void DeserializeProxyState() From 5175121f494657239127c47665efde10d2207cb2 Mon Sep 17 00:00:00 2001 From: stakx Date: Fri, 1 May 2020 19:46:14 +0200 Subject: [PATCH 02/16] Remove `net40` target framework --- README.md | 55 +++++++++--------- buildscripts/common.props | 16 ++--- docs/dynamicproxy-introduction.md | 2 +- .../AssemblyResourceFactoryTestCase.cs | 4 -- .../BaseTestCaseTestCase.cs | 4 -- .../ClassProxyWithTargetTestCase.cs | 6 -- .../DelegateProxyTestCase.cs | 4 -- .../DynamicProxy.Tests/RhinoMocksTestCase.cs | 4 -- src/Castle.Core.Tests/PublicApiTestCase.cs | 2 +- src/Castle.Core/Castle.Core.csproj | 4 +- .../CustomAttributeExtensions.cs | 58 ------------------- .../Compatibility/IntrospectionExtensions.cs | 35 ----------- .../RuntimeReflectionExtensions.cs | 33 ----------- .../Compatibility/TypeBuilderExtensions.cs | 2 +- .../DictionaryAdapterFactory.cs | 31 ---------- .../Internal/Cursors/XPath/XPathCompiler.cs | 6 +- .../Emitters/AbstractTypeEmitter.cs | 4 -- .../Generators/Emitters/ConstructorEmitter.cs | 4 -- .../Generators/Emitters/MethodEmitter.cs | 4 -- .../DynamicProxy/Internal/AttributeUtil.cs | 41 ------------- ...le.Services.Logging.NLogIntegration.csproj | 2 +- ...Services.Logging.log4netIntegration.csproj | 2 +- .../ExtendedLog4netFactory.cs | 4 -- .../Log4netFactory.cs | 4 -- 24 files changed, 40 insertions(+), 291 deletions(-) delete mode 100644 src/Castle.Core/Compatibility/CustomAttributeExtensions.cs delete mode 100644 src/Castle.Core/Compatibility/IntrospectionExtensions.cs delete mode 100644 src/Castle.Core/Compatibility/RuntimeReflectionExtensions.cs diff --git a/README.md b/README.md index 562b145ce0..4503590aa0 100644 --- a/README.md +++ b/README.md @@ -60,34 +60,32 @@ For known Mono defects, check [our issue tracker](https://github.com/castleproje The following conditional compilation symbols (vertical) are currently defined for each of the build configurations (horizontal): -Symbol | NET40 | NET45 | .NET Core ------------------------------------ | ------------------ | ------------------ | ------------------ -`FEATURE_APPDOMAIN` | :white_check_mark: | :white_check_mark: | :no_entry_sign: -`FEATURE_ASSEMBLYBUILDER_SAVE` | :white_check_mark: | :white_check_mark: | :no_entry_sign: -`FEATURE_BINDINGLIST` | :white_check_mark: | :white_check_mark: | :no_entry_sign: -`FEATURE_DICTIONARYADAPTER_XML` | :white_check_mark: | :white_check_mark: | :no_entry_sign: -`FEATURE_CUSTOMMODIFIERS` | :white_check_mark: | :white_check_mark: | :no_entry_sign: -`FEATURE_EVENTLOG` | :white_check_mark: | :white_check_mark: | :no_entry_sign: -`FEATURE_GAC` | :white_check_mark: | :white_check_mark: | :no_entry_sign: -`FEATURE_GET_REFERENCED_ASSEMBLIES` | :white_check_mark: | :white_check_mark: | :no_entry_sign: -`FEATURE_IDATAERRORINFO` | :white_check_mark: | :white_check_mark: | :no_entry_sign: -`FEATURE_ISUPPORTINITIALIZE` | :white_check_mark: | :white_check_mark: | :no_entry_sign: -`FEATURE_LEGACY_REFLECTION_API` | :white_check_mark: | :no_entry_sign: | :no_entry_sign: -`FEATURE_LISTSORT` | :white_check_mark: | :white_check_mark: | :no_entry_sign: -`FEATURE_NETCORE_REFLECTION_API` | :no_entry_sign: | :no_entry_sign: | :white_check_mark: -`FEATURE_REMOTING` | :white_check_mark: | :white_check_mark: | :no_entry_sign: -`FEATURE_SECURITY_PERMISSIONS` | :white_check_mark: | :white_check_mark: | :no_entry_sign: -`FEATURE_SERIALIZATION` | :white_check_mark: | :white_check_mark: | :no_entry_sign: -`FEATURE_SMTP` | :white_check_mark: | :white_check_mark: | :no_entry_sign: -`FEATURE_SYSTEM_CONFIGURATION` | :white_check_mark: | :white_check_mark: | :no_entry_sign: -`FEATURE_TARGETEXCEPTION` | :white_check_mark: | :white_check_mark: | :no_entry_sign: -`FEATURE_TEST_COM` | :white_check_mark: | :white_check_mark: | :no_entry_sign: -`FEATURE_TEST_DATASET` | :white_check_mark: | :white_check_mark: | :no_entry_sign: -`FEATURE_TEST_PEVERIFY` | :white_check_mark: | :white_check_mark: | :no_entry_sign: -`FEATURE_TEST_SERILOGINTEGRATION` | :no_entry_sign: | :white_check_mark: | :white_check_mark: ---- | | | -`DOTNET40` | :white_check_mark: | :white_check_mark: | :no_entry_sign: -`DOTNET45` | :no_entry_sign: | :white_check_mark: | :no_entry_sign: +Symbol | NET45 | .NET Core +----------------------------------- | ------------------ | ------------------ +`FEATURE_APPDOMAIN` | :white_check_mark: | :no_entry_sign: +`FEATURE_ASSEMBLYBUILDER_SAVE` | :white_check_mark: | :no_entry_sign: +`FEATURE_BINDINGLIST` | :white_check_mark: | :no_entry_sign: +`FEATURE_DICTIONARYADAPTER_XML` | :white_check_mark: | :no_entry_sign: +`FEATURE_CUSTOMMODIFIERS` | :white_check_mark: | :no_entry_sign: +`FEATURE_EVENTLOG` | :white_check_mark: | :no_entry_sign: +`FEATURE_GAC` | :white_check_mark: | :no_entry_sign: +`FEATURE_GET_REFERENCED_ASSEMBLIES` | :white_check_mark: | :no_entry_sign: +`FEATURE_IDATAERRORINFO` | :white_check_mark: | :no_entry_sign: +`FEATURE_ISUPPORTINITIALIZE` | :white_check_mark: | :no_entry_sign: +`FEATURE_LISTSORT` | :white_check_mark: | :no_entry_sign: +`FEATURE_NETCORE_REFLECTION_API` | :no_entry_sign: | :white_check_mark: +`FEATURE_REMOTING` | :white_check_mark: | :no_entry_sign: +`FEATURE_SECURITY_PERMISSIONS` | :white_check_mark: | :no_entry_sign: +`FEATURE_SERIALIZATION` | :white_check_mark: | :no_entry_sign: +`FEATURE_SMTP` | :white_check_mark: | :no_entry_sign: +`FEATURE_SYSTEM_CONFIGURATION` | :white_check_mark: | :no_entry_sign: +`FEATURE_TARGETEXCEPTION` | :white_check_mark: | :no_entry_sign: +`FEATURE_TEST_COM` | :white_check_mark: | :no_entry_sign: +`FEATURE_TEST_DATASET` | :white_check_mark: | :no_entry_sign: +`FEATURE_TEST_PEVERIFY` | :white_check_mark: | :no_entry_sign: +`FEATURE_TEST_SERILOGINTEGRATION` | :white_check_mark: | :white_check_mark: +--- | | +`DOTNET45` | :white_check_mark: | :no_entry_sign: * `FEATURE_APPDOMAIN` - enables support for features that make use of an AppDomain in the host. * `FEATURE_ASSEMBLYBUILDER_SAVE` - enabled support for saving the dynamically generated proxy assembly. @@ -99,7 +97,6 @@ Symbol | NET40 | NET45 | * `FEATURE_GET_REFERENCED_ASSEMBLIES` - enables code that takes advantage of System.Reflection.Assembly.GetReferencedAssemblies(). * `FEATURE_IDATAERRORINFO` - enables code that depends on System.ComponentModel.IDataErrorInfo. * `FEATURE_ISUPPORTINITIALIZE` - enables support for features that make use of System.ComponentModel.ISupportInitialize. -* `FEATURE_LEGACY_REFLECTION_API` - provides a shim for .NET 4.0 that emulates the `TypeInfo` API available in .NET 4.5+ and .NET Core. * `FEATURE_LISTSORT` - enables support for features that make use of System.ComponentModel.ListSortDescription. * `FEATURE_NETCORE_REFLECTION_API` - provides shims to implement missing functionality in .NET Core that has no alternatives. * `FEATURE_REMOTING` - supports remoting on various types including inheriting from MarshalByRefObject. diff --git a/buildscripts/common.props b/buildscripts/common.props index fcf635bf78..bba036b927 100644 --- a/buildscripts/common.props +++ b/buildscripts/common.props @@ -52,28 +52,20 @@ $(CommonDesktopClrConstants);FEATURE_TEST_PEVERIFY - - $(DiagnosticsConstants);$(DesktopClrConstants);FEATURE_LEGACY_REFLECTION_API;DOTNET40 - - - - $(DesktopClrConstants);FEATURE_LEGACY_REFLECTION_API;DOTNET40 - - - $(DiagnosticsConstants);$(DesktopClrConstants);DOTNET45;DOTNET40 + $(DiagnosticsConstants);$(DesktopClrConstants);DOTNET45 - $(DesktopClrConstants);DOTNET45;DOTNET40; + $(DesktopClrConstants);DOTNET45; - $(DiagnosticsConstants);$(DesktopClrConstants);DOTNET45;DOTNET40 + $(DiagnosticsConstants);$(DesktopClrConstants);DOTNET45 - $(DesktopClrConstants);DOTNET45;DOTNET40 + $(DesktopClrConstants);DOTNET45 diff --git a/docs/dynamicproxy-introduction.md b/docs/dynamicproxy-introduction.md index fb036ffc54..622b91318e 100644 --- a/docs/dynamicproxy-introduction.md +++ b/docs/dynamicproxy-introduction.md @@ -9,7 +9,7 @@ DynamicProxy differs from the proxy implementation built into the CLR which requ To use Castle DynamicProxy you need the following environment: * one of the following runtimes installed - * .NET Framework 4.0+ + * .NET Framework 4.5+ * .NET Core 1.0+ (Castle Core 4.0+) * `Castle.Core.dll` (assembly where DynamicProxy lives) diff --git a/src/Castle.Core.Tests/Core.Tests/Resource/AssemblyResourceFactoryTestCase.cs b/src/Castle.Core.Tests/Core.Tests/Resource/AssemblyResourceFactoryTestCase.cs index 7d36bb9ca9..b058c824f6 100644 --- a/src/Castle.Core.Tests/Core.Tests/Resource/AssemblyResourceFactoryTestCase.cs +++ b/src/Castle.Core.Tests/Core.Tests/Resource/AssemblyResourceFactoryTestCase.cs @@ -29,11 +29,7 @@ public void SetUp() } private AssemblyResourceFactory resFactory; -#if FEATURE_LEGACY_REFLECTION_API - private static readonly String AssemblyName = Assembly.GetExecutingAssembly().FullName; -#else private static readonly String AssemblyName = typeof(AssemblyResourceFactoryTestCase).GetTypeInfo().Assembly.FullName; -#endif private const String ResPath = "Resources"; [Test] diff --git a/src/Castle.Core.Tests/DynamicProxy.Tests/BaseTestCaseTestCase.cs b/src/Castle.Core.Tests/DynamicProxy.Tests/BaseTestCaseTestCase.cs index b510db3648..037c817a71 100644 --- a/src/Castle.Core.Tests/DynamicProxy.Tests/BaseTestCaseTestCase.cs +++ b/src/Castle.Core.Tests/DynamicProxy.Tests/BaseTestCaseTestCase.cs @@ -70,11 +70,7 @@ private void FindVerificationErrors() MethodBuilder invalidMethod = invalidType.DefineMethod("InvalidMethod", MethodAttributes.Public); invalidMethod.GetILGenerator().Emit(OpCodes.Ldnull); // missing RET statement -#if FEATURE_LEGACY_REFLECTION_API - invalidType.CreateType(); -#else invalidType.CreateTypeInfo().AsType(); -#endif if (!IsVerificationDisabled) { diff --git a/src/Castle.Core.Tests/DynamicProxy.Tests/ClassProxyWithTargetTestCase.cs b/src/Castle.Core.Tests/DynamicProxy.Tests/ClassProxyWithTargetTestCase.cs index 1f423f06a4..032de40c91 100644 --- a/src/Castle.Core.Tests/DynamicProxy.Tests/ClassProxyWithTargetTestCase.cs +++ b/src/Castle.Core.Tests/DynamicProxy.Tests/ClassProxyWithTargetTestCase.cs @@ -161,9 +161,6 @@ public void Hook_gets_notified_about_public_field() Assert.IsNotEmpty((ICollection) hook.NonVirtualMembers); var memberInfo = hook.NonVirtualMembers.Single(m => m is FieldInfo); Assert.AreEqual("field", memberInfo.Name); -#if FEATURE_LEGACY_REFLECTION_API - Assert.AreEqual(MemberTypes.Field, memberInfo.MemberType); -#endif } [Test] @@ -176,9 +173,6 @@ public void Hook_gets_notified_about_static_methods() Assert.IsNotEmpty((ICollection) hook.NonVirtualMembers); var memberInfo = hook.NonVirtualMembers.Single(m => m is FieldInfo); Assert.AreEqual("field", memberInfo.Name); -#if FEATURE_LEGACY_REFLECTION_API - Assert.AreEqual(MemberTypes.Field, memberInfo.MemberType); -#endif } [Test] diff --git a/src/Castle.Core.Tests/DynamicProxy.Tests/DelegateProxyTestCase.cs b/src/Castle.Core.Tests/DynamicProxy.Tests/DelegateProxyTestCase.cs index 2dd037407e..b981bb76f0 100644 --- a/src/Castle.Core.Tests/DynamicProxy.Tests/DelegateProxyTestCase.cs +++ b/src/Castle.Core.Tests/DynamicProxy.Tests/DelegateProxyTestCase.cs @@ -37,12 +37,8 @@ private T GetProxyInstance(T func, params IInterceptor[] interceptors) { var type = GenerateProxyType(); var instance = Activator.CreateInstance(type, func, interceptors); -#if FEATURE_LEGACY_REFLECTION_API - return (T) (object) Delegate.CreateDelegate(typeof (T), instance, "Invoke"); -#else var methodInfo = instance.GetType().GetMethod("Invoke"); return (T)(object)methodInfo.CreateDelegate(typeof(T), instance); -#endif } [Test] diff --git a/src/Castle.Core.Tests/DynamicProxy.Tests/RhinoMocksTestCase.cs b/src/Castle.Core.Tests/DynamicProxy.Tests/RhinoMocksTestCase.cs index 35291130b9..e24c94f37d 100644 --- a/src/Castle.Core.Tests/DynamicProxy.Tests/RhinoMocksTestCase.cs +++ b/src/Castle.Core.Tests/DynamicProxy.Tests/RhinoMocksTestCase.cs @@ -183,11 +183,7 @@ public void GenerateDynamicAssemblyHavingModopts() }, callingConvention: CallingConventions.Standard); -#if FEATURE_LEGACY_REFLECTION_API - var iHaveMethodWithModOptsType = typeBuilder.CreateType(); -#else var iHaveMethodWithModOptsType = typeBuilder.CreateTypeInfo().AsType(); -#endif #if FEATURE_ASSEMBLYBUILDER_SAVE && FEATURE_TEST_PEVERIFY // Let's persist and PE-verify the dynamic assembly before it gets used in tests: diff --git a/src/Castle.Core.Tests/PublicApiTestCase.cs b/src/Castle.Core.Tests/PublicApiTestCase.cs index bf050e809e..a01f594a54 100644 --- a/src/Castle.Core.Tests/PublicApiTestCase.cs +++ b/src/Castle.Core.Tests/PublicApiTestCase.cs @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if DOTNET40 // PublicApiGenerator requires .NET Standard 2.0, and we only need to run it once +#if DOTNET45 // PublicApiGenerator requires .NET Standard 2.0, and we only need to run it once namespace Castle { diff --git a/src/Castle.Core/Castle.Core.csproj b/src/Castle.Core/Castle.Core.csproj index 7822b519f1..be5b6c2250 100644 --- a/src/Castle.Core/Castle.Core.csproj +++ b/src/Castle.Core/Castle.Core.csproj @@ -3,7 +3,7 @@ - net40;net45;netstandard1.3;netstandard1.5;netstandard2.0;netstandard2.1 + net45;netstandard1.3;netstandard1.5;netstandard2.0;netstandard2.1 @@ -28,7 +28,7 @@ - + diff --git a/src/Castle.Core/Compatibility/CustomAttributeExtensions.cs b/src/Castle.Core/Compatibility/CustomAttributeExtensions.cs deleted file mode 100644 index 2c21889091..0000000000 --- a/src/Castle.Core/Compatibility/CustomAttributeExtensions.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2004-2015 Castle Project - http://www.castleproject.org/ -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#if FEATURE_LEGACY_REFLECTION_API - -namespace System.Reflection -{ - using System.Collections.Generic; - - // This allows us to use the new reflection API while still supporting .NET 4.0. - // - // Methods like Attribute.IsDefined no longer exist in .NET Core so this provides a shim - // for .NET 4.0. - // - // This class only implemented the required extensions so add more if needed in the order - // from https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Extensions/ref/System.Reflection.Extensions.cs - internal static class CustomAttributeExtensions - { - public static IEnumerable GetCustomAttributes(this Assembly element) where T : Attribute - { - foreach (T a in Attribute.GetCustomAttributes(element, typeof(T))) - { - yield return a; - } - } - - public static IEnumerable GetCustomAttributes(this MemberInfo element, bool inherit) where T : Attribute - { - foreach (T a in Attribute.GetCustomAttributes(element, typeof(T), inherit)) - { - yield return a; - } - } - - public static bool IsDefined(this MemberInfo element, Type attributeType) - { - return Attribute.IsDefined(element, attributeType); - } - - public static bool IsDefined(this ParameterInfo element, Type attributeType) - { - return Attribute.IsDefined(element, attributeType); - } - } -} - -#endif \ No newline at end of file diff --git a/src/Castle.Core/Compatibility/IntrospectionExtensions.cs b/src/Castle.Core/Compatibility/IntrospectionExtensions.cs deleted file mode 100644 index ad7880fac8..0000000000 --- a/src/Castle.Core/Compatibility/IntrospectionExtensions.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2004-2015 Castle Project - http://www.castleproject.org/ -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#if FEATURE_LEGACY_REFLECTION_API - -namespace System.Reflection -{ - internal static class IntrospectionExtensions - { - // This allows us to use the new reflection API which separates Type and TypeInfo - // while still supporting .NET 4.0. This class matches the API of the same - // class in .NET 4.5+, and so is only needed on .NET Framework versions before that. - // - // Return the System.Type for now, we will probably need to create a TypeInfo class - // which inherits from Type like .NET 4.5+ and implement the additional methods and - // properties. - public static Type GetTypeInfo(this Type type) - { - return type; - } - } -} - -#endif \ No newline at end of file diff --git a/src/Castle.Core/Compatibility/RuntimeReflectionExtensions.cs b/src/Castle.Core/Compatibility/RuntimeReflectionExtensions.cs deleted file mode 100644 index 068ef90c8b..0000000000 --- a/src/Castle.Core/Compatibility/RuntimeReflectionExtensions.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2004-2015 Castle Project - http://www.castleproject.org/ -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#if FEATURE_LEGACY_REFLECTION_API - -namespace System.Reflection -{ - // This allows us to use the new reflection API while still supporting .NET 4.0. - // - // Methods like Type.GetInterfaceMap no longer exist in .NET Core so this provides a shim - // for .NET 4.0. - internal static class RuntimeReflectionExtensions - { - // Delegate to the old name for this method. - public static InterfaceMapping GetRuntimeInterfaceMap(this Type type, Type interfaceType) - { - return type.GetInterfaceMap(interfaceType); - } - } -} - -#endif \ No newline at end of file diff --git a/src/Castle.Core/Compatibility/TypeBuilderExtensions.cs b/src/Castle.Core/Compatibility/TypeBuilderExtensions.cs index 5e7c53ba3e..94e8cbaac5 100644 --- a/src/Castle.Core/Compatibility/TypeBuilderExtensions.cs +++ b/src/Castle.Core/Compatibility/TypeBuilderExtensions.cs @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_LEGACY_REFLECTION_API || FEATURE_NETSTANDARD2_COMPATIBILITY +#if FEATURE_NETSTANDARD2_COMPATIBILITY namespace System.Reflection { diff --git a/src/Castle.Core/Components.DictionaryAdapter/DictionaryAdapterFactory.cs b/src/Castle.Core/Components.DictionaryAdapter/DictionaryAdapterFactory.cs index ed43763e19..8b85b5a1b9 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/DictionaryAdapterFactory.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/DictionaryAdapterFactory.cs @@ -136,12 +136,7 @@ private DictionaryAdapterMeta InternalGetAdapterMeta(Type type, descriptor = other.CreateDescriptor(); } -#if FEATURE_LEGACY_REFLECTION_API - var appDomain = Thread.GetDomain(); - var typeBuilder = CreateTypeBuilder(type, appDomain); -#else var typeBuilder = CreateTypeBuilder(type); -#endif return CreateAdapterMeta(type, typeBuilder, descriptor); }); } @@ -154,15 +149,6 @@ private object InternalGetAdapter(Type type, IDictionary dictionary, PropertyDes #region Type Builders -#if FEATURE_LEGACY_REFLECTION_API - private static TypeBuilder CreateTypeBuilder(Type type, AppDomain appDomain) - { - var assemblyName = new AssemblyName("CastleDictionaryAdapterAssembly"); - var assemblyBuilder = appDomain.DefineDynamicAssembly(assemblyName, AssemblyBuilderAccess.Run); - var moduleBuilder = assemblyBuilder.DefineDynamicModule("CastleDictionaryAdapterModule"); - return CreateAdapterType(type, moduleBuilder); - } -#else private static TypeBuilder CreateTypeBuilder(Type type) { var assemblyName = new AssemblyName("CastleDictionaryAdapterAssembly"); @@ -171,8 +157,6 @@ private static TypeBuilder CreateTypeBuilder(Type type) return CreateAdapterType(type, moduleBuilder); } -#endif - private static TypeBuilder CreateAdapterType(Type type, ModuleBuilder moduleBuilder) { var typeBuilder = moduleBuilder.DefineType("CastleDictionaryAdapterType", @@ -216,33 +200,18 @@ private DictionaryAdapterMeta CreateAdapterMeta(Type type, TypeBuilder typeBuild CreateAdapterProperty(typeBuilder, property.Value); } -#if FEATURE_LEGACY_REFLECTION_API - var implementation = typeBuilder.CreateType(); - var creator = (Func)Delegate.CreateDelegate - ( - typeof(Func), - implementation, - "__Create" - ); -#else var implementation = typeBuilder.CreateTypeInfo().AsType(); var creator = (Func)implementation .GetTypeInfo().GetDeclaredMethod("__Create") .CreateDelegate(typeof(Func)); -#endif var meta = new DictionaryAdapterMeta(type, implementation, typeBehaviors, initializers.MetaInitializers.ToArray(), initializers.Initializers.ToArray(), propertyMap, this, creator); -#if FEATURE_LEGACY_REFLECTION_API - const BindingFlags metaBindings = BindingFlags.Public | BindingFlags.Static | BindingFlags.SetField; - implementation.InvokeMember("__meta", metaBindings, null, null, new[] { meta }); -#else const BindingFlags metaBindings = BindingFlags.Public | BindingFlags.Static; var field = implementation.GetField("__meta", metaBindings); field.SetValue(implementation, meta); -#endif return meta; } diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathCompiler.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathCompiler.cs index 48ab8a8b91..f49de0707e 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathCompiler.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathCompiler.cs @@ -427,7 +427,7 @@ private void RewindChar() private static bool IsWhitespace(char c) { -#if DOTNET40 +#if DOTNET45 return XmlConvert.IsWhitespaceChar(c); #else // Source: http://www.w3.org/TR/REC-xml/#NT-S @@ -441,7 +441,7 @@ private static bool IsWhitespace(char c) private static bool IsNameStartChar(char c) { -#if DOTNET40 +#if DOTNET45 return XmlConvert.IsStartNCNameChar(c); #else // Source: http://www.w3.org/TR/REC-xml/#NT-NameStartChar @@ -466,7 +466,7 @@ private static bool IsNameStartChar(char c) private static bool IsNameChar(char c) { -#if DOTNET40 +#if DOTNET45 return XmlConvert.IsNCNameChar(c); #else // Source: http://www.w3.org/TR/REC-xml/#NT-NameChar diff --git a/src/Castle.Core/DynamicProxy/Generators/Emitters/AbstractTypeEmitter.cs b/src/Castle.Core/DynamicProxy/Generators/Emitters/AbstractTypeEmitter.cs index 5719a129e2..056c8c9552 100644 --- a/src/Castle.Core/DynamicProxy/Generators/Emitters/AbstractTypeEmitter.cs +++ b/src/Castle.Core/DynamicProxy/Generators/Emitters/AbstractTypeEmitter.cs @@ -318,11 +318,7 @@ protected Type CreateType(TypeBuilder type) { try { -#if FEATURE_LEGACY_REFLECTION_API - return type.CreateType(); -#else return type.CreateTypeInfo().AsType(); -#endif } catch (BadImageFormatException ex) { diff --git a/src/Castle.Core/DynamicProxy/Generators/Emitters/ConstructorEmitter.cs b/src/Castle.Core/DynamicProxy/Generators/Emitters/ConstructorEmitter.cs index f10dbab02b..90585e44d8 100644 --- a/src/Castle.Core/DynamicProxy/Generators/Emitters/ConstructorEmitter.cs +++ b/src/Castle.Core/DynamicProxy/Generators/Emitters/ConstructorEmitter.cs @@ -75,11 +75,7 @@ private bool ImplementedByRuntime { get { -#if FEATURE_LEGACY_REFLECTION_API - var attributes = builder.GetMethodImplementationFlags(); -#else var attributes = builder.MethodImplementationFlags; -#endif return (attributes & MethodImplAttributes.Runtime) != 0; } } diff --git a/src/Castle.Core/DynamicProxy/Generators/Emitters/MethodEmitter.cs b/src/Castle.Core/DynamicProxy/Generators/Emitters/MethodEmitter.cs index d65acc1a9d..299b2b619c 100644 --- a/src/Castle.Core/DynamicProxy/Generators/Emitters/MethodEmitter.cs +++ b/src/Castle.Core/DynamicProxy/Generators/Emitters/MethodEmitter.cs @@ -112,11 +112,7 @@ private bool ImplementedByRuntime { get { -#if FEATURE_LEGACY_REFLECTION_API - var attributes = builder.GetMethodImplementationFlags(); -#else var attributes = builder.MethodImplementationFlags; -#endif return (attributes & MethodImplAttributes.Runtime) != 0; } } diff --git a/src/Castle.Core/DynamicProxy/Internal/AttributeUtil.cs b/src/Castle.Core/DynamicProxy/Internal/AttributeUtil.cs index 06c03d762f..5a9830882a 100644 --- a/src/Castle.Core/DynamicProxy/Internal/AttributeUtil.cs +++ b/src/Castle.Core/DynamicProxy/Internal/AttributeUtil.cs @@ -33,22 +33,14 @@ public static CustomAttributeInfo CreateInfo(CustomAttributeData attribute) Type[] constructorArgTypes; object[] constructorArgs; GetArguments(attribute.ConstructorArguments, out constructorArgTypes, out constructorArgs); -#if FEATURE_LEGACY_REFLECTION_API - var constructor = attribute.Constructor; -#else var constructor = attribute.AttributeType.GetConstructor(constructorArgTypes); -#endif PropertyInfo[] properties; object[] propertyValues; FieldInfo[] fields; object[] fieldValues; GetSettersAndFields( -#if FEATURE_LEGACY_REFLECTION_API - null, -#else attribute.AttributeType, -#endif attribute.NamedArguments, out properties, out propertyValues, out fields, out fieldValues); return new CustomAttributeInfo(constructor, @@ -106,18 +98,6 @@ private static void GetSettersAndFields(Type attributeType, IEnumerable(); foreach (var argument in namedArguments) { -#if FEATURE_LEGACY_REFLECTION_API - if (argument.MemberInfo.MemberType == MemberTypes.Field) - { - fieldList.Add(argument.MemberInfo as FieldInfo); - fieldValuesList.Add(ReadAttributeValue(argument.TypedValue)); - } - else - { - propertyList.Add(argument.MemberInfo as PropertyInfo); - propertyValuesList.Add(ReadAttributeValue(argument.TypedValue)); - } -#else if (argument.IsField) { fieldList.Add(attributeType.GetField(argument.MemberName)); @@ -128,7 +108,6 @@ private static void GetSettersAndFields(Type attributeType, IEnumerable GetNonInheritableAttributes(this MemberInfo member) { Debug.Assert(member != null, "member != null"); -#if FEATURE_LEGACY_REFLECTION_API - var attributes = CustomAttributeData.GetCustomAttributes(member); -#else var attributes = member.CustomAttributes; -#endif foreach (var attribute in attributes) { -#if FEATURE_LEGACY_REFLECTION_API - var attributeType = attribute.Constructor.DeclaringType; -#else var attributeType = attribute.AttributeType; -#endif if (ShouldSkipAttributeReplication(attributeType, ignoreInheritance: false)) { continue; @@ -171,11 +142,7 @@ public static IEnumerable GetNonInheritableAttributes(this "To avoid this error you can chose not to replicate this attribute type by calling '{3}.Add(typeof({0}))'.", attributeType.FullName, member.DeclaringType.FullName, -#if FEATURE_LEGACY_REFLECTION_API - (member is Type) ? "" : ("." + member.Name), -#else (member is TypeInfo) ? "" : ("." + member.Name), -#endif typeof(AttributesToAvoidReplicating).FullName); throw new ProxyGenerationException(message, e); } @@ -190,21 +157,13 @@ public static IEnumerable GetNonInheritableAttributes(this { Debug.Assert(parameter != null, "parameter != null"); -#if FEATURE_LEGACY_REFLECTION_API - var attributes = CustomAttributeData.GetCustomAttributes(parameter); -#else var attributes = parameter.CustomAttributes; -#endif var ignoreInheritance = parameter.Member is ConstructorInfo; foreach (var attribute in attributes) { -#if FEATURE_LEGACY_REFLECTION_API - var attributeType = attribute.Constructor.DeclaringType; -#else var attributeType = attribute.AttributeType; -#endif if (ShouldSkipAttributeReplication(attributeType, ignoreInheritance)) { diff --git a/src/Castle.Services.Logging.NLogIntegration/Castle.Services.Logging.NLogIntegration.csproj b/src/Castle.Services.Logging.NLogIntegration/Castle.Services.Logging.NLogIntegration.csproj index b30dd76359..95fd829138 100644 --- a/src/Castle.Services.Logging.NLogIntegration/Castle.Services.Logging.NLogIntegration.csproj +++ b/src/Castle.Services.Logging.NLogIntegration/Castle.Services.Logging.NLogIntegration.csproj @@ -3,7 +3,7 @@ - net40;net45;netstandard1.3 + net45;netstandard1.3 diff --git a/src/Castle.Services.Logging.log4netIntegration/Castle.Services.Logging.log4netIntegration.csproj b/src/Castle.Services.Logging.log4netIntegration/Castle.Services.Logging.log4netIntegration.csproj index 963a9b4094..ec0e6a1b7d 100644 --- a/src/Castle.Services.Logging.log4netIntegration/Castle.Services.Logging.log4netIntegration.csproj +++ b/src/Castle.Services.Logging.log4netIntegration/Castle.Services.Logging.log4netIntegration.csproj @@ -3,7 +3,7 @@ - net40;net45;netstandard1.3 + net45;netstandard1.3 diff --git a/src/Castle.Services.Logging.log4netIntegration/ExtendedLog4netFactory.cs b/src/Castle.Services.Logging.log4netIntegration/ExtendedLog4netFactory.cs index ee583153a6..54d8fba359 100644 --- a/src/Castle.Services.Logging.log4netIntegration/ExtendedLog4netFactory.cs +++ b/src/Castle.Services.Logging.log4netIntegration/ExtendedLog4netFactory.cs @@ -26,11 +26,7 @@ namespace Castle.Services.Logging.Log4netIntegration public class ExtendedLog4netFactory : AbstractExtendedLoggerFactory { -#if FEATURE_LEGACY_REFLECTION_API - static readonly Assembly _callingAssembly = typeof(Log4netFactory).Assembly; -#else static readonly Assembly _callingAssembly = typeof(Log4netFactory).GetTypeInfo().Assembly; -#endif public ExtendedLog4netFactory() : this(Log4netFactory.defaultConfigFileName) diff --git a/src/Castle.Services.Logging.log4netIntegration/Log4netFactory.cs b/src/Castle.Services.Logging.log4netIntegration/Log4netFactory.cs index d94c9b1f2e..56377abf4d 100644 --- a/src/Castle.Services.Logging.log4netIntegration/Log4netFactory.cs +++ b/src/Castle.Services.Logging.log4netIntegration/Log4netFactory.cs @@ -26,11 +26,7 @@ namespace Castle.Services.Logging.Log4netIntegration public class Log4netFactory : AbstractLoggerFactory { internal const string defaultConfigFileName = "log4net.config"; -#if FEATURE_LEGACY_REFLECTION_API - static readonly Assembly _callingAssembly = typeof(Log4netFactory).Assembly; -#else static readonly Assembly _callingAssembly = typeof(Log4netFactory).GetTypeInfo().Assembly; -#endif public Log4netFactory() : this(defaultConfigFileName) { From 6d1d3c1e4a6bb987bcc12e0b71a85fd73f937655 Mon Sep 17 00:00:00 2001 From: stakx Date: Fri, 1 May 2020 19:49:22 +0200 Subject: [PATCH 03/16] Update `ref/` contracts --- ref/Castle.Core-net40.cs | 3902 ----------------- ....Services.Logging.NLogIntegration-net40.cs | 114 - ...rvices.Logging.log4netIntegration-net40.cs | 115 - 3 files changed, 4131 deletions(-) delete mode 100644 ref/Castle.Core-net40.cs delete mode 100644 ref/Castle.Services.Logging.NLogIntegration-net40.cs delete mode 100644 ref/Castle.Services.Logging.log4netIntegration-net40.cs diff --git a/ref/Castle.Core-net40.cs b/ref/Castle.Core-net40.cs deleted file mode 100644 index 5a26f531a1..0000000000 --- a/ref/Castle.Core-net40.cs +++ /dev/null @@ -1,3902 +0,0 @@ -[assembly: System.CLSCompliantAttribute(true)] -[assembly: System.Runtime.CompilerServices.InternalsVisibleToAttribute(@"Castle.Core.Tests, PublicKey=002400000480000094000000060200000024000052534131000400000100010077f5e87030dadccce6902c6adab7a987bd69cb5819991531f560785eacfc89b6fcddf6bb2a00743a7194e454c0273447fc6eec36474ba8e5a3823147d214298e4f9a631b1afee1a51ffeae4672d498f14b000e3d321453cdd8ac064de7e1cf4d222b7e81f54d4fd46725370d702a05b48738cc29d09228f1aa722ae1a9ca02fb")] -[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0", FrameworkDisplayName=".NET Framework 4")] -[assembly: System.Security.SecurityRulesAttribute(System.Security.SecurityRuleSet.Level2)] -namespace Castle.Components.DictionaryAdapter -{ - public abstract class AbstractDictionaryAdapter : System.Collections.ICollection, System.Collections.IDictionary, System.Collections.IEnumerable - { - protected AbstractDictionaryAdapter() { } - public int Count { get; } - public bool IsFixedSize { get; } - public abstract bool IsReadOnly { get; } - public virtual bool IsSynchronized { get; } - public abstract object this[object key] { get; set; } - public System.Collections.ICollection Keys { get; } - public virtual object SyncRoot { get; } - public System.Collections.ICollection Values { get; } - public void Add(object key, object value) { } - public void Clear() { } - public abstract bool Contains(object key); - public void CopyTo(System.Array array, int index) { } - public System.Collections.IDictionaryEnumerator GetEnumerator() { } - public void Remove(object key) { } - } - public abstract class AbstractDictionaryAdapterVisitor : Castle.Components.DictionaryAdapter.IDictionaryAdapterVisitor - { - protected AbstractDictionaryAdapterVisitor() { } - protected AbstractDictionaryAdapterVisitor(Castle.Components.DictionaryAdapter.AbstractDictionaryAdapterVisitor parent) { } - protected bool Cancelled { get; set; } - protected virtual void VisitCollection(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, Castle.Components.DictionaryAdapter.PropertyDescriptor property, System.Type collectionItemType, object state) { } - public virtual bool VisitDictionaryAdapter(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, object state) { } - public virtual bool VisitDictionaryAdapter(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, System.Func selector, object state) { } - protected virtual void VisitInterface(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, Castle.Components.DictionaryAdapter.PropertyDescriptor property, object state) { } - protected virtual void VisitProperty(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, Castle.Components.DictionaryAdapter.PropertyDescriptor property, object state) { } - } - public class BindingListInitializer : Castle.Components.DictionaryAdapter.IValueInitializer - { - public BindingListInitializer(System.Func addAt, System.Func addNew, System.Func setAt, System.Action removeAt, System.Action reset) { } - public void Initialize(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, object value) { } - } - public class BindingList : Castle.Components.DictionaryAdapter.IBindingListSource, Castle.Components.DictionaryAdapter.IBindingList, System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.Generic.IList, System.Collections.ICollection, System.Collections.IEnumerable, System.Collections.IList, System.ComponentModel.ICancelAddNew, System.ComponentModel.IRaiseItemChangedEvents - { - public BindingList() { } - public BindingList(System.Collections.Generic.IList list) { } - public BindingList(System.ComponentModel.BindingList list) { } - public bool AllowEdit { get; set; } - public bool AllowNew { get; set; } - public bool AllowRemove { get; set; } - public System.ComponentModel.IBindingList AsBindingList { get; } - public int Count { get; } - public System.ComponentModel.BindingList InnerList { get; } - public T this[int index] { get; set; } - public bool RaiseListChangedEvents { get; set; } - public event System.ComponentModel.AddingNewEventHandler AddingNew; - public event System.ComponentModel.ListChangedEventHandler ListChanged; - public void Add(T item) { } - public T AddNew() { } - public void CancelNew(int index) { } - public void Clear() { } - public bool Contains(T item) { } - public void CopyTo(T[] array, int index) { } - public void EndNew(int index) { } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public int IndexOf(T item) { } - public void Insert(int index, T item) { } - public bool Remove(T item) { } - public void RemoveAt(int index) { } - public void ResetBindings() { } - public void ResetItem(int index) { } - } - public class CascadingDictionaryAdapter : Castle.Components.DictionaryAdapter.AbstractDictionaryAdapter - { - public CascadingDictionaryAdapter(System.Collections.IDictionary primary, System.Collections.IDictionary secondary) { } - public override bool IsReadOnly { get; } - public override object this[object key] { get; set; } - public System.Collections.IDictionary Primary { get; } - public System.Collections.IDictionary Secondary { get; } - public override bool Contains(object key) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.All, AllowMultiple=false, Inherited=true)] - public class ComponentAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryKeyBuilder, Castle.Components.DictionaryAdapter.IDictionaryPropertyGetter, Castle.Components.DictionaryAdapter.IDictionaryPropertySetter - { - public ComponentAttribute() { } - public bool NoPrefix { get; set; } - public string Prefix { get; set; } - public bool SetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, ref object value, Castle.Components.DictionaryAdapter.PropertyDescriptor property) { } - } - public class DefaultPropertyGetter : Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryPropertyGetter - { - public DefaultPropertyGetter(System.ComponentModel.TypeConverter converter) { } - public int ExecutionOrder { get; } - public Castle.Components.DictionaryAdapter.IDictionaryBehavior Copy() { } - public object GetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, object storedValue, Castle.Components.DictionaryAdapter.PropertyDescriptor property, bool ifExists) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.All, AllowMultiple=false, Inherited=false)] - public class DictionaryAdapterAttribute : System.Attribute - { - public DictionaryAdapterAttribute(System.Type interfaceType) { } - public System.Type InterfaceType { get; } - } - public abstract class DictionaryAdapterBase : Castle.Components.DictionaryAdapter.IDictionaryAdapter, Castle.Components.DictionaryAdapter.IDictionaryCreate, Castle.Components.DictionaryAdapter.IDictionaryEdit, Castle.Components.DictionaryAdapter.IDictionaryNotify, Castle.Components.DictionaryAdapter.IDictionaryValidate, System.ComponentModel.IChangeTracking, System.ComponentModel.IDataErrorInfo, System.ComponentModel.IEditableObject, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.IRevertibleChangeTracking - { - public DictionaryAdapterBase(Castle.Components.DictionaryAdapter.DictionaryAdapterInstance instance) { } - public bool CanEdit { get; set; } - public bool CanNotify { get; set; } - public bool CanValidate { get; set; } - public string Error { get; } - public bool IsChanged { get; } - public bool IsEditing { get; } - public bool IsValid { get; } - public string this[string columnName] { get; } - public abstract Castle.Components.DictionaryAdapter.DictionaryAdapterMeta Meta { get; } - public bool ShouldNotify { get; } - public bool SupportsMultiLevelEdit { get; set; } - public Castle.Components.DictionaryAdapter.DictionaryAdapterInstance This { get; } - public System.Collections.Generic.IEnumerable Validators { get; } - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; - public void AcceptChanges() { } - protected void AddEditDependency(System.ComponentModel.IEditableObject editDependency) { } - public void AddValidator(Castle.Components.DictionaryAdapter.IDictionaryValidator validator) { } - public void BeginEdit() { } - public void CancelEdit() { } - protected bool ClearEditProperty(Castle.Components.DictionaryAdapter.PropertyDescriptor property, string key) { } - public void ClearProperty(Castle.Components.DictionaryAdapter.PropertyDescriptor property, string key) { } - public T Coerce() - where T : class { } - public object Coerce(System.Type type) { } - public void CopyTo(Castle.Components.DictionaryAdapter.IDictionaryAdapter other) { } - public void CopyTo(Castle.Components.DictionaryAdapter.IDictionaryAdapter other, System.Func selector) { } - public T Create() { } - public object Create(System.Type type) { } - public T Create(System.Collections.IDictionary dictionary) { } - public object Create(System.Type type, System.Collections.IDictionary dictionary) { } - public T Create(System.Action init) { } - public T Create(System.Collections.IDictionary dictionary, System.Action init) { } - protected bool EditProperty(Castle.Components.DictionaryAdapter.PropertyDescriptor property, string key, object propertyValue) { } - public void EndEdit() { } - public override bool Equals(object obj) { } - protected bool GetEditedProperty(string propertyName, out object propertyValue) { } - public override int GetHashCode() { } - public string GetKey(string propertyName) { } - public virtual object GetProperty(string propertyName, bool ifExists) { } - public T GetPropertyOfType(string propertyName) { } - protected void Initialize() { } - protected void Invalidate() { } - protected void NotifyPropertyChanged(Castle.Components.DictionaryAdapter.PropertyDescriptor property, object oldValue, object newValue) { } - protected void NotifyPropertyChanged(string propertyName) { } - protected bool NotifyPropertyChanging(Castle.Components.DictionaryAdapter.PropertyDescriptor property, object oldValue, object newValue) { } - public object ReadProperty(string key) { } - public void RejectChanges() { } - public void ResumeEditing() { } - public void ResumeNotifications() { } - public virtual bool SetProperty(string propertyName, ref object value) { } - public bool ShouldClearProperty(Castle.Components.DictionaryAdapter.PropertyDescriptor property, object value) { } - public void StoreProperty(Castle.Components.DictionaryAdapter.PropertyDescriptor property, string key, object value) { } - public void SuppressEditing() { } - public System.IDisposable SuppressEditingBlock() { } - public void SuppressNotifications() { } - public System.IDisposable SuppressNotificationsBlock() { } - protected Castle.Components.DictionaryAdapter.DictionaryAdapterBase.TrackPropertyChangeScope TrackPropertyChange(Castle.Components.DictionaryAdapter.PropertyDescriptor property, object oldValue, object newValue) { } - protected Castle.Components.DictionaryAdapter.DictionaryAdapterBase.TrackPropertyChangeScope TrackReadonlyPropertyChanges() { } - public Castle.Components.DictionaryAdapter.DictionaryValidateGroup ValidateGroups(params object[] groups) { } - public class TrackPropertyChangeScope : System.IDisposable - { - public TrackPropertyChangeScope(Castle.Components.DictionaryAdapter.DictionaryAdapterBase adapter) { } - public TrackPropertyChangeScope(Castle.Components.DictionaryAdapter.DictionaryAdapterBase adapter, Castle.Components.DictionaryAdapter.PropertyDescriptor property, object existingValue) { } - public void Dispose() { } - public bool Notify() { } - } - } - public class static DictionaryAdapterExtensions - { - public static Castle.Components.DictionaryAdapter.IVirtual AsVirtual(this Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter) { } - } - public class DictionaryAdapterFactory : Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory - { - public DictionaryAdapterFactory() { } - public T GetAdapter(System.Collections.IDictionary dictionary) { } - public object GetAdapter(System.Type type, System.Collections.IDictionary dictionary) { } - public object GetAdapter(System.Type type, System.Collections.IDictionary dictionary, Castle.Components.DictionaryAdapter.PropertyDescriptor descriptor) { } - public T GetAdapter(System.Collections.Generic.IDictionary dictionary) { } - public object GetAdapter(System.Type type, System.Collections.Generic.IDictionary dictionary) { } - public T GetAdapter(System.Collections.Specialized.NameValueCollection nameValues) { } - public object GetAdapter(System.Type type, System.Collections.Specialized.NameValueCollection nameValues) { } - public T GetAdapter(System.Xml.XmlNode xmlNode) { } - public object GetAdapter(System.Type type, System.Xml.XmlNode xmlNode) { } - public Castle.Components.DictionaryAdapter.DictionaryAdapterMeta GetAdapterMeta(System.Type type) { } - public Castle.Components.DictionaryAdapter.DictionaryAdapterMeta GetAdapterMeta(System.Type type, Castle.Components.DictionaryAdapter.PropertyDescriptor descriptor) { } - public Castle.Components.DictionaryAdapter.DictionaryAdapterMeta GetAdapterMeta(System.Type type, Castle.Components.DictionaryAdapter.DictionaryAdapterMeta other) { } - } - public class DictionaryAdapterInstance - { - public DictionaryAdapterInstance(System.Collections.IDictionary dictionary, Castle.Components.DictionaryAdapter.DictionaryAdapterMeta meta, Castle.Components.DictionaryAdapter.PropertyDescriptor descriptor, Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory factory) { } - public Castle.Components.DictionaryAdapter.IDictionaryCoerceStrategy CoerceStrategy { get; set; } - public System.Collections.Generic.IEnumerable CopyStrategies { get; } - public Castle.Components.DictionaryAdapter.IDictionaryCreateStrategy CreateStrategy { get; set; } - public Castle.Components.DictionaryAdapter.PropertyDescriptor Descriptor { get; } - public System.Collections.IDictionary Dictionary { get; } - public Castle.Components.DictionaryAdapter.IDictionaryEqualityHashCodeStrategy EqualityHashCodeStrategy { get; set; } - public System.Collections.IDictionary ExtendedProperties { get; } - public Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory Factory { get; } - public Castle.Components.DictionaryAdapter.IDictionaryInitializer[] Initializers { get; } - public System.Collections.Generic.IDictionary Properties { get; } - public void AddCopyStrategy(Castle.Components.DictionaryAdapter.IDictionaryCopyStrategy copyStrategy) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("Type: {Type.FullName,nq}")] - public class DictionaryAdapterMeta - { - public DictionaryAdapterMeta(System.Type type, System.Type implementation, object[] behaviors, Castle.Components.DictionaryAdapter.IDictionaryMetaInitializer[] metaInitializers, Castle.Components.DictionaryAdapter.IDictionaryInitializer[] initializers, System.Collections.Generic.IDictionary properties, Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory factory, System.Func creator) { } - public object[] Behaviors { get; } - public System.Collections.IDictionary ExtendedProperties { get; } - public Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory Factory { get; } - public System.Type Implementation { get; } - public Castle.Components.DictionaryAdapter.IDictionaryInitializer[] Initializers { get; } - public Castle.Components.DictionaryAdapter.IDictionaryMetaInitializer[] MetaInitializers { get; } - public System.Collections.Generic.IDictionary Properties { get; } - public System.Type Type { get; } - public Castle.Components.DictionaryAdapter.PropertyDescriptor CreateDescriptor() { } - public object CreateInstance(System.Collections.IDictionary dictionary, Castle.Components.DictionaryAdapter.PropertyDescriptor descriptor) { } - public Castle.Components.DictionaryAdapter.DictionaryAdapterMeta GetAdapterMeta(System.Type type) { } - } - public abstract class DictionaryBehaviorAttribute : System.Attribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior - { - public const int DefaultExecutionOrder = 1073741823; - public const int FirstExecutionOrder = 0; - public const int LastExecutionOrder = 2147483647; - public DictionaryBehaviorAttribute() { } - public int ExecutionOrder { get; set; } - public virtual Castle.Components.DictionaryAdapter.IDictionaryBehavior Copy() { } - } - public class DictionaryValidateGroup : Castle.Components.DictionaryAdapter.IDictionaryValidate, System.ComponentModel.IDataErrorInfo, System.ComponentModel.INotifyPropertyChanged, System.IDisposable - { - public DictionaryValidateGroup(object[] groups, Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter) { } - public bool CanValidate { get; set; } - public string Error { get; } - public bool IsValid { get; } - public string this[string columnName] { get; } - public System.Collections.Generic.IEnumerable Validators { get; } - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - public void AddValidator(Castle.Components.DictionaryAdapter.IDictionaryValidator validator) { } - public void Dispose() { } - public Castle.Components.DictionaryAdapter.DictionaryValidateGroup ValidateGroups(params object[] groups) { } - } - public class DynamicDictionary : System.Dynamic.DynamicObject - { - public DynamicDictionary(System.Collections.IDictionary dictionary) { } - public override System.Collections.Generic.IEnumerable GetDynamicMemberNames() { } - public override bool TryGetMember(System.Dynamic.GetMemberBinder binder, out object result) { } - public override bool TrySetMember(System.Dynamic.SetMemberBinder binder, object value) { } - } - public class DynamicValueDelegate : Castle.Components.DictionaryAdapter.DynamicValue - { - public DynamicValueDelegate(System.Func dynamicDelegate) { } - public override T Value { get; } - } - public abstract class DynamicValue : Castle.Components.DictionaryAdapter.IDynamicValue, Castle.Components.DictionaryAdapter.IDynamicValue - { - protected DynamicValue() { } - public abstract T Value { get; } - public override string ToString() { } - } - public class EditableBindingList : System.ComponentModel.BindingList, System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.Generic.IList, System.Collections.IEnumerable, System.ComponentModel.IChangeTracking, System.ComponentModel.IEditableObject, System.ComponentModel.IRevertibleChangeTracking - { - public EditableBindingList() { } - public EditableBindingList(System.Collections.Generic.IList initial) { } - public bool IsChanged { get; } - public void AcceptChanges() { } - public void BeginEdit() { } - public void CancelEdit() { } - public void EndEdit() { } - public void RejectChanges() { } - } - public class EditableList : Castle.Components.DictionaryAdapter.EditableList, System.Collections.ICollection, System.Collections.IEnumerable, System.Collections.IList - { - public EditableList() { } - public EditableList(System.Collections.Generic.IEnumerable collection) { } - } - public class EditableList : System.Collections.Generic.List, System.ComponentModel.IChangeTracking, System.ComponentModel.IEditableObject, System.ComponentModel.IRevertibleChangeTracking - { - public EditableList() { } - public EditableList(System.Collections.Generic.IEnumerable collection) { } - public bool IsChanged { get; } - public void AcceptChanges() { } - public void BeginEdit() { } - public void CancelEdit() { } - public void EndEdit() { } - public void RejectChanges() { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=false)] - public class FetchAttribute : System.Attribute - { - public FetchAttribute() { } - public FetchAttribute(bool fetch) { } - public bool Fetch { get; } - } - public class static GenericDictionaryAdapter - { - public static Castle.Components.DictionaryAdapter.GenericDictionaryAdapter ForDictionaryAdapter(this System.Collections.Generic.IDictionary dictionary) { } - } - public class GenericDictionaryAdapter : Castle.Components.DictionaryAdapter.AbstractDictionaryAdapter - { - public GenericDictionaryAdapter(System.Collections.Generic.IDictionary dictionary) { } - public override bool IsReadOnly { get; } - public override object this[object key] { get; set; } - public override bool Contains(object key) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.All, AllowMultiple=true)] - public class GroupAttribute : System.Attribute - { - public GroupAttribute(object group) { } - public GroupAttribute(params object[] group) { } - public object[] Group { get; } - } - public interface IBindingListSource - { - System.ComponentModel.IBindingList AsBindingList { get; } - } - public interface IBindingList : Castle.Components.DictionaryAdapter.IBindingListSource, System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.Generic.IList, System.Collections.IEnumerable, System.ComponentModel.ICancelAddNew, System.ComponentModel.IRaiseItemChangedEvents - { - bool AllowEdit { get; } - bool AllowNew { get; } - bool AllowRemove { get; } - bool IsSorted { get; } - System.ComponentModel.ListSortDirection SortDirection { get; } - System.ComponentModel.PropertyDescriptor SortProperty { get; } - bool SupportsChangeNotification { get; } - bool SupportsSearching { get; } - bool SupportsSorting { get; } - public event System.ComponentModel.ListChangedEventHandler ListChanged; - void AddIndex(System.ComponentModel.PropertyDescriptor property); - T AddNew(); - void ApplySort(System.ComponentModel.PropertyDescriptor property, System.ComponentModel.ListSortDirection direction); - int Find(System.ComponentModel.PropertyDescriptor property, object key); - void RemoveIndex(System.ComponentModel.PropertyDescriptor property); - void RemoveSort(); - } - public interface ICollectionAdapterObserver - { - void OnInserted(T newValue, int index); - bool OnInserting(T newValue); - void OnRemoved(T oldValue, int index); - void OnRemoving(T oldValue); - void OnReplaced(T oldValue, T newValue, int index); - bool OnReplacing(T oldValue, T newValue); - } - public interface ICollectionAdapter - { - System.Collections.Generic.IEqualityComparer Comparer { get; } - int Count { get; } - bool HasSnapshot { get; } - T this[int index] { get; set; } - int SnapshotCount { get; } - bool Add(T value); - T AddNew(); - void Clear(); - void ClearReferences(); - void DropSnapshot(); - T GetCurrentItem(int index); - T GetSnapshotItem(int index); - void Initialize(Castle.Components.DictionaryAdapter.ICollectionAdapterObserver advisor); - bool Insert(int index, T value); - void LoadSnapshot(); - void Remove(int index); - void SaveSnapshot(); - } - public interface ICollectionProjection : System.Collections.ICollection, System.Collections.IEnumerable - { - void Clear(); - void ClearReferences(); - void Replace(System.Collections.IEnumerable source); - } - public interface ICondition - { - bool SatisfiedBy(object value); - } - public interface IDictionaryAdapter : Castle.Components.DictionaryAdapter.IDictionaryCreate, Castle.Components.DictionaryAdapter.IDictionaryEdit, Castle.Components.DictionaryAdapter.IDictionaryNotify, Castle.Components.DictionaryAdapter.IDictionaryValidate, System.ComponentModel.IChangeTracking, System.ComponentModel.IDataErrorInfo, System.ComponentModel.IEditableObject, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.IRevertibleChangeTracking - { - Castle.Components.DictionaryAdapter.DictionaryAdapterMeta Meta { get; } - Castle.Components.DictionaryAdapter.DictionaryAdapterInstance This { get; } - void ClearProperty(Castle.Components.DictionaryAdapter.PropertyDescriptor property, string key); - T Coerce() - where T : class; - object Coerce(System.Type type); - void CopyTo(Castle.Components.DictionaryAdapter.IDictionaryAdapter other); - void CopyTo(Castle.Components.DictionaryAdapter.IDictionaryAdapter other, System.Func selector); - string GetKey(string propertyName); - object GetProperty(string propertyName, bool ifExists); - T GetPropertyOfType(string propertyName); - object ReadProperty(string key); - bool SetProperty(string propertyName, ref object value); - bool ShouldClearProperty(Castle.Components.DictionaryAdapter.PropertyDescriptor property, object value); - void StoreProperty(Castle.Components.DictionaryAdapter.PropertyDescriptor property, string key, object value); - } - public interface IDictionaryAdapterFactory - { - T GetAdapter(System.Collections.IDictionary dictionary); - object GetAdapter(System.Type type, System.Collections.IDictionary dictionary); - object GetAdapter(System.Type type, System.Collections.IDictionary dictionary, Castle.Components.DictionaryAdapter.PropertyDescriptor descriptor); - T GetAdapter(System.Collections.Specialized.NameValueCollection nameValues); - object GetAdapter(System.Type type, System.Collections.Specialized.NameValueCollection nameValues); - T GetAdapter(System.Xml.XmlNode xmlNode); - object GetAdapter(System.Type type, System.Xml.XmlNode xmlNode); - Castle.Components.DictionaryAdapter.DictionaryAdapterMeta GetAdapterMeta(System.Type type); - Castle.Components.DictionaryAdapter.DictionaryAdapterMeta GetAdapterMeta(System.Type type, Castle.Components.DictionaryAdapter.PropertyDescriptor descriptor); - Castle.Components.DictionaryAdapter.DictionaryAdapterMeta GetAdapterMeta(System.Type type, Castle.Components.DictionaryAdapter.DictionaryAdapterMeta other); - } - public interface IDictionaryAdapterVisitor - { - void VisitCollection(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, Castle.Components.DictionaryAdapter.PropertyDescriptor property, System.Type collectionItemType, object state); - bool VisitDictionaryAdapter(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, object state); - bool VisitDictionaryAdapter(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, System.Func selector, object state); - void VisitInterface(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, Castle.Components.DictionaryAdapter.PropertyDescriptor property, object state); - void VisitProperty(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, Castle.Components.DictionaryAdapter.PropertyDescriptor property, object state); - } - public interface IDictionaryBehavior - { - int ExecutionOrder { get; } - Castle.Components.DictionaryAdapter.IDictionaryBehavior Copy(); - } - public interface IDictionaryBehaviorBuilder - { - object[] BuildBehaviors(); - } - public interface IDictionaryCoerceStrategy - { - object Coerce(Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter, System.Type type); - } - public interface IDictionaryCopyStrategy - { - bool Copy(Castle.Components.DictionaryAdapter.IDictionaryAdapter source, Castle.Components.DictionaryAdapter.IDictionaryAdapter target, ref System.Func selector); - } - public interface IDictionaryCreate - { - T Create(); - object Create(System.Type type); - T Create(System.Collections.IDictionary dictionary); - object Create(System.Type type, System.Collections.IDictionary dictionary); - T Create(System.Action init); - T Create(System.Collections.IDictionary dictionary, System.Action init); - } - public interface IDictionaryCreateStrategy - { - object Create(Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter, System.Type type, System.Collections.IDictionary dictionary); - } - public interface IDictionaryEdit : System.ComponentModel.IChangeTracking, System.ComponentModel.IEditableObject, System.ComponentModel.IRevertibleChangeTracking - { - bool CanEdit { get; } - bool IsEditing { get; } - bool SupportsMultiLevelEdit { get; set; } - void ResumeEditing(); - void SuppressEditing(); - System.IDisposable SuppressEditingBlock(); - } - public interface IDictionaryEqualityHashCodeStrategy - { - bool Equals(Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter1, Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter2); - bool GetHashCode(Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter, out int hashCode); - } - public interface IDictionaryInitializer : Castle.Components.DictionaryAdapter.IDictionaryBehavior - { - void Initialize(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, object[] behaviors); - } - public interface IDictionaryKeyBuilder : Castle.Components.DictionaryAdapter.IDictionaryBehavior - { - string GetKey(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, Castle.Components.DictionaryAdapter.PropertyDescriptor property); - } - public interface IDictionaryMetaInitializer : Castle.Components.DictionaryAdapter.IDictionaryBehavior - { - void Initialize(Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory factory, Castle.Components.DictionaryAdapter.DictionaryAdapterMeta dictionaryMeta); - bool ShouldHaveBehavior(object behavior); - } - public interface IDictionaryNotify : System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - bool CanNotify { get; } - bool ShouldNotify { get; } - void ResumeNotifications(); - void SuppressNotifications(); - System.IDisposable SuppressNotificationsBlock(); - } - public interface IDictionaryPropertyGetter : Castle.Components.DictionaryAdapter.IDictionaryBehavior - { - object GetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, object storedValue, Castle.Components.DictionaryAdapter.PropertyDescriptor property, bool ifExists); - } - public interface IDictionaryPropertySetter : Castle.Components.DictionaryAdapter.IDictionaryBehavior - { - bool SetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, ref object value, Castle.Components.DictionaryAdapter.PropertyDescriptor property); - } - public interface IDictionaryReferenceManager - { - void AddReference(object keyObject, object relatedObject, bool isInGraph); - bool IsReferenceProperty(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string propertyName); - bool TryGetReference(object keyObject, out object inGraphObject); - } - public interface IDictionaryValidate : System.ComponentModel.IDataErrorInfo - { - bool CanValidate { get; set; } - bool IsValid { get; } - System.Collections.Generic.IEnumerable Validators { get; } - void AddValidator(Castle.Components.DictionaryAdapter.IDictionaryValidator validator); - Castle.Components.DictionaryAdapter.DictionaryValidateGroup ValidateGroups(params object[] groups); - } - public interface IDictionaryValidator - { - void Invalidate(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter); - bool IsValid(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter); - string Validate(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter); - string Validate(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, Castle.Components.DictionaryAdapter.PropertyDescriptor property); - } - public interface IDynamicValue - { - object GetValue(); - } - public interface IDynamicValue : Castle.Components.DictionaryAdapter.IDynamicValue - { - T Value { get; } - } - public interface IPropertyDescriptorInitializer : Castle.Components.DictionaryAdapter.IDictionaryBehavior - { - void Initialize(Castle.Components.DictionaryAdapter.PropertyDescriptor propertyDescriptor, object[] behaviors); - } - public interface IValueInitializer - { - void Initialize(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, object value); - } - public interface IVirtual - { - bool IsReal { get; } - public event System.EventHandler Realized; - void Realize(); - } - public interface IVirtualSite - { - void OnRealizing(T node); - } - public interface IVirtualTarget - { - void OnRealizing(TNode node, TMember member); - } - public interface IVirtual : Castle.Components.DictionaryAdapter.IVirtual - { - void AddSite(Castle.Components.DictionaryAdapter.IVirtualSite site); - T Realize(); - void RemoveSite(Castle.Components.DictionaryAdapter.IVirtualSite site); - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.All, AllowMultiple=false)] - public class IfExistsAttribute : System.Attribute - { - public IfExistsAttribute() { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.All, AllowMultiple=false, Inherited=true)] - public class KeyAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryKeyBuilder - { - public KeyAttribute(string key) { } - public KeyAttribute(string[] keys) { } - public string Key { get; } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=false, Inherited=false)] - public class KeyPrefixAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryKeyBuilder - { - public KeyPrefixAttribute() { } - public KeyPrefixAttribute(string keyPrefix) { } - public string KeyPrefix { get; set; } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=true, Inherited=true)] - public class KeySubstitutionAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryKeyBuilder - { - public KeySubstitutionAttribute(string oldValue, string newValue) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("Count = {Count}, Adapter = {Adapter}")] - [System.Diagnostics.DebuggerTypeProxyAttribute(typeof(Castle.Components.DictionaryAdapter.ListProjectionDebugView))] - public class ListProjection : Castle.Components.DictionaryAdapter.IBindingListSource, Castle.Components.DictionaryAdapter.IBindingList, Castle.Components.DictionaryAdapter.ICollectionAdapterObserver, Castle.Components.DictionaryAdapter.ICollectionProjection, System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.Generic.IList, System.Collections.ICollection, System.Collections.IEnumerable, System.Collections.IList, System.ComponentModel.IBindingList, System.ComponentModel.ICancelAddNew, System.ComponentModel.IChangeTracking, System.ComponentModel.IEditableObject, System.ComponentModel.IRaiseItemChangedEvents, System.ComponentModel.IRevertibleChangeTracking - { - public ListProjection(Castle.Components.DictionaryAdapter.ICollectionAdapter adapter) { } - public Castle.Components.DictionaryAdapter.ICollectionAdapter Adapter { get; } - public System.ComponentModel.IBindingList AsBindingList { get; } - public System.Collections.Generic.IEqualityComparer Comparer { get; } - public int Count { get; } - public bool EventsEnabled { get; } - public bool IsChanged { get; } - public T this[int index] { get; set; } - public event System.ComponentModel.ListChangedEventHandler ListChanged; - public void AcceptChanges() { } - public virtual bool Add(T item) { } - public virtual T AddNew() { } - public void BeginEdit() { } - public void CancelEdit() { } - public virtual void CancelNew(int index) { } - public virtual void Clear() { } - public virtual bool Contains(T item) { } - public void CopyTo(T[] array, int index) { } - public void EndEdit() { } - public virtual void EndNew(int index) { } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public int IndexOf(T item) { } - public void Insert(int index, T item) { } - public bool IsNew(int index) { } - protected void NotifyListChanged(System.ComponentModel.ListChangedType type, int index) { } - protected void NotifyListReset() { } - protected virtual void OnInserted(T newValue, int index) { } - protected virtual bool OnInserting(T value) { } - protected virtual void OnListChanged(System.ComponentModel.ListChangedEventArgs args) { } - protected virtual void OnRemoved(T oldValue, int index) { } - protected virtual void OnRemoving(T oldValue) { } - protected virtual void OnReplaced(T oldValue, T newValue, int index) { } - protected virtual bool OnReplacing(T oldValue, T newValue) { } - public void RejectChanges() { } - public virtual bool Remove(T item) { } - public virtual void RemoveAt(int index) { } - public void Replace(System.Collections.Generic.IEnumerable items) { } - public bool ResumeEvents() { } - public void SuspendEvents() { } - } - public class MemberwiseEqualityHashCodeStrategy : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryEqualityHashCodeStrategy, Castle.Components.DictionaryAdapter.IDictionaryInitializer, System.Collections.Generic.IEqualityComparer - { - public MemberwiseEqualityHashCodeStrategy() { } - public bool Equals(Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter1, Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter2) { } - public int GetHashCode(Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter) { } - public bool GetHashCode(Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter, out int hashCode) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=false)] - public class MultiLevelEditAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryInitializer - { - public MultiLevelEditAttribute() { } - public void Initialize(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, object[] behaviors) { } - } - public class NameValueCollectionAdapter : Castle.Components.DictionaryAdapter.AbstractDictionaryAdapter - { - public NameValueCollectionAdapter(System.Collections.Specialized.NameValueCollection nameValues) { } - public override bool IsReadOnly { get; } - public override object this[object key] { get; set; } - public static Castle.Components.DictionaryAdapter.NameValueCollectionAdapter Adapt(System.Collections.Specialized.NameValueCollection nameValues) { } - public override bool Contains(object key) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=false)] - public class NewGuidAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryPropertyGetter - { - public NewGuidAttribute() { } - public object GetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, object storedValue, Castle.Components.DictionaryAdapter.PropertyDescriptor property, bool ifExists) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=false)] - public class OnDemandAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryPropertyGetter - { - public OnDemandAttribute() { } - public OnDemandAttribute(System.Type type) { } - public OnDemandAttribute(object value) { } - public System.Type Type { get; } - public object Value { get; } - public object GetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, object storedValue, Castle.Components.DictionaryAdapter.PropertyDescriptor property, bool ifExists) { } - } - public class PropertyChangedEventArgsEx : System.ComponentModel.PropertyChangedEventArgs - { - public PropertyChangedEventArgsEx(string propertyName, object oldValue, object newValue) { } - public object NewValue { get; } - public object OldValue { get; } - } - public class PropertyChangingEventArgsEx : System.ComponentModel.PropertyChangingEventArgs - { - public PropertyChangingEventArgsEx(string propertyName, object oldValue, object newValue) { } - public bool Cancel { get; set; } - public object NewValue { get; } - public object OldValue { get; } - } - [System.Diagnostics.DebuggerDisplayAttribute("{Property.DeclaringType.FullName,nq}.{PropertyName,nq}")] - public class PropertyDescriptor : Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryKeyBuilder, Castle.Components.DictionaryAdapter.IDictionaryPropertyGetter, Castle.Components.DictionaryAdapter.IDictionaryPropertySetter - { - protected System.Collections.Generic.List dictionaryBehaviors; - public PropertyDescriptor() { } - public PropertyDescriptor(System.Reflection.PropertyInfo property, object[] annotations) { } - public PropertyDescriptor(object[] annotations) { } - public PropertyDescriptor(Castle.Components.DictionaryAdapter.PropertyDescriptor source, bool copyBehaviors) { } - public object[] Annotations { get; } - public System.Collections.Generic.IEnumerable Behaviors { get; } - public int ExecutionOrder { get; } - public System.Collections.IDictionary ExtendedProperties { get; } - public bool Fetch { get; set; } - public System.Collections.Generic.IEnumerable Getters { get; } - public bool IfExists { get; set; } - public System.Collections.Generic.IEnumerable Initializers { get; } - public bool IsDynamicProperty { get; } - public System.Collections.Generic.IEnumerable KeyBuilders { get; } - public System.Collections.Generic.IEnumerable MetaInitializers { get; } - public System.Reflection.PropertyInfo Property { get; } - public string PropertyName { get; } - public System.Type PropertyType { get; } - public System.Collections.Generic.IEnumerable Setters { get; } - public System.Collections.IDictionary State { get; } - public bool SuppressNotifications { get; set; } - public System.ComponentModel.TypeConverter TypeConverter { get; } - public Castle.Components.DictionaryAdapter.PropertyDescriptor AddBehavior(Castle.Components.DictionaryAdapter.IDictionaryBehavior behavior) { } - public Castle.Components.DictionaryAdapter.PropertyDescriptor AddBehaviors(params Castle.Components.DictionaryAdapter.IDictionaryBehavior[] behaviors) { } - public Castle.Components.DictionaryAdapter.PropertyDescriptor AddBehaviors(System.Collections.Generic.IEnumerable behaviors) { } - public Castle.Components.DictionaryAdapter.IDictionaryBehavior Copy() { } - public Castle.Components.DictionaryAdapter.PropertyDescriptor CopyBehaviors(Castle.Components.DictionaryAdapter.PropertyDescriptor other) { } - public string GetKey(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, Castle.Components.DictionaryAdapter.PropertyDescriptor descriptor) { } - public object GetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, object storedValue, Castle.Components.DictionaryAdapter.PropertyDescriptor descriptor, bool ifExists) { } - public static void MergeBehavior(ref System.Collections.Generic.List dictionaryBehaviors, T behavior) - where T : class, Castle.Components.DictionaryAdapter.IDictionaryBehavior { } - public bool SetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, ref object value, Castle.Components.DictionaryAdapter.PropertyDescriptor descriptor) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All)] - public class ReferenceAttribute : System.Attribute - { - public ReferenceAttribute() { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=true)] - public class RemoveIfAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryPropertySetter - { - public RemoveIfAttribute() { } - public RemoveIfAttribute(params object[] values) { } - public RemoveIfAttribute(object[] values, System.Type comparerType) { } - protected RemoveIfAttribute(Castle.Components.DictionaryAdapter.ICondition condition) { } - public System.Type Condition { set; } - } - public class RemoveIfEmptyAttribute : Castle.Components.DictionaryAdapter.RemoveIfAttribute - { - public RemoveIfEmptyAttribute() { } - } - public class SetProjection : Castle.Components.DictionaryAdapter.ListProjection, System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.Generic.ISet, System.Collections.IEnumerable - { - public SetProjection(Castle.Components.DictionaryAdapter.ICollectionAdapter adapter) { } - public override bool Add(T item) { } - public override void Clear() { } - public override bool Contains(T item) { } - public override void EndNew(int index) { } - public void ExceptWith(System.Collections.Generic.IEnumerable other) { } - public void IntersectWith(System.Collections.Generic.IEnumerable other) { } - public bool IsProperSubsetOf(System.Collections.Generic.IEnumerable other) { } - public bool IsProperSupersetOf(System.Collections.Generic.IEnumerable other) { } - public bool IsSubsetOf(System.Collections.Generic.IEnumerable other) { } - public bool IsSupersetOf(System.Collections.Generic.IEnumerable other) { } - protected override bool OnInserting(T value) { } - protected override bool OnReplacing(T oldValue, T newValue) { } - public bool Overlaps(System.Collections.Generic.IEnumerable other) { } - public override bool Remove(T item) { } - public override void RemoveAt(int index) { } - public bool SetEquals(System.Collections.Generic.IEnumerable other) { } - public void SymmetricExceptWith(System.Collections.Generic.IEnumerable other) { } - public void UnionWith(System.Collections.Generic.IEnumerable other) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.All, AllowMultiple=false, Inherited=false)] - public class StringFormatAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryPropertyGetter - { - public StringFormatAttribute(string format, string properties) { } - public string Format { get; } - public string Properties { get; } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.All, AllowMultiple=false, Inherited=true)] - public class StringListAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryPropertyGetter, Castle.Components.DictionaryAdapter.IDictionaryPropertySetter - { - public StringListAttribute() { } - public char Separator { get; set; } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=false)] - public class StringStorageAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryPropertySetter - { - public StringStorageAttribute() { } - public bool SetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, ref object value, Castle.Components.DictionaryAdapter.PropertyDescriptor property) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=false, Inherited=true)] - public class StringValuesAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryPropertySetter - { - public StringValuesAttribute() { } - public string Format { get; set; } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.All, AllowMultiple=false)] - public class SuppressNotificationsAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IPropertyDescriptorInitializer - { - public SuppressNotificationsAttribute() { } - public void Initialize(Castle.Components.DictionaryAdapter.PropertyDescriptor propertyDescriptor, object[] behaviors) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=false, Inherited=true)] - public class TypeKeyPrefixAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryKeyBuilder - { - public TypeKeyPrefixAttribute() { } - } - public abstract class VirtualObject : Castle.Components.DictionaryAdapter.IVirtual, Castle.Components.DictionaryAdapter.IVirtual - { - protected VirtualObject() { } - protected VirtualObject(Castle.Components.DictionaryAdapter.IVirtualSite site) { } - public abstract bool IsReal { get; } - public event System.EventHandler Realized; - protected void AddSite(Castle.Components.DictionaryAdapter.IVirtualSite site) { } - protected virtual void OnRealized() { } - public TNode Realize() { } - protected void RemoveSite(Castle.Components.DictionaryAdapter.IVirtualSite site) { } - protected abstract bool TryRealize(out TNode node); - } - public sealed class VirtualSite : Castle.Components.DictionaryAdapter.IVirtualSite, System.IEquatable> - { - public VirtualSite(Castle.Components.DictionaryAdapter.IVirtualTarget target, TMember member) { } - public TMember Member { get; } - public Castle.Components.DictionaryAdapter.IVirtualTarget Target { get; } - public override bool Equals(object obj) { } - public bool Equals(Castle.Components.DictionaryAdapter.VirtualSite other) { } - public override int GetHashCode() { } - public void OnRealizing(TNode node) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=false)] - public class VolatileAttribute : System.Attribute - { - public VolatileAttribute() { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Interface | System.AttributeTargets.All)] - public class XmlDefaultsAttribute : System.Attribute - { - public XmlDefaultsAttribute() { } - public bool IsNullable { get; set; } - public bool Qualified { get; set; } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=true)] - public class XmlNamespaceAttribute : System.Attribute - { - public XmlNamespaceAttribute(string namespaceUri, string prefix) { } - public bool Default { get; set; } - public string NamespaceUri { get; } - public string Prefix { get; } - public bool Root { get; set; } - } -} -namespace Castle.Components.DictionaryAdapter.Xml -{ - public class CompiledXPath - { - public int Depth { get; } - public Castle.Components.DictionaryAdapter.Xml.CompiledXPathStep FirstStep { get; } - public bool IsCreatable { get; } - public Castle.Components.DictionaryAdapter.Xml.CompiledXPathStep LastStep { get; } - public System.Xml.XPath.XPathExpression Path { get; } - public void SetContext(System.Xml.Xsl.XsltContext context) { } - } - public class CompiledXPathNode - { - public System.Collections.Generic.IList Dependencies { get; } - public bool IsAttribute { get; } - public bool IsSelfReference { get; } - public bool IsSimple { get; } - public string LocalName { get; } - public Castle.Components.DictionaryAdapter.Xml.CompiledXPathNode NextNode { get; } - public string Prefix { get; } - public Castle.Components.DictionaryAdapter.Xml.CompiledXPathNode PreviousNode { get; } - public System.Xml.XPath.XPathExpression Value { get; } - } - public class CompiledXPathStep : Castle.Components.DictionaryAdapter.Xml.CompiledXPathNode - { - public Castle.Components.DictionaryAdapter.Xml.CompiledXPathStep NextStep { get; } - public System.Xml.XPath.XPathExpression Path { get; } - } - [System.FlagsAttribute()] - public enum CursorFlags - { - None = 0, - Elements = 1, - Attributes = 2, - Multiple = 4, - Mutable = 8, - AllNodes = 3, - } - public class static CursorFlagsExtensions - { - public static bool AllowsMultipleItems(this Castle.Components.DictionaryAdapter.Xml.CursorFlags flags) { } - public static bool IncludesAttributes(this Castle.Components.DictionaryAdapter.Xml.CursorFlags flags) { } - public static bool IncludesElements(this Castle.Components.DictionaryAdapter.Xml.CursorFlags flags) { } - public static Castle.Components.DictionaryAdapter.Xml.CursorFlags MutableIf(this Castle.Components.DictionaryAdapter.Xml.CursorFlags flags, bool mutable) { } - public static bool SupportsMutation(this Castle.Components.DictionaryAdapter.Xml.CursorFlags flags) { } - } - public sealed class DefaultXmlReferenceFormat : Castle.Components.DictionaryAdapter.Xml.IXmlReferenceFormat - { - public static readonly Castle.Components.DictionaryAdapter.Xml.DefaultXmlReferenceFormat Instance; - public void ClearIdentity(Castle.Components.DictionaryAdapter.Xml.IXmlNode node) { } - public void ClearReference(Castle.Components.DictionaryAdapter.Xml.IXmlNode node) { } - public void SetIdentity(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, int id) { } - public void SetReference(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, int id) { } - public bool TryGetIdentity(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, out int id) { } - public bool TryGetReference(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, out int id) { } - } - public class static DictionaryAdapterExtensions - { - public static object CreateChildAdapter(this Castle.Components.DictionaryAdapter.IDictionaryAdapter parent, System.Type type, Castle.Components.DictionaryAdapter.Xml.XmlAdapter adapter) { } - public static object CreateChildAdapter(this Castle.Components.DictionaryAdapter.IDictionaryAdapter parent, System.Type type, Castle.Components.DictionaryAdapter.Xml.XmlAdapter adapter, System.Collections.IDictionary dictionary) { } - public static Castle.Components.DictionaryAdapter.Xml.XmlAccessor GetAccessor(this Castle.Components.DictionaryAdapter.PropertyDescriptor property) { } - public static Castle.Components.DictionaryAdapter.Xml.XmlMetadata GetXmlMeta(this Castle.Components.DictionaryAdapter.DictionaryAdapterMeta meta) { } - public static string GetXmlType(this Castle.Components.DictionaryAdapter.DictionaryAdapterMeta meta) { } - public static bool HasAccessor(this Castle.Components.DictionaryAdapter.PropertyDescriptor property) { } - public static bool HasXmlMeta(this Castle.Components.DictionaryAdapter.DictionaryAdapterMeta meta) { } - public static bool HasXmlType(this Castle.Components.DictionaryAdapter.DictionaryAdapterMeta meta) { } - public static void SetAccessor(this Castle.Components.DictionaryAdapter.PropertyDescriptor property, Castle.Components.DictionaryAdapter.Xml.XmlAccessor accessor) { } - public static void SetXmlMeta(this Castle.Components.DictionaryAdapter.DictionaryAdapterMeta meta, Castle.Components.DictionaryAdapter.Xml.XmlMetadata xmlMeta) { } - public static void SetXmlType(this Castle.Components.DictionaryAdapter.DictionaryAdapterMeta meta, string value) { } - } - public interface IConfigurable - { - void Configure(T value); - } - public interface IRealizableSource - { - Castle.Components.DictionaryAdapter.Xml.IRealizable AsRealizable(); - } - public interface IRealizable : Castle.Components.DictionaryAdapter.Xml.IRealizableSource - { - bool IsReal { get; } - T Value { get; } - } - public interface IXmlAccessor - { - System.Type ClrType { get; } - Castle.Components.DictionaryAdapter.Xml.IXmlContext Context { get; } - bool IsNillable { get; } - bool IsReference { get; } - Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer Serializer { get; } - Castle.Components.DictionaryAdapter.Xml.IXmlCollectionAccessor GetCollectionAccessor(System.Type itemType); - object GetValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.IDictionaryAdapter parentObject, Castle.Components.DictionaryAdapter.Xml.XmlReferenceManager references, bool nodeExists, bool orStub); - void SetValue(Castle.Components.DictionaryAdapter.Xml.IXmlCursor cursor, Castle.Components.DictionaryAdapter.IDictionaryAdapter parentObject, Castle.Components.DictionaryAdapter.Xml.XmlReferenceManager references, bool hasCurrent, object oldValue, ref object newValue); - } - public interface IXmlBehaviorSemantics - { - System.Type GetClrType(T behavior); - string GetLocalName(T behavior); - string GetNamespaceUri(T behavior); - } - public interface IXmlCollectionAccessor : Castle.Components.DictionaryAdapter.Xml.IXmlAccessor - { - void GetCollectionItems(Castle.Components.DictionaryAdapter.Xml.IXmlNode parentNode, Castle.Components.DictionaryAdapter.IDictionaryAdapter parentObject, Castle.Components.DictionaryAdapter.Xml.XmlReferenceManager references, System.Collections.IList values); - Castle.Components.DictionaryAdapter.Xml.IXmlCursor SelectCollectionItems(Castle.Components.DictionaryAdapter.Xml.IXmlNode parentNode, bool mutable); - } - public interface IXmlContext : Castle.Components.DictionaryAdapter.Xml.IXmlNamespaceSource - { - string ChildNamespaceUri { get; } - void AddFunction(Castle.Components.DictionaryAdapter.Xml.XPathFunctionAttribute attribute); - void AddVariable(Castle.Components.DictionaryAdapter.Xml.XPathVariableAttribute attribute); - Castle.Components.DictionaryAdapter.Xml.IXmlContext Clone(); - void Enlist(Castle.Components.DictionaryAdapter.Xml.CompiledXPath path); - Castle.Components.DictionaryAdapter.Xml.XmlName GetDefaultXsiType(System.Type clrType); - System.Collections.Generic.IEnumerable GetIncludedTypes(System.Type baseType); - bool IsReservedNamespaceUri(string namespaceUri); - } - public interface IXmlCursor : Castle.Components.DictionaryAdapter.IVirtual, Castle.Components.DictionaryAdapter.Xml.IRealizableSource, Castle.Components.DictionaryAdapter.Xml.IXmlIdentity, Castle.Components.DictionaryAdapter.Xml.IXmlIterator, Castle.Components.DictionaryAdapter.Xml.IXmlKnownType, Castle.Components.DictionaryAdapter.Xml.IXmlNode - { - void Coerce(System.Type type); - void Create(System.Type type); - void MoveTo(Castle.Components.DictionaryAdapter.Xml.IXmlNode node); - void MoveToEnd(); - void Remove(); - void RemoveAllNext(); - void Reset(); - } - public interface IXmlIdentity - { - Castle.Components.DictionaryAdapter.Xml.XmlName Name { get; } - Castle.Components.DictionaryAdapter.Xml.XmlName XsiType { get; } - } - public interface IXmlIncludedType - { - System.Type ClrType { get; } - Castle.Components.DictionaryAdapter.Xml.XmlName XsiType { get; } - } - public interface IXmlIncludedTypeMap - { - Castle.Components.DictionaryAdapter.Xml.IXmlIncludedType Default { get; } - bool TryGet(Castle.Components.DictionaryAdapter.Xml.XmlName xsiType, out Castle.Components.DictionaryAdapter.Xml.IXmlIncludedType includedType); - bool TryGet(System.Type clrType, out Castle.Components.DictionaryAdapter.Xml.IXmlIncludedType includedType); - } - public interface IXmlIterator : Castle.Components.DictionaryAdapter.IVirtual, Castle.Components.DictionaryAdapter.Xml.IRealizableSource, Castle.Components.DictionaryAdapter.Xml.IXmlIdentity, Castle.Components.DictionaryAdapter.Xml.IXmlKnownType, Castle.Components.DictionaryAdapter.Xml.IXmlNode - { - bool MoveNext(); - } - public interface IXmlKnownType : Castle.Components.DictionaryAdapter.Xml.IXmlIdentity - { - System.Type ClrType { get; } - } - public interface IXmlKnownTypeMap - { - Castle.Components.DictionaryAdapter.Xml.IXmlKnownType Default { get; } - bool TryGet(Castle.Components.DictionaryAdapter.Xml.IXmlIdentity xmlNode, out Castle.Components.DictionaryAdapter.Xml.IXmlKnownType knownType); - bool TryGet(System.Type clrType, out Castle.Components.DictionaryAdapter.Xml.IXmlKnownType knownType); - } - public interface IXmlNamespaceSource - { - string GetAttributePrefix(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, string namespaceUri); - string GetElementPrefix(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, string namespaceUri); - } - public interface IXmlNode : Castle.Components.DictionaryAdapter.IVirtual, Castle.Components.DictionaryAdapter.Xml.IRealizableSource, Castle.Components.DictionaryAdapter.Xml.IXmlIdentity, Castle.Components.DictionaryAdapter.Xml.IXmlKnownType - { - bool IsAttribute { get; } - bool IsElement { get; } - bool IsNil { get; set; } - Castle.Components.DictionaryAdapter.Xml.IXmlNamespaceSource Namespaces { get; } - Castle.Components.DictionaryAdapter.Xml.IXmlNode Parent { get; } - Castle.Components.DictionaryAdapter.Xml.CompiledXPath Path { get; } - object UnderlyingObject { get; } - string Value { get; set; } - string Xml { get; } - void Clear(); - void DefineNamespace(string prefix, string namespaceUri, bool root); - object Evaluate(Castle.Components.DictionaryAdapter.Xml.CompiledXPath path); - string GetAttribute(Castle.Components.DictionaryAdapter.Xml.XmlName name); - string LookupNamespaceUri(string prefix); - string LookupPrefix(string namespaceUri); - System.Xml.XmlReader ReadSubtree(); - Castle.Components.DictionaryAdapter.Xml.IXmlNode Save(); - Castle.Components.DictionaryAdapter.Xml.IXmlCursor Select(Castle.Components.DictionaryAdapter.Xml.CompiledXPath path, Castle.Components.DictionaryAdapter.Xml.IXmlIncludedTypeMap includedTypes, Castle.Components.DictionaryAdapter.Xml.IXmlNamespaceSource namespaces, Castle.Components.DictionaryAdapter.Xml.CursorFlags flags); - Castle.Components.DictionaryAdapter.Xml.IXmlCursor SelectChildren(Castle.Components.DictionaryAdapter.Xml.IXmlKnownTypeMap knownTypes, Castle.Components.DictionaryAdapter.Xml.IXmlNamespaceSource namespaces, Castle.Components.DictionaryAdapter.Xml.CursorFlags flags); - Castle.Components.DictionaryAdapter.Xml.IXmlCursor SelectSelf(System.Type clrType); - Castle.Components.DictionaryAdapter.Xml.IXmlIterator SelectSubtree(); - void SetAttribute(Castle.Components.DictionaryAdapter.Xml.XmlName name, string value); - bool UnderlyingPositionEquals(Castle.Components.DictionaryAdapter.Xml.IXmlNode node); - System.Xml.XmlWriter WriteAttributes(); - System.Xml.XmlWriter WriteChildren(); - } - public interface IXmlNodeSource - { - Castle.Components.DictionaryAdapter.Xml.IXmlNode Node { get; } - } - public interface IXmlPropertyAccessor : Castle.Components.DictionaryAdapter.Xml.IXmlAccessor - { - object GetPropertyValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode parentNode, Castle.Components.DictionaryAdapter.IDictionaryAdapter parentObject, Castle.Components.DictionaryAdapter.Xml.XmlReferenceManager references, bool orStub); - void SetPropertyValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode parentNode, Castle.Components.DictionaryAdapter.IDictionaryAdapter parentObject, Castle.Components.DictionaryAdapter.Xml.XmlReferenceManager references, object oldValue, ref object newValue); - } - public interface IXmlReferenceFormat - { - void ClearIdentity(Castle.Components.DictionaryAdapter.Xml.IXmlNode node); - void ClearReference(Castle.Components.DictionaryAdapter.Xml.IXmlNode node); - void SetIdentity(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, int id); - void SetReference(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, int id); - bool TryGetIdentity(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, out int id); - bool TryGetReference(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, out int id); - } - public class static RealizableExtensions - { - public static Castle.Components.DictionaryAdapter.Xml.IRealizable RequireRealizable(this Castle.Components.DictionaryAdapter.Xml.IRealizableSource obj) { } - } - public class SingletonDispenser - where TItem : class - { - public SingletonDispenser(System.Func factory) { } - public TItem this[TKey key] { get; set; } - } - public class SysXmlCursor : Castle.Components.DictionaryAdapter.Xml.SysXmlNode, Castle.Components.DictionaryAdapter.IVirtual, Castle.Components.DictionaryAdapter.Xml.IRealizableSource, Castle.Components.DictionaryAdapter.Xml.IXmlCursor, Castle.Components.DictionaryAdapter.Xml.IXmlIdentity, Castle.Components.DictionaryAdapter.Xml.IXmlIterator, Castle.Components.DictionaryAdapter.Xml.IXmlKnownType, Castle.Components.DictionaryAdapter.Xml.IXmlNode - { - protected static readonly System.StringComparer DefaultComparer; - public SysXmlCursor(Castle.Components.DictionaryAdapter.Xml.IXmlNode parent, Castle.Components.DictionaryAdapter.Xml.IXmlKnownTypeMap knownTypes, Castle.Components.DictionaryAdapter.Xml.IXmlNamespaceSource namespaces, Castle.Components.DictionaryAdapter.Xml.CursorFlags flags) { } - public override System.Type ClrType { get; } - public bool HasCurrent { get; } - public override bool IsAttribute { get; } - public override bool IsElement { get; } - public override bool IsNil { get; set; } - public override bool IsReal { get; } - public override Castle.Components.DictionaryAdapter.Xml.XmlName Name { get; } - public override string Value { get; set; } - public override string Xml { get; } - public override Castle.Components.DictionaryAdapter.Xml.XmlName XsiType { get; } - public event System.EventHandler Realized; - protected virtual bool AdvanceToFirstAttribute() { } - protected virtual bool AdvanceToFirstElement() { } - public void Coerce(System.Type clrType) { } - public void Create(System.Type type) { } - public override object Evaluate(Castle.Components.DictionaryAdapter.Xml.CompiledXPath path) { } - public void MakeNext(System.Type clrType) { } - public bool MoveNext() { } - public void MoveTo(Castle.Components.DictionaryAdapter.Xml.IXmlNode position) { } - public void MoveToEnd() { } - protected virtual void OnRealized() { } - protected override void Realize() { } - public void Remove() { } - public void RemoveAllNext() { } - public void Reset() { } - public override Castle.Components.DictionaryAdapter.Xml.IXmlNode Save() { } - protected enum State - { - Empty = -4, - End = -3, - AttributePrimed = -2, - ElementPrimed = -1, - Initial = 0, - Element = 1, - Attribute = 2, - } - } - public class static SysXmlExtensions - { - public static void DefineNamespace(this System.Xml.XmlElement node, string prefix, string namespaceUri) { } - public static System.Xml.XmlElement FindRoot(this System.Xml.XmlElement node) { } - public static bool IsNamespace(this System.Xml.XmlAttribute attribute) { } - public static bool IsXsiType(this System.Xml.XmlAttribute attribute) { } - } - public class SysXmlNode : Castle.Components.DictionaryAdapter.Xml.XmlNodeBase, Castle.Components.DictionaryAdapter.IVirtual, Castle.Components.DictionaryAdapter.Xml.IRealizableSource, Castle.Components.DictionaryAdapter.Xml.IRealizable, Castle.Components.DictionaryAdapter.Xml.IRealizable, Castle.Components.DictionaryAdapter.Xml.IXmlIdentity, Castle.Components.DictionaryAdapter.Xml.IXmlKnownType, Castle.Components.DictionaryAdapter.Xml.IXmlNode - { - protected System.Xml.XmlNode node; - protected SysXmlNode(Castle.Components.DictionaryAdapter.Xml.IXmlNamespaceSource namespaces, Castle.Components.DictionaryAdapter.Xml.IXmlNode parent) { } - public SysXmlNode(System.Xml.XmlNode node, System.Type type, Castle.Components.DictionaryAdapter.Xml.IXmlNamespaceSource namespaces) { } - public virtual bool IsAttribute { get; } - public virtual bool IsElement { get; } - public virtual bool IsNil { get; set; } - public virtual Castle.Components.DictionaryAdapter.Xml.XmlName Name { get; } - public object UnderlyingObject { get; } - public virtual string Value { get; set; } - public virtual string Xml { get; } - public virtual Castle.Components.DictionaryAdapter.Xml.XmlName XsiType { get; } - public void Clear() { } - public void DefineNamespace(string prefix, string namespaceUri, bool root) { } - public virtual object Evaluate(Castle.Components.DictionaryAdapter.Xml.CompiledXPath path) { } - public string GetAttribute(Castle.Components.DictionaryAdapter.Xml.XmlName name) { } - public System.Xml.XmlNode GetNode() { } - public string LookupNamespaceUri(string prefix) { } - public string LookupPrefix(string namespaceUri) { } - public System.Xml.XmlReader ReadSubtree() { } - public virtual Castle.Components.DictionaryAdapter.Xml.IXmlNode Save() { } - public Castle.Components.DictionaryAdapter.Xml.IXmlCursor Select(Castle.Components.DictionaryAdapter.Xml.CompiledXPath path, Castle.Components.DictionaryAdapter.Xml.IXmlIncludedTypeMap includedTypes, Castle.Components.DictionaryAdapter.Xml.IXmlNamespaceSource namespaces, Castle.Components.DictionaryAdapter.Xml.CursorFlags flags) { } - public Castle.Components.DictionaryAdapter.Xml.IXmlCursor SelectChildren(Castle.Components.DictionaryAdapter.Xml.IXmlKnownTypeMap knownTypes, Castle.Components.DictionaryAdapter.Xml.IXmlNamespaceSource namespaces, Castle.Components.DictionaryAdapter.Xml.CursorFlags flags) { } - public Castle.Components.DictionaryAdapter.Xml.IXmlCursor SelectSelf(System.Type clrType) { } - public Castle.Components.DictionaryAdapter.Xml.IXmlIterator SelectSubtree() { } - public void SetAttribute(Castle.Components.DictionaryAdapter.Xml.XmlName name, string value) { } - public bool UnderlyingPositionEquals(Castle.Components.DictionaryAdapter.Xml.IXmlNode node) { } - public System.Xml.XmlWriter WriteAttributes() { } - public System.Xml.XmlWriter WriteChildren() { } - } - public class SysXmlSubtreeIterator : Castle.Components.DictionaryAdapter.Xml.SysXmlNode, Castle.Components.DictionaryAdapter.IVirtual, Castle.Components.DictionaryAdapter.Xml.IRealizableSource, Castle.Components.DictionaryAdapter.Xml.IXmlIdentity, Castle.Components.DictionaryAdapter.Xml.IXmlIterator, Castle.Components.DictionaryAdapter.Xml.IXmlKnownType, Castle.Components.DictionaryAdapter.Xml.IXmlNode - { - public SysXmlSubtreeIterator(Castle.Components.DictionaryAdapter.Xml.IXmlNode parent, Castle.Components.DictionaryAdapter.Xml.IXmlNamespaceSource namespaces) { } - public bool MoveNext() { } - public override Castle.Components.DictionaryAdapter.Xml.IXmlNode Save() { } - } - public class static Try - { - [System.Diagnostics.DebuggerHiddenAttribute()] - public static bool Failure(out T result) { } - [System.Diagnostics.DebuggerHiddenAttribute()] - public static bool Success(out T result, T value) { } - } - public class static TypeExtensions - { - public static System.Type GetCollectionItemType(this System.Type type) { } - public static System.Type GetComponentType(this object obj) { } - public static System.Type NonNullable(this System.Type type) { } - } - public class static Wsdl - { - public const string NamespaceUri = "http://microsoft.com/wsdl/types/"; - public const string Prefix = "wsdl"; - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=true)] - public class XPathAttribute : System.Attribute - { - public XPathAttribute(string path) { } - public XPathAttribute(string get, string set) { } - public Castle.Components.DictionaryAdapter.Xml.CompiledXPath GetPath { get; } - public bool Nullable { get; set; } - public Castle.Components.DictionaryAdapter.Xml.CompiledXPath SetPath { get; } - } - public class XPathBehaviorAccessor : Castle.Components.DictionaryAdapter.Xml.XmlAccessor, Castle.Components.DictionaryAdapter.Xml.IConfigurable, Castle.Components.DictionaryAdapter.Xml.IConfigurable, Castle.Components.DictionaryAdapter.Xml.IConfigurable, Castle.Components.DictionaryAdapter.Xml.IXmlIncludedType, Castle.Components.DictionaryAdapter.Xml.IXmlIncludedTypeMap - { - protected XPathBehaviorAccessor(System.Type type, Castle.Components.DictionaryAdapter.Xml.IXmlContext context) { } - public void Configure(Castle.Components.DictionaryAdapter.Xml.XPathAttribute attribute) { } - public void Configure(Castle.Components.DictionaryAdapter.Xml.XPathVariableAttribute attribute) { } - public void Configure(Castle.Components.DictionaryAdapter.Xml.XPathFunctionAttribute attribute) { } - public override Castle.Components.DictionaryAdapter.Xml.IXmlCollectionAccessor GetCollectionAccessor(System.Type itemType) { } - public override object GetPropertyValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode parentNode, Castle.Components.DictionaryAdapter.IDictionaryAdapter parentObject, Castle.Components.DictionaryAdapter.Xml.XmlReferenceManager references, bool orStub) { } - public override bool IsPropertyDefined(Castle.Components.DictionaryAdapter.Xml.IXmlNode parentNode) { } - public override void Prepare() { } - public override Castle.Components.DictionaryAdapter.Xml.IXmlCursor SelectCollectionItems(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, bool create) { } - public override Castle.Components.DictionaryAdapter.Xml.IXmlCursor SelectCollectionNode(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, bool create) { } - public override Castle.Components.DictionaryAdapter.Xml.IXmlCursor SelectPropertyNode(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, bool create) { } - public override void SetPropertyValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode parentNode, Castle.Components.DictionaryAdapter.IDictionaryAdapter parentObject, Castle.Components.DictionaryAdapter.Xml.XmlReferenceManager references, object oldValue, ref object value) { } - public bool TryGet(Castle.Components.DictionaryAdapter.Xml.XmlName xsiType, out Castle.Components.DictionaryAdapter.Xml.IXmlIncludedType includedType) { } - public bool TryGet(System.Type clrType, out Castle.Components.DictionaryAdapter.Xml.IXmlIncludedType includedType) { } - } - public class static XPathCompiler - { - public static Castle.Components.DictionaryAdapter.Xml.CompiledXPath Compile(string path) { } - } - public class static XPathExtensions - { - public static System.Xml.XPath.XPathNavigator CreateNavigatorSafe(this System.Xml.XPath.IXPathNavigable source) { } - public static void DeleteChildren(this System.Xml.XPath.XPathNavigator node) { } - public static System.Xml.XPath.XPathNavigator GetParent(this System.Xml.XPath.XPathNavigator navigator) { } - public static System.Xml.XPath.XPathNavigator GetRootElement(this System.Xml.XPath.XPathNavigator navigator) { } - public static bool MoveToLastAttribute(this System.Xml.XPath.XPathNavigator navigator) { } - public static bool MoveToLastChild(this System.Xml.XPath.XPathNavigator navigator) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=true)] - public abstract class XPathFunctionAttribute : System.Attribute, System.Xml.Xsl.IXsltContextFunction - { - public static readonly System.Xml.XPath.XPathResultType[] NoArgs; - protected XPathFunctionAttribute() { } - public virtual System.Xml.XPath.XPathResultType[] ArgTypes { get; } - public virtual int Maxargs { get; } - public virtual int Minargs { get; } - public abstract Castle.Components.DictionaryAdapter.Xml.XmlName Name { get; } - public abstract System.Xml.XPath.XPathResultType ReturnType { get; } - public abstract object Invoke(System.Xml.Xsl.XsltContext context, object[] args, System.Xml.XPath.XPathNavigator node); - } - public class XPathNode : Castle.Components.DictionaryAdapter.Xml.XmlNodeBase, Castle.Components.DictionaryAdapter.IVirtual, Castle.Components.DictionaryAdapter.Xml.IRealizableSource, Castle.Components.DictionaryAdapter.Xml.IRealizable, Castle.Components.DictionaryAdapter.Xml.IRealizable, Castle.Components.DictionaryAdapter.Xml.IXmlIdentity, Castle.Components.DictionaryAdapter.Xml.IXmlKnownType, Castle.Components.DictionaryAdapter.Xml.IXmlNode - { - protected System.Xml.XPath.XPathNavigator node; - protected readonly Castle.Components.DictionaryAdapter.Xml.CompiledXPath xpath; - protected XPathNode(Castle.Components.DictionaryAdapter.Xml.CompiledXPath path, Castle.Components.DictionaryAdapter.Xml.IXmlNamespaceSource namespaces, Castle.Components.DictionaryAdapter.Xml.IXmlNode parent) { } - public XPathNode(System.Xml.XPath.XPathNavigator node, System.Type type, Castle.Components.DictionaryAdapter.Xml.IXmlNamespaceSource namespaces) { } - public virtual bool IsAttribute { get; } - public virtual bool IsElement { get; } - public virtual bool IsNil { get; set; } - public virtual Castle.Components.DictionaryAdapter.Xml.XmlName Name { get; } - public override Castle.Components.DictionaryAdapter.Xml.CompiledXPath Path { get; } - public object UnderlyingObject { get; } - public virtual string Value { get; set; } - public virtual string Xml { get; } - public virtual Castle.Components.DictionaryAdapter.Xml.XmlName XsiType { get; } - public virtual void Clear() { } - public void DefineNamespace(string prefix, string namespaceUri, bool root) { } - public virtual object Evaluate(Castle.Components.DictionaryAdapter.Xml.CompiledXPath path) { } - public string GetAttribute(Castle.Components.DictionaryAdapter.Xml.XmlName name) { } - public string LookupNamespaceUri(string prefix) { } - public string LookupPrefix(string namespaceUri) { } - public virtual System.Xml.XmlReader ReadSubtree() { } - public virtual Castle.Components.DictionaryAdapter.Xml.IXmlNode Save() { } - public Castle.Components.DictionaryAdapter.Xml.IXmlCursor Select(Castle.Components.DictionaryAdapter.Xml.CompiledXPath path, Castle.Components.DictionaryAdapter.Xml.IXmlIncludedTypeMap includedTypes, Castle.Components.DictionaryAdapter.Xml.IXmlNamespaceSource namespaces, Castle.Components.DictionaryAdapter.Xml.CursorFlags flags) { } - public Castle.Components.DictionaryAdapter.Xml.IXmlCursor SelectChildren(Castle.Components.DictionaryAdapter.Xml.IXmlKnownTypeMap knownTypes, Castle.Components.DictionaryAdapter.Xml.IXmlNamespaceSource namespaces, Castle.Components.DictionaryAdapter.Xml.CursorFlags flags) { } - public Castle.Components.DictionaryAdapter.Xml.IXmlCursor SelectSelf(System.Type clrType) { } - public Castle.Components.DictionaryAdapter.Xml.IXmlIterator SelectSubtree() { } - public void SetAttribute(Castle.Components.DictionaryAdapter.Xml.XmlName name, string value) { } - public bool UnderlyingPositionEquals(Castle.Components.DictionaryAdapter.Xml.IXmlNode node) { } - public virtual System.Xml.XmlWriter WriteAttributes() { } - public virtual System.Xml.XmlWriter WriteChildren() { } - } - public class XPathReadOnlyCursor : Castle.Components.DictionaryAdapter.Xml.XPathNode, Castle.Components.DictionaryAdapter.IVirtual, Castle.Components.DictionaryAdapter.Xml.IRealizableSource, Castle.Components.DictionaryAdapter.Xml.IXmlCursor, Castle.Components.DictionaryAdapter.Xml.IXmlIdentity, Castle.Components.DictionaryAdapter.Xml.IXmlIterator, Castle.Components.DictionaryAdapter.Xml.IXmlKnownType, Castle.Components.DictionaryAdapter.Xml.IXmlNode - { - public XPathReadOnlyCursor(Castle.Components.DictionaryAdapter.Xml.IXmlNode parent, Castle.Components.DictionaryAdapter.Xml.CompiledXPath path, Castle.Components.DictionaryAdapter.Xml.IXmlIncludedTypeMap includedTypes, Castle.Components.DictionaryAdapter.Xml.IXmlNamespaceSource namespaces, Castle.Components.DictionaryAdapter.Xml.CursorFlags flags) { } - public void Coerce(System.Type type) { } - public void Create(System.Type type) { } - public void MakeNext(System.Type type) { } - public bool MoveNext() { } - public void MoveTo(Castle.Components.DictionaryAdapter.Xml.IXmlNode position) { } - public void MoveToEnd() { } - public void Remove() { } - public void RemoveAllNext() { } - public void Reset() { } - public override Castle.Components.DictionaryAdapter.Xml.IXmlNode Save() { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=true)] - public abstract class XPathVariableAttribute : System.Attribute, System.Xml.Xsl.IXsltContextVariable - { - protected XPathVariableAttribute() { } - public abstract Castle.Components.DictionaryAdapter.Xml.XmlName Name { get; } - public abstract System.Xml.XPath.XPathResultType VariableType { get; } - public abstract object Evaluate(System.Xml.Xsl.XsltContext context); - } - public class static XRef - { - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlName Id; - public const string NamespaceUri = "urn:schemas-castle-org:xml-reference"; - public const string Prefix = "x"; - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlName Ref; - public static string GetId(this Castle.Components.DictionaryAdapter.Xml.IXmlNode node) { } - public static string GetReference(this Castle.Components.DictionaryAdapter.Xml.IXmlNode node) { } - public static void SetId(this Castle.Components.DictionaryAdapter.Xml.IXmlCursor node, string id) { } - public static void SetReference(this Castle.Components.DictionaryAdapter.Xml.IXmlCursor cursor, string id) { } - } - public abstract class XmlAccessor : Castle.Components.DictionaryAdapter.Xml.IXmlAccessor, Castle.Components.DictionaryAdapter.Xml.IXmlCollectionAccessor, Castle.Components.DictionaryAdapter.Xml.IXmlPropertyAccessor - { - protected Castle.Components.DictionaryAdapter.Xml.XmlAccessor.States state; - protected XmlAccessor(System.Type clrType, Castle.Components.DictionaryAdapter.Xml.IXmlContext context) { } - public System.Type ClrType { get; } - public Castle.Components.DictionaryAdapter.Xml.IXmlContext Context { get; set; } - public bool IsCollection { get; } - public virtual bool IsIgnored { get; } - public bool IsNillable { get; } - public bool IsReference { get; } - public bool IsVolatile { get; } - public Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer Serializer { get; } - public Castle.Components.DictionaryAdapter.Xml.XmlName XsiType { get; } - protected Castle.Components.DictionaryAdapter.Xml.IXmlContext CloneContext() { } - public virtual void ConfigureNillable(bool nillable) { } - public virtual void ConfigureReference(bool isReference) { } - public void ConfigureVolatile(bool isVolatile) { } - public virtual Castle.Components.DictionaryAdapter.Xml.IXmlCollectionAccessor GetCollectionAccessor(System.Type itemType) { } - public void GetCollectionItems(Castle.Components.DictionaryAdapter.Xml.IXmlNode parentNode, Castle.Components.DictionaryAdapter.IDictionaryAdapter parentObject, Castle.Components.DictionaryAdapter.Xml.XmlReferenceManager references, System.Collections.IList values) { } - protected Castle.Components.DictionaryAdapter.Xml.IXmlCollectionAccessor GetDefaultCollectionAccessor(System.Type itemType) { } - public virtual object GetPropertyValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode parentNode, Castle.Components.DictionaryAdapter.IDictionaryAdapter parentObject, Castle.Components.DictionaryAdapter.Xml.XmlReferenceManager references, bool orStub) { } - public object GetValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.IDictionaryAdapter parentObject, Castle.Components.DictionaryAdapter.Xml.XmlReferenceManager references, bool nodeExists, bool orStub) { } - public virtual bool IsPropertyDefined(Castle.Components.DictionaryAdapter.Xml.IXmlNode parentNode) { } - public virtual void Prepare() { } - protected void RemoveCollectionItems(Castle.Components.DictionaryAdapter.Xml.IXmlNode parentNode, Castle.Components.DictionaryAdapter.Xml.XmlReferenceManager references, object value) { } - public virtual Castle.Components.DictionaryAdapter.Xml.IXmlCursor SelectCollectionItems(Castle.Components.DictionaryAdapter.Xml.IXmlNode parentNode, bool mutable) { } - public virtual Castle.Components.DictionaryAdapter.Xml.IXmlCursor SelectCollectionNode(Castle.Components.DictionaryAdapter.Xml.IXmlNode parentNode, bool mutable) { } - public virtual Castle.Components.DictionaryAdapter.Xml.IXmlCursor SelectPropertyNode(Castle.Components.DictionaryAdapter.Xml.IXmlNode parentNode, bool mutable) { } - public virtual void SetPropertyValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode parentNode, Castle.Components.DictionaryAdapter.IDictionaryAdapter parentObject, Castle.Components.DictionaryAdapter.Xml.XmlReferenceManager references, object oldValue, ref object value) { } - public virtual void SetValue(Castle.Components.DictionaryAdapter.Xml.IXmlCursor cursor, Castle.Components.DictionaryAdapter.IDictionaryAdapter parentObject, Castle.Components.DictionaryAdapter.Xml.XmlReferenceManager references, bool hasCurrent, object oldValue, ref object newValue) { } - [System.FlagsAttribute()] - protected enum States - { - Nillable = 1, - Volatile = 2, - Reference = 4, - ConfiguredContext = 8, - ConfiguredLocalName = 16, - ConfiguredNamespaceUri = 32, - ConfiguredKnownTypes = 64, - } - } - public delegate TAccessor XmlAccessorFactory(string name, System.Type type, Castle.Components.DictionaryAdapter.Xml.IXmlContext context); - public class XmlAdapter : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryCopyStrategy, Castle.Components.DictionaryAdapter.IDictionaryCreateStrategy, Castle.Components.DictionaryAdapter.IDictionaryInitializer, Castle.Components.DictionaryAdapter.IDictionaryPropertyGetter, Castle.Components.DictionaryAdapter.IDictionaryPropertySetter, Castle.Components.DictionaryAdapter.IDictionaryReferenceManager, Castle.Components.DictionaryAdapter.IVirtual, Castle.Components.DictionaryAdapter.Xml.IXmlNodeSource - { - public XmlAdapter() { } - public XmlAdapter(System.Xml.XmlNode node) { } - public XmlAdapter(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.Xml.XmlReferenceManager references) { } - public bool IsReal { get; } - public Castle.Components.DictionaryAdapter.Xml.IXmlNode Node { get; } - public event System.EventHandler Realized; - public override Castle.Components.DictionaryAdapter.IDictionaryBehavior Copy() { } - public static Castle.Components.DictionaryAdapter.Xml.XmlAdapter For(object obj) { } - public static Castle.Components.DictionaryAdapter.Xml.XmlAdapter For(object obj, bool required) { } - public bool HasProperty(string propertyName, Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter) { } - public static bool IsPropertyDefined(string propertyName, Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter) { } - protected virtual void OnRealized() { } - } - public class XmlArrayBehaviorAccessor : Castle.Components.DictionaryAdapter.Xml.XmlNodeAccessor, Castle.Components.DictionaryAdapter.Xml.IConfigurable, Castle.Components.DictionaryAdapter.Xml.IConfigurable - { - public XmlArrayBehaviorAccessor(string name, System.Type type, Castle.Components.DictionaryAdapter.Xml.IXmlContext context) { } - public void Configure(System.Xml.Serialization.XmlArrayAttribute attribute) { } - public void Configure(System.Xml.Serialization.XmlArrayItemAttribute attribute) { } - public override Castle.Components.DictionaryAdapter.Xml.IXmlCollectionAccessor GetCollectionAccessor(System.Type itemType) { } - public override void Prepare() { } - public override Castle.Components.DictionaryAdapter.Xml.IXmlCursor SelectPropertyNode(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, bool mutable) { } - } - public class XmlArraySerializer : Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer - { - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlArraySerializer Instance; - protected XmlArraySerializer() { } - public override bool CanGetStub { get; } - public override Castle.Components.DictionaryAdapter.Xml.XmlTypeKind Kind { get; } - public override object GetStub(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.IDictionaryAdapter parent, Castle.Components.DictionaryAdapter.Xml.IXmlAccessor accessor) { } - public override object GetValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.IDictionaryAdapter parent, Castle.Components.DictionaryAdapter.Xml.IXmlAccessor accessor) { } - public override void SetValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.IDictionaryAdapter parent, Castle.Components.DictionaryAdapter.Xml.IXmlAccessor accessor, object oldValue, ref object value) { } - } - public class XmlAttributeBehaviorAccessor : Castle.Components.DictionaryAdapter.Xml.XmlNodeAccessor, Castle.Components.DictionaryAdapter.Xml.IConfigurable - { - public XmlAttributeBehaviorAccessor(string name, System.Type type, Castle.Components.DictionaryAdapter.Xml.IXmlContext context) { } - public void Configure(System.Xml.Serialization.XmlAttributeAttribute attribute) { } - public override void ConfigureNillable(bool nillable) { } - public override void ConfigureReference(bool isReference) { } - public override Castle.Components.DictionaryAdapter.Xml.IXmlCollectionAccessor GetCollectionAccessor(System.Type itemType) { } - public override Castle.Components.DictionaryAdapter.Xml.IXmlCursor SelectCollectionNode(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, bool mutable) { } - public override Castle.Components.DictionaryAdapter.Xml.IXmlCursor SelectPropertyNode(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, bool mutable) { } - } - public abstract class XmlCollectionSerializer : Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer - { - protected XmlCollectionSerializer() { } - public override bool CanGetStub { get; } - public override Castle.Components.DictionaryAdapter.Xml.XmlTypeKind Kind { get; } - public abstract System.Type ListTypeConstructor { get; } - public override object GetStub(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.IDictionaryAdapter parent, Castle.Components.DictionaryAdapter.Xml.IXmlAccessor accessor) { } - public override object GetValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.IDictionaryAdapter parent, Castle.Components.DictionaryAdapter.Xml.IXmlAccessor accessor) { } - public override void SetValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.IDictionaryAdapter parent, Castle.Components.DictionaryAdapter.Xml.IXmlAccessor accessor, object oldValue, ref object value) { } - } - public class XmlComponentSerializer : Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer - { - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlComponentSerializer Instance; - protected XmlComponentSerializer() { } - public override bool CanGetStub { get; } - public override Castle.Components.DictionaryAdapter.Xml.XmlTypeKind Kind { get; } - public override object GetStub(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.IDictionaryAdapter parent, Castle.Components.DictionaryAdapter.Xml.IXmlAccessor accessor) { } - public override object GetValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.IDictionaryAdapter parent, Castle.Components.DictionaryAdapter.Xml.IXmlAccessor accessor) { } - public override void SetValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.IDictionaryAdapter parent, Castle.Components.DictionaryAdapter.Xml.IXmlAccessor accessor, object oldValue, ref object value) { } - } - public class XmlContext : Castle.Components.DictionaryAdapter.Xml.XmlContextBase, Castle.Components.DictionaryAdapter.Xml.IXmlContext, Castle.Components.DictionaryAdapter.Xml.IXmlNamespaceSource - { - public XmlContext(Castle.Components.DictionaryAdapter.Xml.XmlMetadata metadata) { } - protected XmlContext(Castle.Components.DictionaryAdapter.Xml.XmlContext parent) { } - public string ChildNamespaceUri { get; } - public Castle.Components.DictionaryAdapter.Xml.IXmlContext Clone() { } - public Castle.Components.DictionaryAdapter.Xml.XmlName GetDefaultXsiType(System.Type clrType) { } - public System.Collections.Generic.IEnumerable GetIncludedTypes(System.Type baseType) { } - public bool IsReservedNamespaceUri(string namespaceUri) { } - } - public class XmlContextBase : System.Xml.Xsl.XsltContext, Castle.Components.DictionaryAdapter.Xml.IXmlNamespaceSource - { - public XmlContextBase() { } - protected XmlContextBase(Castle.Components.DictionaryAdapter.Xml.XmlContextBase parent) { } - public override bool Whitespace { get; } - public void AddFunction(string prefix, string name, System.Xml.Xsl.IXsltContextFunction function) { } - public void AddFunction(Castle.Components.DictionaryAdapter.Xml.XPathFunctionAttribute attribute) { } - public void AddFunction(Castle.Components.DictionaryAdapter.Xml.XmlName name, System.Xml.Xsl.IXsltContextFunction function) { } - public void AddNamespace(Castle.Components.DictionaryAdapter.XmlNamespaceAttribute attribute) { } - public override void AddNamespace(string prefix, string uri) { } - public void AddVariable(string prefix, string name, System.Xml.Xsl.IXsltContextVariable variable) { } - public void AddVariable(Castle.Components.DictionaryAdapter.Xml.XPathVariableAttribute attribute) { } - public void AddVariable(Castle.Components.DictionaryAdapter.Xml.XmlName name, System.Xml.Xsl.IXsltContextVariable variable) { } - public override int CompareDocument(string baseUriA, string baseUriB) { } - public void Enlist(Castle.Components.DictionaryAdapter.Xml.CompiledXPath path) { } - public string GetAttributePrefix(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, string namespaceUri) { } - public string GetElementPrefix(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, string namespaceUri) { } - public override string LookupNamespace(string prefix) { } - public override string LookupPrefix(string uri) { } - public override bool PreserveWhitespace(System.Xml.XPath.XPathNavigator node) { } - public override System.Xml.Xsl.IXsltContextFunction ResolveFunction(string prefix, string name, System.Xml.XPath.XPathResultType[] argTypes) { } - public override System.Xml.Xsl.IXsltContextVariable ResolveVariable(string prefix, string name) { } - } - public class XmlCustomSerializer : Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer - { - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlCustomSerializer Instance; - public override Castle.Components.DictionaryAdapter.Xml.XmlTypeKind Kind { get; } - public override object GetValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.IDictionaryAdapter parent, Castle.Components.DictionaryAdapter.Xml.IXmlAccessor accessor) { } - public override void SetValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.IDictionaryAdapter parent, Castle.Components.DictionaryAdapter.Xml.IXmlAccessor accessor, object oldValue, ref object value) { } - } - public class XmlDefaultBehaviorAccessor : Castle.Components.DictionaryAdapter.Xml.XmlNodeAccessor - { - public XmlDefaultBehaviorAccessor(System.Type type, Castle.Components.DictionaryAdapter.Xml.IXmlContext context) { } - public XmlDefaultBehaviorAccessor(string name, System.Type type, Castle.Components.DictionaryAdapter.Xml.IXmlContext context) { } - public override Castle.Components.DictionaryAdapter.Xml.IXmlCursor SelectCollectionItems(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, bool mutable) { } - public override Castle.Components.DictionaryAdapter.Xml.IXmlCursor SelectCollectionNode(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, bool mutable) { } - public override Castle.Components.DictionaryAdapter.Xml.IXmlCursor SelectPropertyNode(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, bool mutable) { } - } - public class XmlDefaultSerializer : Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer - { - public static readonly System.Xml.Serialization.XmlRootAttribute Root; - public XmlDefaultSerializer(System.Type type) { } - public override Castle.Components.DictionaryAdapter.Xml.XmlTypeKind Kind { get; } - public override object GetValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.IDictionaryAdapter parent, Castle.Components.DictionaryAdapter.Xml.IXmlAccessor accessor) { } - public override void SetValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.IDictionaryAdapter parent, Castle.Components.DictionaryAdapter.Xml.IXmlAccessor accessor, object oldValue, ref object value) { } - } - public class XmlDynamicSerializer : Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer - { - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlDynamicSerializer Instance; - protected XmlDynamicSerializer() { } - public override Castle.Components.DictionaryAdapter.Xml.XmlTypeKind Kind { get; } - public override object GetValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.IDictionaryAdapter parent, Castle.Components.DictionaryAdapter.Xml.IXmlAccessor accessor) { } - public override void SetValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.IDictionaryAdapter parent, Castle.Components.DictionaryAdapter.Xml.IXmlAccessor accessor, object oldValue, ref object value) { } - } - public class XmlElementBehaviorAccessor : Castle.Components.DictionaryAdapter.Xml.XmlNodeAccessor, Castle.Components.DictionaryAdapter.Xml.IConfigurable, Castle.Components.DictionaryAdapter.Xml.IXmlBehaviorSemantics - { - public XmlElementBehaviorAccessor(string name, System.Type type, Castle.Components.DictionaryAdapter.Xml.IXmlContext context) { } - public void Configure(System.Xml.Serialization.XmlElementAttribute attribute) { } - public System.Type GetClrType(System.Xml.Serialization.XmlElementAttribute attribute) { } - public override Castle.Components.DictionaryAdapter.Xml.IXmlCollectionAccessor GetCollectionAccessor(System.Type itemType) { } - public string GetLocalName(System.Xml.Serialization.XmlElementAttribute attribute) { } - public string GetNamespaceUri(System.Xml.Serialization.XmlElementAttribute attribute) { } - public override void Prepare() { } - public override Castle.Components.DictionaryAdapter.Xml.IXmlCursor SelectCollectionNode(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, bool mutable) { } - public override Castle.Components.DictionaryAdapter.Xml.IXmlCursor SelectPropertyNode(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, bool mutable) { } - public override void SetValue(Castle.Components.DictionaryAdapter.Xml.IXmlCursor cursor, Castle.Components.DictionaryAdapter.IDictionaryAdapter parentObject, Castle.Components.DictionaryAdapter.Xml.XmlReferenceManager references, bool hasCurrent, object oldValue, ref object newValue) { } - } - public class XmlEnumerationSerializer : Castle.Components.DictionaryAdapter.Xml.XmlStringSerializer - { - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlEnumerationSerializer Instance; - protected XmlEnumerationSerializer() { } - public override Castle.Components.DictionaryAdapter.Xml.XmlTypeKind Kind { get; } - public override object GetValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.IDictionaryAdapter parent, Castle.Components.DictionaryAdapter.Xml.IXmlAccessor accessor) { } - } - public class XmlIgnoreBehaviorAccessor : Castle.Components.DictionaryAdapter.Xml.XmlAccessor - { - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlIgnoreBehaviorAccessor Instance; - public override bool IsIgnored { get; } - public override Castle.Components.DictionaryAdapter.Xml.IXmlCollectionAccessor GetCollectionAccessor(System.Type itemType) { } - public override Castle.Components.DictionaryAdapter.Xml.IXmlCursor SelectCollectionItems(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, bool mutable) { } - public override Castle.Components.DictionaryAdapter.Xml.IXmlCursor SelectCollectionNode(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, bool mutable) { } - public override Castle.Components.DictionaryAdapter.Xml.IXmlCursor SelectPropertyNode(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, bool mutable) { } - } - public class XmlIncludedType : Castle.Components.DictionaryAdapter.Xml.IXmlIncludedType - { - public XmlIncludedType(Castle.Components.DictionaryAdapter.Xml.XmlName xsiType, System.Type clrType) { } - public XmlIncludedType(string localName, string namespaceUri, System.Type clrType) { } - public System.Type ClrType { get; } - public Castle.Components.DictionaryAdapter.Xml.XmlName XsiType { get; } - } - public class static XmlIncludedTypeMapExtensions - { - public static Castle.Components.DictionaryAdapter.Xml.IXmlIncludedType Require(this Castle.Components.DictionaryAdapter.Xml.IXmlIncludedTypeMap includedTypes, System.Type clrType) { } - } - public class XmlIncludedTypeSet : Castle.Components.DictionaryAdapter.Xml.IXmlIncludedTypeMap, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public static readonly System.Collections.Generic.IList DefaultEntries; - public XmlIncludedTypeSet() { } - public void Add(Castle.Components.DictionaryAdapter.Xml.IXmlIncludedType includedType) { } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public bool TryGet(Castle.Components.DictionaryAdapter.Xml.XmlName xsiType, out Castle.Components.DictionaryAdapter.Xml.IXmlIncludedType includedType) { } - public bool TryGet(System.Type clrType, out Castle.Components.DictionaryAdapter.Xml.IXmlIncludedType includedType) { } - } - public class XmlKnownType : Castle.Components.DictionaryAdapter.Xml.IXmlIdentity, Castle.Components.DictionaryAdapter.Xml.IXmlKnownType - { - public XmlKnownType(Castle.Components.DictionaryAdapter.Xml.XmlName name, Castle.Components.DictionaryAdapter.Xml.XmlName xsiType, System.Type clrType) { } - public XmlKnownType(string nameLocalName, string nameNamespaceUri, string xsiTypeLocalName, string xsiTypeNamespaceUri, System.Type clrType) { } - public System.Type ClrType { get; } - public Castle.Components.DictionaryAdapter.Xml.XmlName Name { get; } - public Castle.Components.DictionaryAdapter.Xml.XmlName XsiType { get; } - } - public class static XmlKnownTypeMapExtensions - { - public static Castle.Components.DictionaryAdapter.Xml.IXmlKnownType Require(this Castle.Components.DictionaryAdapter.Xml.IXmlKnownTypeMap map, System.Type clrType) { } - } - public class XmlKnownTypeSet : Castle.Components.DictionaryAdapter.Xml.IXmlKnownTypeMap, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - public XmlKnownTypeSet(System.Type defaultType) { } - public Castle.Components.DictionaryAdapter.Xml.IXmlKnownType Default { get; } - public void Add(Castle.Components.DictionaryAdapter.Xml.IXmlKnownType knownType, bool overwrite) { } - public void AddXsiTypeDefaults() { } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public Castle.Components.DictionaryAdapter.Xml.IXmlKnownType[] ToArray() { } - public bool TryGet(Castle.Components.DictionaryAdapter.Xml.IXmlIdentity xmlIdentity, out Castle.Components.DictionaryAdapter.Xml.IXmlKnownType knownType) { } - public bool TryGet(System.Type clrType, out Castle.Components.DictionaryAdapter.Xml.IXmlKnownType knownType) { } - } - public class XmlListSerializer : Castle.Components.DictionaryAdapter.Xml.XmlCollectionSerializer - { - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlListSerializer Instance; - protected XmlListSerializer() { } - public override System.Type ListTypeConstructor { get; } - } - public class XmlMetadata : Castle.Components.DictionaryAdapter.Xml.IXmlIdentity, Castle.Components.DictionaryAdapter.Xml.IXmlIncludedType, Castle.Components.DictionaryAdapter.Xml.IXmlIncludedTypeMap, Castle.Components.DictionaryAdapter.Xml.IXmlKnownType, Castle.Components.DictionaryAdapter.Xml.IXmlKnownTypeMap - { - protected static readonly System.StringComparer NameComparer; - public XmlMetadata(Castle.Components.DictionaryAdapter.DictionaryAdapterMeta meta, System.Collections.Generic.IEnumerable reservedNamespaceUris) { } - public string ChildNamespaceUri { get; } - public System.Type ClrType { get; } - public Castle.Components.DictionaryAdapter.Xml.IXmlContext Context { get; } - public Castle.Components.DictionaryAdapter.Xml.XmlIncludedTypeSet IncludedTypes { get; } - public System.Nullable IsNullable { get; } - public System.Nullable IsReference { get; } - public Castle.Components.DictionaryAdapter.Xml.XmlName Name { get; } - public Castle.Components.DictionaryAdapter.Xml.CompiledXPath Path { get; } - public System.Nullable Qualified { get; } - public System.Collections.Generic.IEnumerable ReservedNamespaceUris { get; } - public Castle.Components.DictionaryAdapter.Xml.XmlName XsiType { get; } - public Castle.Components.DictionaryAdapter.Xml.XmlName GetDefaultXsiType(System.Type clrType) { } - public System.Collections.Generic.IEnumerable GetIncludedTypes(System.Type baseType) { } - public bool IsReservedNamespaceUri(string namespaceUri) { } - public Castle.Components.DictionaryAdapter.Xml.IXmlCursor SelectBase(Castle.Components.DictionaryAdapter.Xml.IXmlNode node) { } - public bool TryGet(Castle.Components.DictionaryAdapter.Xml.IXmlIdentity xmlIdentity, out Castle.Components.DictionaryAdapter.Xml.IXmlKnownType knownType) { } - public bool TryGet(System.Type clrType, out Castle.Components.DictionaryAdapter.Xml.IXmlKnownType knownType) { } - public bool TryGet(Castle.Components.DictionaryAdapter.Xml.XmlName xsiType, out Castle.Components.DictionaryAdapter.Xml.IXmlIncludedType includedType) { } - public bool TryGet(System.Type clrType, out Castle.Components.DictionaryAdapter.Xml.IXmlIncludedType includedType) { } - } - public class XmlMetadataBehavior : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryMetaInitializer - { - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlMetadataBehavior Default; - public XmlMetadataBehavior() { } - public System.Collections.Generic.IEnumerable ReservedNamespaceUris { get; } - public Castle.Components.DictionaryAdapter.Xml.XmlMetadataBehavior AddReservedNamespaceUri(string uri) { } - } - public struct XmlName : System.IEquatable - { - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlName Empty; - public XmlName(string localName, string namespaceUri) { } - public string LocalName { get; } - public string NamespaceUri { get; } - public bool Equals(Castle.Components.DictionaryAdapter.Xml.XmlName other) { } - public override bool Equals(object obj) { } - public override int GetHashCode() { } - public static Castle.Components.DictionaryAdapter.Xml.XmlName ParseQName(string text) { } - public override string ToString() { } - public Castle.Components.DictionaryAdapter.Xml.XmlName WithNamespaceUri(string namespaceUri) { } - public static bool ==(Castle.Components.DictionaryAdapter.Xml.XmlName x, Castle.Components.DictionaryAdapter.Xml.XmlName y) { } - public static bool !=(Castle.Components.DictionaryAdapter.Xml.XmlName x, Castle.Components.DictionaryAdapter.Xml.XmlName y) { } - } - public class XmlNameComparer : System.Collections.Generic.IEqualityComparer - { - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlNameComparer Default; - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlNameComparer IgnoreCase; - public bool Equals(Castle.Components.DictionaryAdapter.Xml.XmlName x, Castle.Components.DictionaryAdapter.Xml.XmlName y) { } - public int GetHashCode(Castle.Components.DictionaryAdapter.Xml.XmlName name) { } - } - public abstract class XmlNodeAccessor : Castle.Components.DictionaryAdapter.Xml.XmlAccessor, Castle.Components.DictionaryAdapter.Xml.IXmlIdentity, Castle.Components.DictionaryAdapter.Xml.IXmlKnownType, Castle.Components.DictionaryAdapter.Xml.IXmlKnownTypeMap - { - protected static readonly System.StringComparer NameComparer; - protected XmlNodeAccessor(System.Type type, Castle.Components.DictionaryAdapter.Xml.IXmlContext context) { } - protected XmlNodeAccessor(string name, System.Type type, Castle.Components.DictionaryAdapter.Xml.IXmlContext context) { } - protected Castle.Components.DictionaryAdapter.Xml.IXmlKnownTypeMap KnownTypes { get; } - public Castle.Components.DictionaryAdapter.Xml.XmlName Name { get; } - protected void ConfigureKnownTypesFromAttributes(System.Collections.Generic.IEnumerable attributes, Castle.Components.DictionaryAdapter.Xml.IXmlBehaviorSemantics semantics) { } - protected void ConfigureKnownTypesFromParent(Castle.Components.DictionaryAdapter.Xml.XmlNodeAccessor accessor) { } - protected void ConfigureLocalName(string localName) { } - protected void ConfigureNamespaceUri(string namespaceUri) { } - protected virtual bool IsMatch(Castle.Components.DictionaryAdapter.Xml.IXmlIdentity xmlIdentity) { } - protected virtual bool IsMatch(System.Type clrType) { } - public override void Prepare() { } - public bool TryGet(Castle.Components.DictionaryAdapter.Xml.IXmlIdentity xmlName, out Castle.Components.DictionaryAdapter.Xml.IXmlKnownType knownType) { } - public bool TryGet(System.Type clrType, out Castle.Components.DictionaryAdapter.Xml.IXmlKnownType knownType) { } - } - public abstract class XmlNodeBase : Castle.Components.DictionaryAdapter.IVirtual, Castle.Components.DictionaryAdapter.Xml.IRealizableSource - { - protected System.Type type; - protected XmlNodeBase(Castle.Components.DictionaryAdapter.Xml.IXmlNamespaceSource namespaces, Castle.Components.DictionaryAdapter.Xml.IXmlNode parent) { } - public virtual System.Type ClrType { get; } - public virtual bool IsReal { get; } - public Castle.Components.DictionaryAdapter.Xml.IXmlNamespaceSource Namespaces { get; } - public Castle.Components.DictionaryAdapter.Xml.IXmlNode Parent { get; } - public virtual Castle.Components.DictionaryAdapter.Xml.CompiledXPath Path { get; } - public event System.EventHandler Realized; - protected virtual void Realize() { } - } - public class XmlPositionComparer - { - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlPositionComparer Instance; - public XmlPositionComparer() { } - public bool Equals(Castle.Components.DictionaryAdapter.Xml.IXmlNode nodeA, Castle.Components.DictionaryAdapter.Xml.IXmlNode nodeB) { } - } - public class XmlReferenceManager - { - public XmlReferenceManager(Castle.Components.DictionaryAdapter.Xml.IXmlNode root, Castle.Components.DictionaryAdapter.Xml.IXmlReferenceFormat format) { } - public void Add(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, object keyValue, object newValue, bool isInGraph) { } - public void OnAssignedValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, object givenValue, object storedValue, object token) { } - public bool OnAssigningNull(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, object oldValue) { } - public bool OnAssigningValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, object oldValue, ref object newValue, out object token) { } - public void OnGetCompleted(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, object value, object token) { } - public bool OnGetStarting(ref Castle.Components.DictionaryAdapter.Xml.IXmlNode node, ref object value, out object token) { } - public bool TryGet(object keyObject, out object inGraphObject) { } - public void UnionWith(Castle.Components.DictionaryAdapter.Xml.XmlReferenceManager other) { } - } - public class XmlSelfAccessor : Castle.Components.DictionaryAdapter.Xml.XmlAccessor - { - public XmlSelfAccessor(System.Type clrType, Castle.Components.DictionaryAdapter.Xml.IXmlContext context) { } - public override void ConfigureNillable(bool nillable) { } - public override Castle.Components.DictionaryAdapter.Xml.IXmlCursor SelectPropertyNode(Castle.Components.DictionaryAdapter.Xml.IXmlNode parentNode, bool mutable) { } - } - public class XmlSelfCursor : Castle.Components.DictionaryAdapter.IVirtual, Castle.Components.DictionaryAdapter.Xml.IRealizableSource, Castle.Components.DictionaryAdapter.Xml.IXmlCursor, Castle.Components.DictionaryAdapter.Xml.IXmlIdentity, Castle.Components.DictionaryAdapter.Xml.IXmlIterator, Castle.Components.DictionaryAdapter.Xml.IXmlKnownType, Castle.Components.DictionaryAdapter.Xml.IXmlNode - { - public XmlSelfCursor(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, System.Type clrType) { } - public System.Type ClrType { get; } - public Castle.Components.DictionaryAdapter.Xml.CursorFlags Flags { get; } - public bool IsAttribute { get; } - public bool IsElement { get; } - public bool IsNil { get; set; } - public bool IsReal { get; } - public Castle.Components.DictionaryAdapter.Xml.XmlName Name { get; } - public Castle.Components.DictionaryAdapter.Xml.IXmlNamespaceSource Namespaces { get; } - public Castle.Components.DictionaryAdapter.Xml.IXmlNode Parent { get; } - public Castle.Components.DictionaryAdapter.Xml.CompiledXPath Path { get; } - public object UnderlyingObject { get; } - public string Value { get; set; } - public string Xml { get; } - public Castle.Components.DictionaryAdapter.Xml.XmlName XsiType { get; } - public event System.EventHandler Realized; - public Castle.Components.DictionaryAdapter.Xml.IRealizable AsRealizable() { } - public void Clear() { } - public void Coerce(System.Type type) { } - public void Create(System.Type type) { } - public void DefineNamespace(string prefix, string namespaceUri, bool root) { } - public object Evaluate(Castle.Components.DictionaryAdapter.Xml.CompiledXPath path) { } - public string GetAttribute(Castle.Components.DictionaryAdapter.Xml.XmlName name) { } - public string LookupNamespaceUri(string prefix) { } - public string LookupPrefix(string namespaceUri) { } - public void MakeNext(System.Type type) { } - public bool MoveNext() { } - public void MoveTo(Castle.Components.DictionaryAdapter.Xml.IXmlNode position) { } - public void MoveToEnd() { } - public System.Xml.XmlReader ReadSubtree() { } - public void Realize() { } - public void Remove() { } - public void RemoveAllNext() { } - public void Reset() { } - public Castle.Components.DictionaryAdapter.Xml.IXmlNode Save() { } - public Castle.Components.DictionaryAdapter.Xml.IXmlCursor Select(Castle.Components.DictionaryAdapter.Xml.CompiledXPath path, Castle.Components.DictionaryAdapter.Xml.IXmlIncludedTypeMap knownTypes, Castle.Components.DictionaryAdapter.Xml.IXmlNamespaceSource namespaces, Castle.Components.DictionaryAdapter.Xml.CursorFlags flags) { } - public Castle.Components.DictionaryAdapter.Xml.IXmlCursor SelectChildren(Castle.Components.DictionaryAdapter.Xml.IXmlKnownTypeMap knownTypes, Castle.Components.DictionaryAdapter.Xml.IXmlNamespaceSource namespaces, Castle.Components.DictionaryAdapter.Xml.CursorFlags flags) { } - public Castle.Components.DictionaryAdapter.Xml.IXmlCursor SelectSelf(System.Type clrType) { } - public Castle.Components.DictionaryAdapter.Xml.IXmlIterator SelectSubtree() { } - public void SetAttribute(Castle.Components.DictionaryAdapter.Xml.XmlName name, string value) { } - public bool UnderlyingPositionEquals(Castle.Components.DictionaryAdapter.Xml.IXmlNode node) { } - public System.Xml.XmlWriter WriteAttributes() { } - public System.Xml.XmlWriter WriteChildren() { } - } - public class XmlSetSerializer : Castle.Components.DictionaryAdapter.Xml.XmlCollectionSerializer - { - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlSetSerializer Instance; - protected XmlSetSerializer() { } - public override System.Type ListTypeConstructor { get; } - } - public class static XmlSimpleSerializer - { - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer ForBoolean; - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer ForByte; - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer ForByteArray; - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer ForChar; - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer ForDateTime; - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer ForDateTimeOffset; - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer ForDecimal; - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer ForDouble; - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer ForGuid; - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer ForInt16; - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer ForInt32; - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer ForInt64; - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer ForSByte; - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer ForSingle; - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer ForTimeSpan; - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer ForUInt16; - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer ForUInt32; - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer ForUInt64; - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer ForUri; - } - public class XmlSimpleSerializer : Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer - { - public XmlSimpleSerializer(System.Func getString, System.Func getObject) { } - public override Castle.Components.DictionaryAdapter.Xml.XmlTypeKind Kind { get; } - public override object GetValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.IDictionaryAdapter parent, Castle.Components.DictionaryAdapter.Xml.IXmlAccessor accessor) { } - public override void SetValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.IDictionaryAdapter parent, Castle.Components.DictionaryAdapter.Xml.IXmlAccessor accessor, object oldValue, ref object value) { } - } - public class XmlStringSerializer : Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer - { - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlStringSerializer Instance; - protected XmlStringSerializer() { } - public override Castle.Components.DictionaryAdapter.Xml.XmlTypeKind Kind { get; } - public override object GetValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.IDictionaryAdapter parent, Castle.Components.DictionaryAdapter.Xml.IXmlAccessor accessor) { } - public override void SetValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.IDictionaryAdapter parent, Castle.Components.DictionaryAdapter.Xml.IXmlAccessor accessor, object oldValue, ref object value) { } - } - public class XmlSubtreeReader : System.Xml.XmlReader - { - public XmlSubtreeReader(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, System.Xml.Serialization.XmlRootAttribute root) { } - public XmlSubtreeReader(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, string rootLocalName, string rootNamespaceUri) { } - public override int AttributeCount { get; } - public override string BaseURI { get; } - public override int Depth { get; } - public override bool EOF { get; } - public bool IsAtRootElement { get; } - public bool IsDisposed { get; } - public override bool IsEmptyElement { get; } - public override string LocalName { get; } - public override System.Xml.XmlNameTable NameTable { get; } - public override string NamespaceURI { get; } - public override System.Xml.XmlNodeType NodeType { get; } - public override string Prefix { get; } - public override System.Xml.ReadState ReadState { get; } - protected System.Xml.XmlReader Reader { get; } - public override string Value { get; } - public override void Close() { } - protected override void Dispose(bool managed) { } - public override string GetAttribute(int i) { } - public override string GetAttribute(string name) { } - public override string GetAttribute(string name, string namespaceURI) { } - public override string LookupNamespace(string prefix) { } - public override bool MoveToAttribute(string name) { } - public override bool MoveToAttribute(string name, string ns) { } - public override bool MoveToElement() { } - public override bool MoveToFirstAttribute() { } - public override bool MoveToNextAttribute() { } - public override bool Read() { } - public override bool ReadAttributeValue() { } - public override void ResolveEntity() { } - } - public class XmlSubtreeWriter : System.Xml.XmlWriter - { - public XmlSubtreeWriter(Castle.Components.DictionaryAdapter.Xml.IXmlNode node) { } - public override System.Xml.WriteState WriteState { get; } - public override void Close() { } - protected override void Dispose(bool managed) { } - public override void Flush() { } - public override string LookupPrefix(string ns) { } - public override void WriteBase64(byte[] buffer, int index, int count) { } - public override void WriteCData(string text) { } - public override void WriteCharEntity(char ch) { } - public override void WriteChars(char[] buffer, int index, int count) { } - public override void WriteComment(string text) { } - public override void WriteDocType(string name, string pubid, string sysid, string subset) { } - public override void WriteEndAttribute() { } - public override void WriteEndDocument() { } - public override void WriteEndElement() { } - public override void WriteEntityRef(string name) { } - public override void WriteFullEndElement() { } - public override void WriteProcessingInstruction(string name, string text) { } - public override void WriteRaw(string data) { } - public override void WriteRaw(char[] buffer, int index, int count) { } - public override void WriteStartAttribute(string prefix, string localName, string ns) { } - public override void WriteStartDocument(bool standalone) { } - public override void WriteStartDocument() { } - public override void WriteStartElement(string prefix, string localName, string ns) { } - public override void WriteString(string text) { } - public override void WriteSurrogateCharEntity(char lowChar, char highChar) { } - public override void WriteWhitespace(string ws) { } - } - public enum XmlTypeKind - { - Simple = 0, - Complex = 1, - Collection = 2, - } - public abstract class XmlTypeSerializer - { - protected XmlTypeSerializer() { } - public virtual bool CanGetStub { get; } - public abstract Castle.Components.DictionaryAdapter.Xml.XmlTypeKind Kind { get; } - public static Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer For(System.Type type) { } - public virtual object GetStub(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.IDictionaryAdapter parent, Castle.Components.DictionaryAdapter.Xml.IXmlAccessor accessor) { } - public abstract object GetValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.IDictionaryAdapter parent, Castle.Components.DictionaryAdapter.Xml.IXmlAccessor accessor); - public abstract void SetValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.IDictionaryAdapter parent, Castle.Components.DictionaryAdapter.Xml.IXmlAccessor accessor, object oldValue, ref object value); - } - public class XmlXmlNodeSerializer : Castle.Components.DictionaryAdapter.Xml.XmlTypeSerializer - { - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlXmlNodeSerializer Instance; - public override Castle.Components.DictionaryAdapter.Xml.XmlTypeKind Kind { get; } - public override object GetValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.IDictionaryAdapter parent, Castle.Components.DictionaryAdapter.Xml.IXmlAccessor accessor) { } - public override void SetValue(Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.IDictionaryAdapter parent, Castle.Components.DictionaryAdapter.Xml.IXmlAccessor accessor, object oldValue, ref object value) { } - } - public class static Xmlns - { - public const string NamespaceUri = "http://www.w3.org/2000/xmlns/"; - public const string Prefix = "xmlns"; - } - public class static Xsd - { - public const string NamespaceUri = "http://www.w3.org/2001/XMLSchema"; - public const string Prefix = "xsd"; - } - public class static Xsi - { - public const string NamespaceUri = "http://www.w3.org/2001/XMLSchema-instance"; - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlName Nil; - public const string NilValue = "true"; - public const string Prefix = "xsi"; - public static readonly Castle.Components.DictionaryAdapter.Xml.XmlName Type; - public static Castle.Components.DictionaryAdapter.Xml.XmlName GetXsiType(this Castle.Components.DictionaryAdapter.Xml.IXmlNode node) { } - public static bool IsXsiNil(this Castle.Components.DictionaryAdapter.Xml.IXmlNode node) { } - public static void SetXsiNil(this Castle.Components.DictionaryAdapter.Xml.IXmlNode node, bool nil) { } - public static void SetXsiType(this Castle.Components.DictionaryAdapter.Xml.IXmlNode node, Castle.Components.DictionaryAdapter.Xml.XmlName xsiType) { } - } -} -namespace Castle.Core.Configuration -{ - public abstract class AbstractConfiguration : Castle.Core.Configuration.IConfiguration - { - protected AbstractConfiguration() { } - public virtual Castle.Core.Configuration.ConfigurationAttributeCollection Attributes { get; } - public virtual Castle.Core.Configuration.ConfigurationCollection Children { get; } - public string Name { get; set; } - public string Value { get; set; } - public virtual object GetValue(System.Type type, object defaultValue) { } - } - public class ConfigurationAttributeCollection : System.Collections.Specialized.NameValueCollection - { - public ConfigurationAttributeCollection() { } - protected ConfigurationAttributeCollection(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - } - public class ConfigurationCollection : System.Collections.Generic.List - { - public ConfigurationCollection() { } - public ConfigurationCollection(System.Collections.Generic.IEnumerable value) { } - public Castle.Core.Configuration.IConfiguration this[string name] { get; } - } - public interface IConfiguration - { - Castle.Core.Configuration.ConfigurationAttributeCollection Attributes { get; } - Castle.Core.Configuration.ConfigurationCollection Children { get; } - string Name { get; } - string Value { get; } - object GetValue(System.Type type, object defaultValue); - } - public class MutableConfiguration : Castle.Core.Configuration.AbstractConfiguration - { - public MutableConfiguration(string name) { } - public MutableConfiguration(string name, string value) { } - public new string Value { get; set; } - public Castle.Core.Configuration.MutableConfiguration Attribute(string name, string value) { } - public static Castle.Core.Configuration.MutableConfiguration Create(string name) { } - public Castle.Core.Configuration.MutableConfiguration CreateChild(string name) { } - public Castle.Core.Configuration.MutableConfiguration CreateChild(string name, string value) { } - } -} -namespace Castle.Core.Configuration.Xml -{ - public class XmlConfigurationDeserializer - { - public XmlConfigurationDeserializer() { } - public Castle.Core.Configuration.IConfiguration Deserialize(System.Xml.XmlNode node) { } - public static string GetConfigValue(string value) { } - public static Castle.Core.Configuration.IConfiguration GetDeserializedNode(System.Xml.XmlNode node) { } - public static bool IsTextNode(System.Xml.XmlNode node) { } - } -} -namespace Castle.Core -{ - public interface IServiceEnabledComponent - { - void Service(System.IServiceProvider provider); - } - public interface IServiceProviderEx : System.IServiceProvider - { - T GetService() - where T : class; - } - public interface IServiceProviderExAccessor - { - Castle.Core.IServiceProviderEx ServiceProvider { get; } - } - public class Pair : System.IEquatable> - { - public Pair(TFirst first, TSecond second) { } - public TFirst First { get; } - public TSecond Second { get; } - public bool Equals(Castle.Core.Pair other) { } - public override bool Equals(object obj) { } - public override int GetHashCode() { } - public override string ToString() { } - } - public class static ProxyServices - { - public static bool IsDynamicProxy(System.Type type) { } - } - public class ReferenceEqualityComparer : System.Collections.Generic.IEqualityComparer, System.Collections.IEqualityComparer - { - public static Castle.Core.ReferenceEqualityComparer Instance { get; } - public int GetHashCode(object obj) { } - } - public sealed class ReflectionBasedDictionaryAdapter : System.Collections.ICollection, System.Collections.IDictionary, System.Collections.IEnumerable - { - public ReflectionBasedDictionaryAdapter(object target) { } - public int Count { get; } - public bool IsReadOnly { get; } - public bool IsSynchronized { get; } - public object this[object key] { get; set; } - public System.Collections.ICollection Keys { get; } - public object SyncRoot { get; } - public System.Collections.ICollection Values { get; } - public void Add(object key, object value) { } - public void Clear() { } - public bool Contains(object key) { } - public System.Collections.IEnumerator GetEnumerator() { } - public static void Read(System.Collections.IDictionary targetDictionary, object valuesAsAnonymousObject) { } - public void Remove(object key) { } - } - public sealed class StringObjectDictionaryAdapter : System.Collections.Generic.ICollection>, System.Collections.Generic.IDictionary, System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable - { - public StringObjectDictionaryAdapter(System.Collections.IDictionary dictionary) { } - public int Count { get; } - public bool IsFixedSize { get; } - public bool IsReadOnly { get; } - public bool IsSynchronized { get; } - public object this[object key] { get; set; } - public System.Collections.ICollection Keys { get; } - public object SyncRoot { get; } - public System.Collections.ICollection Values { get; } - public void Add(object key, object value) { } - public void Clear() { } - public bool Contains(object key) { } - public void CopyTo(System.Array array, int index) { } - public System.Collections.IEnumerator GetEnumerator() { } - public void Remove(object key) { } - } -} -namespace Castle.Core.Internal -{ - public class static AttributesUtil - { - public static T GetAttribute(this System.Type type) - where T : System.Attribute { } - public static T GetAttribute(this System.Reflection.MemberInfo member) - where T : System.Attribute { } - public static System.AttributeUsageAttribute GetAttributeUsage(this System.Type attributeType) { } - public static System.Collections.Generic.IEnumerable GetAttributes(this System.Type type) - where T : System.Attribute { } - public static System.Collections.Generic.IEnumerable GetAttributes(this System.Reflection.MemberInfo member) - where T : System.Attribute { } - public static T GetTypeAttribute(this System.Type type) - where T : System.Attribute { } - public static T[] GetTypeAttributes(System.Type type) - where T : System.Attribute { } - public static System.Type GetTypeConverter(System.Reflection.MemberInfo member) { } - } - public class static CollectionExtensions - { - public static bool AreEquivalent(System.Collections.Generic.IList listA, System.Collections.Generic.IList listB) { } - public static T Find(this T[] items, System.Predicate predicate) { } - public static T[] FindAll(this T[] items, System.Predicate predicate) { } - public static int GetContentsHashCode(System.Collections.Generic.IList list) { } - public static bool IsNullOrEmpty(this System.Collections.IEnumerable @this) { } - } - [System.ObsoleteAttribute("Consider using `System.Threading.ReaderWriterLockSlim` instead of `Lock` and rela" + - "ted types.")] - public interface ILockHolder : System.IDisposable - { - bool LockAcquired { get; } - } - [System.ObsoleteAttribute("Consider using `System.Threading.ReaderWriterLockSlim` instead of `Lock` and rela" + - "ted types.")] - public interface IUpgradeableLockHolder : Castle.Core.Internal.ILockHolder, System.IDisposable - { - Castle.Core.Internal.ILockHolder Upgrade(); - Castle.Core.Internal.ILockHolder Upgrade(bool waitForLock); - } - public class InternalsVisible - { - public const string ToCastleCore = @"Castle.Core, PublicKey=002400000480000094000000060200000024000052534131000400000100010077F5E87030DADCCCE6902C6ADAB7A987BD69CB5819991531F560785EACFC89B6FCDDF6BB2A00743A7194E454C0273447FC6EEC36474BA8E5A3823147D214298E4F9A631B1AFEE1A51FFEAE4672D498F14B000E3D321453CDD8AC064DE7E1CF4D222B7E81F54D4FD46725370D702A05B48738CC29D09228F1AA722AE1A9CA02FB"; - public const string ToDynamicProxyGenAssembly2 = @"DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7"; - public InternalsVisible() { } - } - [System.ObsoleteAttribute("Consider using `System.Threading.ReaderWriterLockSlim` instead of `Lock` and rela" + - "ted types.")] - public abstract class Lock - { - protected Lock() { } - public static Castle.Core.Internal.Lock Create() { } - public abstract Castle.Core.Internal.ILockHolder ForReading(); - public abstract Castle.Core.Internal.ILockHolder ForReading(bool waitForLock); - public abstract Castle.Core.Internal.IUpgradeableLockHolder ForReadingUpgradeable(); - public abstract Castle.Core.Internal.IUpgradeableLockHolder ForReadingUpgradeable(bool waitForLock); - public abstract Castle.Core.Internal.ILockHolder ForWriting(); - public abstract Castle.Core.Internal.ILockHolder ForWriting(bool waitForLock); - } - public class static PermissionUtil - { - [System.Security.SecuritySafeCriticalAttribute()] - public static bool IsGranted(this System.Security.IPermission permission) { } - } -} -namespace Castle.Core.Logging -{ - public abstract class AbstractExtendedLoggerFactory : System.MarshalByRefObject, Castle.Core.Logging.IExtendedLoggerFactory, Castle.Core.Logging.ILoggerFactory - { - protected AbstractExtendedLoggerFactory() { } - public virtual Castle.Core.Logging.IExtendedLogger Create(System.Type type) { } - public abstract Castle.Core.Logging.IExtendedLogger Create(string name); - public virtual Castle.Core.Logging.IExtendedLogger Create(System.Type type, Castle.Core.Logging.LoggerLevel level) { } - public abstract Castle.Core.Logging.IExtendedLogger Create(string name, Castle.Core.Logging.LoggerLevel level); - protected static System.IO.FileInfo GetConfigFile(string fileName) { } - } - public abstract class AbstractLoggerFactory : System.MarshalByRefObject, Castle.Core.Logging.ILoggerFactory - { - protected AbstractLoggerFactory() { } - public virtual Castle.Core.Logging.ILogger Create(System.Type type) { } - public virtual Castle.Core.Logging.ILogger Create(System.Type type, Castle.Core.Logging.LoggerLevel level) { } - public abstract Castle.Core.Logging.ILogger Create(string name); - public abstract Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level); - protected static System.IO.FileInfo GetConfigFile(string fileName) { } - } - public class ConsoleFactory : System.MarshalByRefObject, Castle.Core.Logging.ILoggerFactory - { - public ConsoleFactory() { } - public ConsoleFactory(Castle.Core.Logging.LoggerLevel level) { } - public Castle.Core.Logging.ILogger Create(System.Type type) { } - public Castle.Core.Logging.ILogger Create(string name) { } - public Castle.Core.Logging.ILogger Create(System.Type type, Castle.Core.Logging.LoggerLevel level) { } - public Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } - } - public class ConsoleLogger : Castle.Core.Logging.LevelFilteredLogger - { - public ConsoleLogger() { } - public ConsoleLogger(Castle.Core.Logging.LoggerLevel logLevel) { } - public ConsoleLogger(string name) { } - public ConsoleLogger(string name, Castle.Core.Logging.LoggerLevel logLevel) { } - public override Castle.Core.Logging.ILogger CreateChildLogger(string loggerName) { } - protected override void Log(Castle.Core.Logging.LoggerLevel loggerLevel, string loggerName, string message, System.Exception exception) { } - } - public class DiagnosticsLogger : Castle.Core.Logging.LevelFilteredLogger, System.IDisposable - { - public DiagnosticsLogger(string logName) { } - public DiagnosticsLogger(string logName, string source) { } - public DiagnosticsLogger(string logName, string machineName, string source) { } - public override Castle.Core.Logging.ILogger CreateChildLogger(string loggerName) { } - public void Dispose() { } - protected virtual void Dispose(bool disposing) { } - protected override void Finalize() { } - protected override void Log(Castle.Core.Logging.LoggerLevel loggerLevel, string loggerName, string message, System.Exception exception) { } - } - public class DiagnosticsLoggerFactory : Castle.Core.Logging.AbstractLoggerFactory - { - public DiagnosticsLoggerFactory() { } - public override Castle.Core.Logging.ILogger Create(string name) { } - public override Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } - } - public interface IContextProperties - { - object this[string key] { get; set; } - } - public interface IContextStack - { - int Count { get; } - void Clear(); - string Pop(); - System.IDisposable Push(string message); - } - public interface IContextStacks - { - Castle.Core.Logging.IContextStack this[string key] { get; } - } - public interface IExtendedLogger : Castle.Core.Logging.ILogger - { - Castle.Core.Logging.IContextProperties GlobalProperties { get; } - Castle.Core.Logging.IContextProperties ThreadProperties { get; } - Castle.Core.Logging.IContextStacks ThreadStacks { get; } - } - public interface IExtendedLoggerFactory : Castle.Core.Logging.ILoggerFactory - { - Castle.Core.Logging.IExtendedLogger Create(System.Type type); - Castle.Core.Logging.IExtendedLogger Create(string name); - Castle.Core.Logging.IExtendedLogger Create(System.Type type, Castle.Core.Logging.LoggerLevel level); - Castle.Core.Logging.IExtendedLogger Create(string name, Castle.Core.Logging.LoggerLevel level); - } - public interface ILogger - { - bool IsDebugEnabled { get; } - bool IsErrorEnabled { get; } - bool IsFatalEnabled { get; } - bool IsInfoEnabled { get; } - bool IsTraceEnabled { get; } - bool IsWarnEnabled { get; } - Castle.Core.Logging.ILogger CreateChildLogger(string loggerName); - void Debug(string message); - void Debug(System.Func messageFactory); - void Debug(string message, System.Exception exception); - void DebugFormat(string format, params object[] args); - void DebugFormat(System.Exception exception, string format, params object[] args); - void DebugFormat(System.IFormatProvider formatProvider, string format, params object[] args); - void DebugFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args); - void Error(string message); - void Error(System.Func messageFactory); - void Error(string message, System.Exception exception); - void ErrorFormat(string format, params object[] args); - void ErrorFormat(System.Exception exception, string format, params object[] args); - void ErrorFormat(System.IFormatProvider formatProvider, string format, params object[] args); - void ErrorFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args); - void Fatal(string message); - void Fatal(System.Func messageFactory); - void Fatal(string message, System.Exception exception); - void FatalFormat(string format, params object[] args); - void FatalFormat(System.Exception exception, string format, params object[] args); - void FatalFormat(System.IFormatProvider formatProvider, string format, params object[] args); - void FatalFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args); - void Info(string message); - void Info(System.Func messageFactory); - void Info(string message, System.Exception exception); - void InfoFormat(string format, params object[] args); - void InfoFormat(System.Exception exception, string format, params object[] args); - void InfoFormat(System.IFormatProvider formatProvider, string format, params object[] args); - void InfoFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args); - void Trace(string message); - void Trace(System.Func messageFactory); - void Trace(string message, System.Exception exception); - void TraceFormat(string format, params object[] args); - void TraceFormat(System.Exception exception, string format, params object[] args); - void TraceFormat(System.IFormatProvider formatProvider, string format, params object[] args); - void TraceFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args); - void Warn(string message); - void Warn(System.Func messageFactory); - void Warn(string message, System.Exception exception); - void WarnFormat(string format, params object[] args); - void WarnFormat(System.Exception exception, string format, params object[] args); - void WarnFormat(System.IFormatProvider formatProvider, string format, params object[] args); - void WarnFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args); - } - public interface ILoggerFactory - { - Castle.Core.Logging.ILogger Create(System.Type type); - Castle.Core.Logging.ILogger Create(string name); - Castle.Core.Logging.ILogger Create(System.Type type, Castle.Core.Logging.LoggerLevel level); - Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level); - } - public abstract class LevelFilteredLogger : System.MarshalByRefObject, Castle.Core.Logging.ILogger - { - protected LevelFilteredLogger() { } - protected LevelFilteredLogger(string name) { } - protected LevelFilteredLogger(Castle.Core.Logging.LoggerLevel loggerLevel) { } - protected LevelFilteredLogger(string loggerName, Castle.Core.Logging.LoggerLevel loggerLevel) { } - public bool IsDebugEnabled { get; } - public bool IsErrorEnabled { get; } - public bool IsFatalEnabled { get; } - public bool IsInfoEnabled { get; } - public bool IsTraceEnabled { get; } - public bool IsWarnEnabled { get; } - public Castle.Core.Logging.LoggerLevel Level { get; set; } - public string Name { get; } - protected void ChangeName(string newName) { } - public abstract Castle.Core.Logging.ILogger CreateChildLogger(string loggerName); - public void Debug(string message) { } - public void Debug(System.Func messageFactory) { } - public void Debug(string message, System.Exception exception) { } - public void DebugFormat(string format, params object[] args) { } - public void DebugFormat(System.Exception exception, string format, params object[] args) { } - public void DebugFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void DebugFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Error(string message) { } - public void Error(System.Func messageFactory) { } - public void Error(string message, System.Exception exception) { } - public void ErrorFormat(string format, params object[] args) { } - public void ErrorFormat(System.Exception exception, string format, params object[] args) { } - public void ErrorFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void ErrorFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Fatal(string message) { } - public void Fatal(System.Func messageFactory) { } - public void Fatal(string message, System.Exception exception) { } - public void FatalFormat(string format, params object[] args) { } - public void FatalFormat(System.Exception exception, string format, params object[] args) { } - public void FatalFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void FatalFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Info(string message) { } - public void Info(System.Func messageFactory) { } - public void Info(string message, System.Exception exception) { } - public void InfoFormat(string format, params object[] args) { } - public void InfoFormat(System.Exception exception, string format, params object[] args) { } - public void InfoFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void InfoFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - [System.Security.SecurityCriticalAttribute()] - public override object InitializeLifetimeService() { } - protected abstract void Log(Castle.Core.Logging.LoggerLevel loggerLevel, string loggerName, string message, System.Exception exception); - public void Trace(string message) { } - public void Trace(System.Func messageFactory) { } - public void Trace(string message, System.Exception exception) { } - public void TraceFormat(string format, params object[] args) { } - public void TraceFormat(System.Exception exception, string format, params object[] args) { } - public void TraceFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void TraceFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Warn(string message) { } - public void Warn(System.Func messageFactory) { } - public void Warn(string message, System.Exception exception) { } - public void WarnFormat(string format, params object[] args) { } - public void WarnFormat(System.Exception exception, string format, params object[] args) { } - public void WarnFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void WarnFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - } - public class LoggerException : System.Exception - { - public LoggerException() { } - public LoggerException(string message) { } - public LoggerException(string message, System.Exception innerException) { } - protected LoggerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - } - public enum LoggerLevel - { - Off = 0, - Fatal = 1, - Error = 2, - Warn = 3, - Info = 4, - Debug = 5, - Trace = 6, - } - public class NullLogFactory : Castle.Core.Logging.AbstractLoggerFactory - { - public NullLogFactory() { } - public override Castle.Core.Logging.ILogger Create(string name) { } - public override Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } - } - public class NullLogger : Castle.Core.Logging.IExtendedLogger, Castle.Core.Logging.ILogger - { - public static readonly Castle.Core.Logging.NullLogger Instance; - public NullLogger() { } - public Castle.Core.Logging.IContextProperties GlobalProperties { get; } - public bool IsDebugEnabled { get; } - public bool IsErrorEnabled { get; } - public bool IsFatalEnabled { get; } - public bool IsInfoEnabled { get; } - public bool IsTraceEnabled { get; } - public bool IsWarnEnabled { get; } - public Castle.Core.Logging.IContextProperties ThreadProperties { get; } - public Castle.Core.Logging.IContextStacks ThreadStacks { get; } - public Castle.Core.Logging.ILogger CreateChildLogger(string loggerName) { } - public void Debug(string message) { } - public void Debug(System.Func messageFactory) { } - public void Debug(string message, System.Exception exception) { } - public void DebugFormat(string format, params object[] args) { } - public void DebugFormat(System.Exception exception, string format, params object[] args) { } - public void DebugFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void DebugFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Error(string message) { } - public void Error(System.Func messageFactory) { } - public void Error(string message, System.Exception exception) { } - public void ErrorFormat(string format, params object[] args) { } - public void ErrorFormat(System.Exception exception, string format, params object[] args) { } - public void ErrorFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void ErrorFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Fatal(string message) { } - public void Fatal(System.Func messageFactory) { } - public void Fatal(string message, System.Exception exception) { } - public void FatalFormat(string format, params object[] args) { } - public void FatalFormat(System.Exception exception, string format, params object[] args) { } - public void FatalFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void FatalFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Info(string message) { } - public void Info(System.Func messageFactory) { } - public void Info(string message, System.Exception exception) { } - public void InfoFormat(string format, params object[] args) { } - public void InfoFormat(System.Exception exception, string format, params object[] args) { } - public void InfoFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void InfoFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Trace(string message) { } - public void Trace(System.Func messageFactory) { } - public void Trace(string message, System.Exception exception) { } - public void TraceFormat(string format, params object[] args) { } - public void TraceFormat(System.Exception exception, string format, params object[] args) { } - public void TraceFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void TraceFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Warn(string message) { } - public void Warn(System.Func messageFactory) { } - public void Warn(string message, System.Exception exception) { } - public void WarnFormat(string format, params object[] args) { } - public void WarnFormat(System.Exception exception, string format, params object[] args) { } - public void WarnFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void WarnFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - } - public class StreamLogger : Castle.Core.Logging.LevelFilteredLogger, System.IDisposable - { - public StreamLogger(string name, System.IO.Stream stream) { } - public StreamLogger(string name, System.IO.Stream stream, System.Text.Encoding encoding) { } - public StreamLogger(string name, System.IO.Stream stream, System.Text.Encoding encoding, int bufferSize) { } - protected StreamLogger(string name, System.IO.StreamWriter writer) { } - public override Castle.Core.Logging.ILogger CreateChildLogger(string loggerName) { } - public void Dispose() { } - protected virtual void Dispose(bool disposing) { } - protected override void Finalize() { } - protected override void Log(Castle.Core.Logging.LoggerLevel loggerLevel, string loggerName, string message, System.Exception exception) { } - } - public class StreamLoggerFactory : Castle.Core.Logging.AbstractLoggerFactory - { - public StreamLoggerFactory() { } - public override Castle.Core.Logging.ILogger Create(string name) { } - public override Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } - } - public class TraceLogger : Castle.Core.Logging.LevelFilteredLogger - { - [System.Security.SecuritySafeCriticalAttribute()] - public TraceLogger(string name) { } - [System.Security.SecuritySafeCriticalAttribute()] - public TraceLogger(string name, Castle.Core.Logging.LoggerLevel level) { } - [System.Security.SecuritySafeCriticalAttribute()] - public override Castle.Core.Logging.ILogger CreateChildLogger(string loggerName) { } - protected override void Log(Castle.Core.Logging.LoggerLevel loggerLevel, string loggerName, string message, System.Exception exception) { } - } - public class TraceLoggerFactory : Castle.Core.Logging.AbstractLoggerFactory - { - public TraceLoggerFactory() { } - public TraceLoggerFactory(Castle.Core.Logging.LoggerLevel level) { } - [System.Security.SecuritySafeCriticalAttribute()] - public override Castle.Core.Logging.ILogger Create(string name) { } - [System.Security.SecuritySafeCriticalAttribute()] - public override Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } - } -} -namespace Castle.Core.Resource -{ - public abstract class AbstractResource : Castle.Core.Resource.IResource, System.IDisposable - { - protected static readonly string DefaultBasePath; - protected AbstractResource() { } - public virtual string FileBasePath { get; } - public abstract Castle.Core.Resource.IResource CreateRelative(string relativePath); - public void Dispose() { } - protected virtual void Dispose(bool disposing) { } - public abstract System.IO.TextReader GetStreamReader(); - public abstract System.IO.TextReader GetStreamReader(System.Text.Encoding encoding); - } - public abstract class AbstractStreamResource : Castle.Core.Resource.AbstractResource - { - protected AbstractStreamResource() { } - public Castle.Core.Resource.StreamFactory CreateStream { get; set; } - protected override void Finalize() { } - public override System.IO.TextReader GetStreamReader() { } - public override System.IO.TextReader GetStreamReader(System.Text.Encoding encoding) { } - } - public class AssemblyBundleResource : Castle.Core.Resource.AbstractResource - { - public AssemblyBundleResource(Castle.Core.Resource.CustomUri resource) { } - public override Castle.Core.Resource.IResource CreateRelative(string relativePath) { } - public override System.IO.TextReader GetStreamReader() { } - public override System.IO.TextReader GetStreamReader(System.Text.Encoding encoding) { } - } - public class AssemblyResource : Castle.Core.Resource.AbstractStreamResource - { - public AssemblyResource(Castle.Core.Resource.CustomUri resource) { } - public AssemblyResource(Castle.Core.Resource.CustomUri resource, string basePath) { } - public AssemblyResource(string resource) { } - public override Castle.Core.Resource.IResource CreateRelative(string relativePath) { } - public override string ToString() { } - } - public class AssemblyResourceFactory : Castle.Core.Resource.IResourceFactory - { - public AssemblyResourceFactory() { } - public bool Accept(Castle.Core.Resource.CustomUri uri) { } - public Castle.Core.Resource.IResource Create(Castle.Core.Resource.CustomUri uri) { } - public Castle.Core.Resource.IResource Create(Castle.Core.Resource.CustomUri uri, string basePath) { } - } - public class ConfigResource : Castle.Core.Resource.AbstractResource - { - public ConfigResource() { } - public ConfigResource(Castle.Core.Resource.CustomUri uri) { } - public ConfigResource(string sectionName) { } - public override Castle.Core.Resource.IResource CreateRelative(string relativePath) { } - public override System.IO.TextReader GetStreamReader() { } - public override System.IO.TextReader GetStreamReader(System.Text.Encoding encoding) { } - public override string ToString() { } - } - public class ConfigResourceFactory : Castle.Core.Resource.IResourceFactory - { - public ConfigResourceFactory() { } - public bool Accept(Castle.Core.Resource.CustomUri uri) { } - public Castle.Core.Resource.IResource Create(Castle.Core.Resource.CustomUri uri) { } - public Castle.Core.Resource.IResource Create(Castle.Core.Resource.CustomUri uri, string basePath) { } - } - public sealed class CustomUri - { - public static readonly string SchemeDelimiter; - public static readonly string UriSchemeAssembly; - public static readonly string UriSchemeFile; - public CustomUri(string resourceIdentifier) { } - public string Host { get; } - public bool IsAssembly { get; } - public bool IsFile { get; } - public bool IsUnc { get; } - public string Path { get; } - public string Scheme { get; } - } - public class FileResource : Castle.Core.Resource.AbstractStreamResource - { - public FileResource(Castle.Core.Resource.CustomUri resource) { } - public FileResource(Castle.Core.Resource.CustomUri resource, string basePath) { } - public FileResource(string resourceName) { } - public FileResource(string resourceName, string basePath) { } - public override string FileBasePath { get; } - public override Castle.Core.Resource.IResource CreateRelative(string relativePath) { } - public override string ToString() { } - } - public class FileResourceFactory : Castle.Core.Resource.IResourceFactory - { - public FileResourceFactory() { } - public bool Accept(Castle.Core.Resource.CustomUri uri) { } - public Castle.Core.Resource.IResource Create(Castle.Core.Resource.CustomUri uri) { } - public Castle.Core.Resource.IResource Create(Castle.Core.Resource.CustomUri uri, string basePath) { } - } - public interface IResource : System.IDisposable - { - string FileBasePath { get; } - Castle.Core.Resource.IResource CreateRelative(string relativePath); - System.IO.TextReader GetStreamReader(); - System.IO.TextReader GetStreamReader(System.Text.Encoding encoding); - } - public interface IResourceFactory - { - bool Accept(Castle.Core.Resource.CustomUri uri); - Castle.Core.Resource.IResource Create(Castle.Core.Resource.CustomUri uri); - Castle.Core.Resource.IResource Create(Castle.Core.Resource.CustomUri uri, string basePath); - } - public class ResourceException : System.Exception - { - public ResourceException() { } - public ResourceException(string message) { } - public ResourceException(string message, System.Exception innerException) { } - protected ResourceException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - } - public class StaticContentResource : Castle.Core.Resource.AbstractResource - { - public StaticContentResource(string contents) { } - public override Castle.Core.Resource.IResource CreateRelative(string relativePath) { } - public override System.IO.TextReader GetStreamReader() { } - public override System.IO.TextReader GetStreamReader(System.Text.Encoding encoding) { } - } - public delegate System.IO.Stream StreamFactory(); - public class UncResource : Castle.Core.Resource.AbstractStreamResource - { - public UncResource(Castle.Core.Resource.CustomUri resource) { } - public UncResource(Castle.Core.Resource.CustomUri resource, string basePath) { } - public UncResource(string resourceName) { } - public UncResource(string resourceName, string basePath) { } - public override string FileBasePath { get; } - public override Castle.Core.Resource.IResource CreateRelative(string relativePath) { } - public override string ToString() { } - } - public class UncResourceFactory : Castle.Core.Resource.IResourceFactory - { - public UncResourceFactory() { } - public bool Accept(Castle.Core.Resource.CustomUri uri) { } - public Castle.Core.Resource.IResource Create(Castle.Core.Resource.CustomUri uri) { } - public Castle.Core.Resource.IResource Create(Castle.Core.Resource.CustomUri uri, string basePath) { } - } -} -namespace Castle.Core.Smtp -{ - public class DefaultSmtpSender : Castle.Core.Smtp.IEmailSender - { - public DefaultSmtpSender() { } - public DefaultSmtpSender(string hostname) { } - public bool AsyncSend { get; set; } - public string Domain { get; set; } - public string Hostname { get; } - public string Password { get; set; } - public int Port { get; set; } - public int Timeout { get; set; } - public bool UseSsl { get; set; } - public string UserName { get; set; } - [System.Security.SecurityCriticalAttribute()] - protected virtual void Configure(System.Net.Mail.SmtpClient smtpClient) { } - [System.Security.SecuritySafeCriticalAttribute()] - public void Send(string from, string to, string subject, string messageText) { } - [System.Security.SecuritySafeCriticalAttribute()] - public void Send(System.Net.Mail.MailMessage message) { } - [System.Security.SecuritySafeCriticalAttribute()] - public void Send(System.Collections.Generic.IEnumerable messages) { } - } - public interface IEmailSender - { - void Send(string from, string to, string subject, string messageText); - void Send(System.Net.Mail.MailMessage message); - void Send(System.Collections.Generic.IEnumerable messages); - } -} -namespace Castle.DynamicProxy -{ - public abstract class AbstractInvocation : Castle.DynamicProxy.IInvocation - { - protected readonly object proxyObject; - protected AbstractInvocation(object proxy, Castle.DynamicProxy.IInterceptor[] interceptors, System.Reflection.MethodInfo proxiedMethod, object[] arguments) { } - public object[] Arguments { get; } - public System.Type[] GenericArguments { get; } - public abstract object InvocationTarget { get; } - public System.Reflection.MethodInfo Method { get; } - public abstract System.Reflection.MethodInfo MethodInvocationTarget { get; } - public object Proxy { get; } - public object ReturnValue { get; set; } - public abstract System.Type TargetType { get; } - public Castle.DynamicProxy.IInvocationProceedInfo CaptureProceedInfo() { } - public object GetArgumentValue(int index) { } - public System.Reflection.MethodInfo GetConcreteMethod() { } - public System.Reflection.MethodInfo GetConcreteMethodInvocationTarget() { } - protected abstract void InvokeMethodOnTarget(); - public void Proceed() { } - public void SetArgumentValue(int index, object value) { } - public void SetGenericMethodArguments(System.Type[] arguments) { } - protected void ThrowOnNoTarget() { } - } - public class AllMethodsHook : Castle.DynamicProxy.IProxyGenerationHook - { - protected static readonly System.Collections.Generic.ICollection SkippedTypes; - public AllMethodsHook() { } - public override bool Equals(object obj) { } - public override int GetHashCode() { } - public virtual void MethodsInspected() { } - public virtual void NonProxyableMemberNotification(System.Type type, System.Reflection.MemberInfo memberInfo) { } - public virtual bool ShouldInterceptMethod(System.Type type, System.Reflection.MethodInfo methodInfo) { } - } - public class CustomAttributeInfo : System.IEquatable - { - public CustomAttributeInfo(System.Reflection.ConstructorInfo constructor, object[] constructorArgs, System.Reflection.PropertyInfo[] namedProperties, object[] propertyValues, System.Reflection.FieldInfo[] namedFields, object[] fieldValues) { } - public CustomAttributeInfo(System.Reflection.ConstructorInfo constructor, object[] constructorArgs, System.Reflection.PropertyInfo[] namedProperties, object[] propertyValues) { } - public CustomAttributeInfo(System.Reflection.ConstructorInfo constructor, object[] constructorArgs, System.Reflection.FieldInfo[] namedFields, object[] fieldValues) { } - public CustomAttributeInfo(System.Reflection.ConstructorInfo constructor, object[] constructorArgs) { } - public bool Equals(Castle.DynamicProxy.CustomAttributeInfo other) { } - public override bool Equals(object obj) { } - public static Castle.DynamicProxy.CustomAttributeInfo FromExpression(System.Linq.Expressions.Expression> expression) { } - public override int GetHashCode() { } - } - public class DefaultProxyBuilder : Castle.DynamicProxy.IProxyBuilder - { - public DefaultProxyBuilder() { } - public DefaultProxyBuilder(Castle.DynamicProxy.ModuleScope scope) { } - public Castle.Core.Logging.ILogger Logger { get; set; } - public Castle.DynamicProxy.ModuleScope ModuleScope { get; } - public System.Type CreateClassProxyType(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options) { } - public System.Type CreateClassProxyTypeWithTarget(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options) { } - public System.Type CreateInterfaceProxyTypeWithTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, System.Type targetType, Castle.DynamicProxy.ProxyGenerationOptions options) { } - public System.Type CreateInterfaceProxyTypeWithTargetInterface(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options) { } - public System.Type CreateInterfaceProxyTypeWithoutTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options) { } - } - public interface IChangeProxyTarget - { - void ChangeInvocationTarget(object target); - [System.ObsoleteAttribute("Use ((IProxyTargetAccessor)invocation.Proxy).DynProxySetTarget(target) instead.")] - void ChangeProxyTarget(object target); - } - public interface IInterceptor - { - void Intercept(Castle.DynamicProxy.IInvocation invocation); - } - public interface IInterceptorSelector - { - Castle.DynamicProxy.IInterceptor[] SelectInterceptors(System.Type type, System.Reflection.MethodInfo method, Castle.DynamicProxy.IInterceptor[] interceptors); - } - public interface IInvocation - { - object[] Arguments { get; } - System.Type[] GenericArguments { get; } - object InvocationTarget { get; } - System.Reflection.MethodInfo Method { get; } - System.Reflection.MethodInfo MethodInvocationTarget { get; } - object Proxy { get; } - object ReturnValue { get; set; } - System.Type TargetType { get; } - Castle.DynamicProxy.IInvocationProceedInfo CaptureProceedInfo(); - object GetArgumentValue(int index); - System.Reflection.MethodInfo GetConcreteMethod(); - System.Reflection.MethodInfo GetConcreteMethodInvocationTarget(); - void Proceed(); - void SetArgumentValue(int index, object value); - } - public interface IInvocationProceedInfo - { - void Invoke(); - } - public interface IProxyBuilder - { - Castle.Core.Logging.ILogger Logger { get; set; } - Castle.DynamicProxy.ModuleScope ModuleScope { get; } - System.Type CreateClassProxyType(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options); - System.Type CreateClassProxyTypeWithTarget(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options); - System.Type CreateInterfaceProxyTypeWithTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, System.Type targetType, Castle.DynamicProxy.ProxyGenerationOptions options); - System.Type CreateInterfaceProxyTypeWithTargetInterface(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options); - System.Type CreateInterfaceProxyTypeWithoutTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options); - } - public interface IProxyGenerationHook - { - void MethodsInspected(); - void NonProxyableMemberNotification(System.Type type, System.Reflection.MemberInfo memberInfo); - bool ShouldInterceptMethod(System.Type type, System.Reflection.MethodInfo methodInfo); - } - [System.CLSCompliantAttribute(true)] - public interface IProxyGenerator - { - Castle.Core.Logging.ILogger Logger { get; set; } - Castle.DynamicProxy.IProxyBuilder ProxyBuilder { get; } - TClass CreateClassProxy(params Castle.DynamicProxy.IInterceptor[] interceptors) - where TClass : class; - TClass CreateClassProxy(Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TClass : class; - object CreateClassProxy(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxy(System.Type classToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxy(System.Type classToProxy, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxy(System.Type classToProxy, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxy(System.Type classToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxy(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxy(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors); - TClass CreateClassProxyWithTarget(TClass target, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TClass : class; - TClass CreateClassProxyWithTarget(TClass target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TClass : class; - object CreateClassProxyWithTarget(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxyWithTarget(System.Type classToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxyWithTarget(System.Type classToProxy, object target, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxyWithTarget(System.Type classToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxyWithTarget(System.Type classToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxyWithTarget(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxyWithTarget(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors); - TInterface CreateInterfaceProxyWithTarget(TInterface target, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class; - TInterface CreateInterfaceProxyWithTarget(TInterface target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class; - object CreateInterfaceProxyWithTarget(System.Type interfaceToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateInterfaceProxyWithTarget(System.Type interfaceToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateInterfaceProxyWithTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateInterfaceProxyWithTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateInterfaceProxyWithTargetInterface(System.Type interfaceToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors); - TInterface CreateInterfaceProxyWithTargetInterface(TInterface target, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class; - TInterface CreateInterfaceProxyWithTargetInterface(TInterface target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class; - object CreateInterfaceProxyWithTargetInterface(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateInterfaceProxyWithTargetInterface(System.Type interfaceToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateInterfaceProxyWithTargetInterface(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - TInterface CreateInterfaceProxyWithoutTarget(Castle.DynamicProxy.IInterceptor interceptor) - where TInterface : class; - TInterface CreateInterfaceProxyWithoutTarget(params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class; - TInterface CreateInterfaceProxyWithoutTarget(Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class; - object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, Castle.DynamicProxy.IInterceptor interceptor); - object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - } - public interface IProxyTargetAccessor - { - object DynProxyGetTarget(); - void DynProxySetTarget(object target); - Castle.DynamicProxy.IInterceptor[] GetInterceptors(); - } - public class InvalidMixinConfigurationException : System.Exception - { - public InvalidMixinConfigurationException(string message) { } - public InvalidMixinConfigurationException(string message, System.Exception innerException) { } - protected InvalidMixinConfigurationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - } - public class InvalidProxyConstructorArgumentsException : System.ArgumentException - { - public InvalidProxyConstructorArgumentsException(string message, System.Type proxyType, System.Type classToProxy) { } - public System.Type ClassToProxy { get; } - public System.Type ProxyType { get; } - } - public class MixinData - { - public MixinData(System.Collections.Generic.IEnumerable mixinInstances) { } - public System.Collections.Generic.IEnumerable MixinInterfaces { get; } - public System.Collections.Generic.IEnumerable Mixins { get; } - public bool ContainsMixin(System.Type mixinInterfaceType) { } - public override bool Equals(object obj) { } - public override int GetHashCode() { } - public object GetMixinInstance(System.Type mixinInterfaceType) { } - public int GetMixinPosition(System.Type mixinInterfaceType) { } - } - public class ModuleScope - { - public static readonly string DEFAULT_ASSEMBLY_NAME; - public static readonly string DEFAULT_FILE_NAME; - public ModuleScope() { } - public ModuleScope(bool savePhysicalAssembly) { } - public ModuleScope(bool savePhysicalAssembly, bool disableSignedModule) { } - public ModuleScope(bool savePhysicalAssembly, bool disableSignedModule, string strongAssemblyName, string strongModulePath, string weakAssemblyName, string weakModulePath) { } - public ModuleScope(bool savePhysicalAssembly, bool disableSignedModule, Castle.DynamicProxy.Generators.INamingScope namingScope, string strongAssemblyName, string strongModulePath, string weakAssemblyName, string weakModulePath) { } - [System.ObsoleteAttribute("Exposes a component that is intended for internal use only.")] - public Castle.Core.Internal.Lock Lock { get; } - public Castle.DynamicProxy.Generators.INamingScope NamingScope { get; } - public System.Reflection.Emit.ModuleBuilder StrongNamedModule { get; } - public string StrongNamedModuleDirectory { get; } - public string StrongNamedModuleName { get; } - public System.Reflection.Emit.ModuleBuilder WeakNamedModule { get; } - public string WeakNamedModuleDirectory { get; } - public string WeakNamedModuleName { get; } - [System.ObsoleteAttribute("Exposes a component that is intended for internal use only.")] - public System.Reflection.Emit.TypeBuilder DefineType(bool inSignedModulePreferably, string name, System.Reflection.TypeAttributes flags) { } - [System.ObsoleteAttribute("Exposes a component that is intended for internal use only.")] - public System.Type GetFromCache(Castle.DynamicProxy.Generators.CacheKey key) { } - public static byte[] GetKeyPair() { } - public void LoadAssemblyIntoCache(System.Reflection.Assembly assembly) { } - public System.Reflection.Emit.ModuleBuilder ObtainDynamicModule(bool isStrongNamed) { } - public System.Reflection.Emit.ModuleBuilder ObtainDynamicModuleWithStrongName() { } - public System.Reflection.Emit.ModuleBuilder ObtainDynamicModuleWithWeakName() { } - [System.ObsoleteAttribute("Exposes a component that is intended for internal use only.")] - public void RegisterInCache(Castle.DynamicProxy.Generators.CacheKey key, System.Type type) { } - public string SaveAssembly() { } - public string SaveAssembly(bool strongNamed) { } - } - public class PersistentProxyBuilder : Castle.DynamicProxy.DefaultProxyBuilder - { - public PersistentProxyBuilder() { } - public string SaveAssembly() { } - } - public class ProxyGenerationException : System.Exception - { - public ProxyGenerationException(string message) { } - public ProxyGenerationException(string message, System.Exception innerException) { } - } - public class ProxyGenerationOptions : System.Runtime.Serialization.ISerializable - { - public static readonly Castle.DynamicProxy.ProxyGenerationOptions Default; - public ProxyGenerationOptions(Castle.DynamicProxy.IProxyGenerationHook hook) { } - public ProxyGenerationOptions() { } - public System.Collections.Generic.IList AdditionalAttributes { get; } - public System.Type BaseTypeForInterfaceProxy { get; set; } - public bool HasMixins { get; } - public Castle.DynamicProxy.IProxyGenerationHook Hook { get; set; } - public Castle.DynamicProxy.MixinData MixinData { get; } - public Castle.DynamicProxy.IInterceptorSelector Selector { get; set; } - public void AddDelegateMixin(System.Delegate @delegate) { } - public void AddDelegateTypeMixin(System.Type delegateType) { } - public void AddMixinInstance(object instance) { } - public override bool Equals(object obj) { } - public override int GetHashCode() { } - [System.Security.SecurityCriticalAttribute()] - public void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - public void Initialize() { } - public object[] MixinsAsArray() { } - } - [System.CLSCompliantAttribute(true)] - public class ProxyGenerator : Castle.DynamicProxy.IProxyGenerator - { - public ProxyGenerator(Castle.DynamicProxy.IProxyBuilder builder) { } - public ProxyGenerator() { } - public ProxyGenerator(bool disableSignedModule) { } - public Castle.Core.Logging.ILogger Logger { get; set; } - public Castle.DynamicProxy.IProxyBuilder ProxyBuilder { get; } - protected System.Collections.Generic.List BuildArgumentListForClassProxy(Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.IInterceptor[] interceptors) { } - protected System.Collections.Generic.List BuildArgumentListForClassProxyWithTarget(object target, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.IInterceptor[] interceptors) { } - protected void CheckNotGenericTypeDefinition(System.Type type, string argumentName) { } - protected void CheckNotGenericTypeDefinitions(System.Collections.Generic.IEnumerable types, string argumentName) { } - public TClass CreateClassProxy(params Castle.DynamicProxy.IInterceptor[] interceptors) - where TClass : class { } - public TClass CreateClassProxy(Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TClass : class { } - public object CreateClassProxy(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxy(System.Type classToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxy(System.Type classToProxy, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxy(System.Type classToProxy, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxy(System.Type classToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxy(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public virtual object CreateClassProxy(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - protected object CreateClassProxyInstance(System.Type proxyType, System.Collections.Generic.List proxyArguments, System.Type classToProxy, object[] constructorArguments) { } - protected System.Type CreateClassProxyType(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected System.Type CreateClassProxyTypeWithTarget(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options) { } - public TClass CreateClassProxyWithTarget(TClass target, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TClass : class { } - public TClass CreateClassProxyWithTarget(TClass target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TClass : class { } - public object CreateClassProxyWithTarget(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxyWithTarget(System.Type classToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxyWithTarget(System.Type classToProxy, object target, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxyWithTarget(System.Type classToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxyWithTarget(System.Type classToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxyWithTarget(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public virtual object CreateClassProxyWithTarget(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - protected System.Type CreateInterfaceProxyTypeWithTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, System.Type targetType, Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected System.Type CreateInterfaceProxyTypeWithTargetInterface(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected System.Type CreateInterfaceProxyTypeWithoutTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options) { } - public TInterface CreateInterfaceProxyWithTarget(TInterface target, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class { } - public TInterface CreateInterfaceProxyWithTarget(TInterface target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class { } - public object CreateInterfaceProxyWithTarget(System.Type interfaceToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateInterfaceProxyWithTarget(System.Type interfaceToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateInterfaceProxyWithTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public virtual object CreateInterfaceProxyWithTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateInterfaceProxyWithTargetInterface(System.Type interfaceToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public TInterface CreateInterfaceProxyWithTargetInterface(TInterface target, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class { } - public TInterface CreateInterfaceProxyWithTargetInterface(TInterface target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class { } - public object CreateInterfaceProxyWithTargetInterface(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateInterfaceProxyWithTargetInterface(System.Type interfaceToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - [System.Security.SecuritySafeCriticalAttribute()] - public virtual object CreateInterfaceProxyWithTargetInterface(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public TInterface CreateInterfaceProxyWithoutTarget(Castle.DynamicProxy.IInterceptor interceptor) - where TInterface : class { } - public TInterface CreateInterfaceProxyWithoutTarget(params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class { } - public TInterface CreateInterfaceProxyWithoutTarget(Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class { } - public object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, Castle.DynamicProxy.IInterceptor interceptor) { } - public object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public virtual object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - protected System.Collections.Generic.List GetConstructorArguments(object target, Castle.DynamicProxy.IInterceptor[] interceptors, Castle.DynamicProxy.ProxyGenerationOptions options) { } - } - public class static ProxyUtil - { - public static TDelegate CreateDelegateToMixin(object proxy) { } - public static System.Delegate CreateDelegateToMixin(object proxy, System.Type delegateType) { } - public static object GetUnproxiedInstance(object instance) { } - public static System.Type GetUnproxiedType(object instance) { } - public static bool IsAccessible(System.Reflection.MethodBase method) { } - public static bool IsAccessible(System.Reflection.MethodBase method, out string message) { } - public static bool IsAccessible(System.Type type) { } - public static bool IsProxy(object instance) { } - public static bool IsProxyType(System.Type type) { } - } - public class StandardInterceptor : System.MarshalByRefObject, Castle.DynamicProxy.IInterceptor - { - public StandardInterceptor() { } - public void Intercept(Castle.DynamicProxy.IInvocation invocation) { } - protected virtual void PerformProceed(Castle.DynamicProxy.IInvocation invocation) { } - protected virtual void PostProceed(Castle.DynamicProxy.IInvocation invocation) { } - protected virtual void PreProceed(Castle.DynamicProxy.IInvocation invocation) { } - } -} -namespace Castle.DynamicProxy.Contributors -{ - public class ClassMembersCollector : Castle.DynamicProxy.Contributors.MembersCollector - { - public ClassMembersCollector(System.Type targetType) { } - protected override Castle.DynamicProxy.Generators.MetaMethod GetMethodToGenerate(System.Reflection.MethodInfo method, Castle.DynamicProxy.IProxyGenerationHook hook, bool isStandalone) { } - } - public class ClassProxyInstanceContributor : Castle.DynamicProxy.Contributors.ProxyInstanceContributor - { - public ClassProxyInstanceContributor(System.Type targetType, System.Collections.Generic.IList methodsToSkip, System.Type[] interfaces, string typeId) { } - protected override void AddAddValueInvocation(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference serializationInfo, Castle.DynamicProxy.Generators.Emitters.MethodEmitter getObjectData, Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference field) { } - protected override void CustomizeGetObjectData(Castle.DynamicProxy.Generators.Emitters.CodeBuilders.AbstractCodeBuilder codebuilder, Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference serializationInfo, Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference streamingContext, Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter) { } - public override void Generate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected override Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference GetTargetReference(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter) { } - } - public class ClassProxyTargetContributor : Castle.DynamicProxy.Contributors.CompositeTypeContributor - { - public ClassProxyTargetContributor(System.Type targetType, System.Collections.Generic.IList methodsToSkip, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected override System.Collections.Generic.IEnumerable CollectElementsToProxyInternal(Castle.DynamicProxy.IProxyGenerationHook hook) { } - protected override Castle.DynamicProxy.Generators.MethodGenerator GetMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod) { } - } - public class ClassProxyWithTargetTargetContributor : Castle.DynamicProxy.Contributors.CompositeTypeContributor - { - public ClassProxyWithTargetTargetContributor(System.Type targetType, System.Collections.Generic.IList methodsToSkip, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected override System.Collections.Generic.IEnumerable CollectElementsToProxyInternal(Castle.DynamicProxy.IProxyGenerationHook hook) { } - protected override Castle.DynamicProxy.Generators.MethodGenerator GetMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod) { } - } - public abstract class CompositeTypeContributor : Castle.DynamicProxy.Contributors.ITypeContributor - { - protected readonly System.Collections.Generic.ICollection interfaces; - protected readonly Castle.DynamicProxy.Generators.INamingScope namingScope; - protected CompositeTypeContributor(Castle.DynamicProxy.Generators.INamingScope namingScope) { } - public Castle.Core.Logging.ILogger Logger { get; set; } - public void AddInterfaceToProxy(System.Type @interface) { } - public void CollectElementsToProxy(Castle.DynamicProxy.IProxyGenerationHook hook, Castle.DynamicProxy.Generators.MetaType model) { } - protected abstract System.Collections.Generic.IEnumerable CollectElementsToProxyInternal(Castle.DynamicProxy.IProxyGenerationHook hook); - public virtual void Generate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected abstract Castle.DynamicProxy.Generators.MethodGenerator GetMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod); - } - public class DelegateProxyTargetContributor : Castle.DynamicProxy.Contributors.CompositeTypeContributor - { - public DelegateProxyTargetContributor(System.Type targetType, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected override System.Collections.Generic.IEnumerable CollectElementsToProxyInternal(Castle.DynamicProxy.IProxyGenerationHook hook) { } - protected override Castle.DynamicProxy.Generators.MethodGenerator GetMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod) { } - } - public class DelegateTypeGenerator : Castle.DynamicProxy.Generators.IGenerator - { - public DelegateTypeGenerator(Castle.DynamicProxy.Generators.MetaMethod method, System.Type targetType) { } - public Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter Generate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public class FieldReferenceComparer : System.Collections.Generic.IComparer - { - public FieldReferenceComparer() { } - public int Compare(System.Type x, System.Type y) { } - } - public class ForwardingMethodGenerator : Castle.DynamicProxy.Generators.MethodGenerator - { - public ForwardingMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod, Castle.DynamicProxy.Contributors.GetTargetReferenceDelegate getTargetReference) { } - protected override Castle.DynamicProxy.Generators.Emitters.MethodEmitter BuildProxiedMethodBody(Castle.DynamicProxy.Generators.Emitters.MethodEmitter emitter, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public delegate Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression GetTargetExpressionDelegate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, System.Reflection.MethodInfo method); - public delegate Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference GetTargetReferenceDelegate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, System.Reflection.MethodInfo method); - public interface ITypeContributor - { - void CollectElementsToProxy(Castle.DynamicProxy.IProxyGenerationHook hook, Castle.DynamicProxy.Generators.MetaType model); - void Generate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options); - } - public class InterfaceMembersCollector : Castle.DynamicProxy.Contributors.MembersCollector - { - public InterfaceMembersCollector(System.Type @interface) { } - protected override Castle.DynamicProxy.Generators.MetaMethod GetMethodToGenerate(System.Reflection.MethodInfo method, Castle.DynamicProxy.IProxyGenerationHook hook, bool isStandalone) { } - } - public class InterfaceMembersOnClassCollector : Castle.DynamicProxy.Contributors.MembersCollector - { - public InterfaceMembersOnClassCollector(System.Type type, bool onlyProxyVirtual, System.Reflection.InterfaceMapping map) { } - protected override Castle.DynamicProxy.Generators.MetaMethod GetMethodToGenerate(System.Reflection.MethodInfo method, Castle.DynamicProxy.IProxyGenerationHook hook, bool isStandalone) { } - } - public class InterfaceProxyInstanceContributor : Castle.DynamicProxy.Contributors.ProxyInstanceContributor - { - public InterfaceProxyInstanceContributor(System.Type targetType, string proxyGeneratorId, System.Type[] interfaces) { } - protected override void CustomizeGetObjectData(Castle.DynamicProxy.Generators.Emitters.CodeBuilders.AbstractCodeBuilder codebuilder, Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference serializationInfo, Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference streamingContext, Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter) { } - protected override Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference GetTargetReference(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter) { } - } - public class InterfaceProxyTargetContributor : Castle.DynamicProxy.Contributors.CompositeTypeContributor - { - public InterfaceProxyTargetContributor(System.Type proxyTargetType, bool canChangeTarget, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected override System.Collections.Generic.IEnumerable CollectElementsToProxyInternal(Castle.DynamicProxy.IProxyGenerationHook hook) { } - protected virtual Castle.DynamicProxy.Contributors.MembersCollector GetCollectorForInterface(System.Type @interface) { } - protected override Castle.DynamicProxy.Generators.MethodGenerator GetMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod) { } - } - public class InterfaceProxyWithOptionalTargetContributor : Castle.DynamicProxy.Contributors.InterfaceProxyWithoutTargetContributor - { - public InterfaceProxyWithOptionalTargetContributor(Castle.DynamicProxy.Generators.INamingScope namingScope, Castle.DynamicProxy.Contributors.GetTargetExpressionDelegate getTarget, Castle.DynamicProxy.Contributors.GetTargetReferenceDelegate getTargetReference) { } - protected override Castle.DynamicProxy.Generators.MethodGenerator GetMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod) { } - } - public class InterfaceProxyWithTargetInterfaceTargetContributor : Castle.DynamicProxy.Contributors.InterfaceProxyTargetContributor - { - public InterfaceProxyWithTargetInterfaceTargetContributor(System.Type proxyTargetType, bool allowChangeTarget, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected override Castle.DynamicProxy.Contributors.MembersCollector GetCollectorForInterface(System.Type @interface) { } - } - public class InterfaceProxyWithoutTargetContributor : Castle.DynamicProxy.Contributors.CompositeTypeContributor - { - protected bool canChangeTarget; - public InterfaceProxyWithoutTargetContributor(Castle.DynamicProxy.Generators.INamingScope namingScope, Castle.DynamicProxy.Contributors.GetTargetExpressionDelegate getTarget) { } - protected override System.Collections.Generic.IEnumerable CollectElementsToProxyInternal(Castle.DynamicProxy.IProxyGenerationHook hook) { } - protected override Castle.DynamicProxy.Generators.MethodGenerator GetMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod) { } - } - public class InvocationWithDelegateContributor : Castle.DynamicProxy.Generators.IInvocationCreationContributor - { - public InvocationWithDelegateContributor(System.Type delegateType, System.Type targetType, Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - public Castle.DynamicProxy.Generators.Emitters.ConstructorEmitter CreateConstructor(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] baseCtorArguments, Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter invocation) { } - public System.Reflection.MethodInfo GetCallbackMethod() { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.MethodInvocationExpression GetCallbackMethodInvocation(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter invocation, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference targetField, Castle.DynamicProxy.Generators.Emitters.MethodEmitter invokeMethodOnTarget) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] GetConstructorInvocationArguments(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] arguments, Castle.DynamicProxy.Generators.Emitters.ClassEmitter proxy) { } - } - public class InvocationWithGenericDelegateContributor : Castle.DynamicProxy.Generators.IInvocationCreationContributor - { - public InvocationWithGenericDelegateContributor(System.Type delegateType, Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference targetReference) { } - public Castle.DynamicProxy.Generators.Emitters.ConstructorEmitter CreateConstructor(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] baseCtorArguments, Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter invocation) { } - public System.Reflection.MethodInfo GetCallbackMethod() { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.MethodInvocationExpression GetCallbackMethodInvocation(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter invocation, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference targetField, Castle.DynamicProxy.Generators.Emitters.MethodEmitter invokeMethodOnTarget) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] GetConstructorInvocationArguments(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] arguments, Castle.DynamicProxy.Generators.Emitters.ClassEmitter proxy) { } - } - public abstract class MembersCollector - { - protected readonly System.Type type; - protected MembersCollector(System.Type type) { } - public System.Collections.Generic.IEnumerable Events { get; } - public Castle.Core.Logging.ILogger Logger { get; set; } - public System.Collections.Generic.IEnumerable Methods { get; } - public System.Collections.Generic.IEnumerable Properties { get; } - protected bool AcceptMethod(System.Reflection.MethodInfo method, bool onlyVirtuals, Castle.DynamicProxy.IProxyGenerationHook hook) { } - public virtual void CollectMembersToProxy(Castle.DynamicProxy.IProxyGenerationHook hook) { } - protected abstract Castle.DynamicProxy.Generators.MetaMethod GetMethodToGenerate(System.Reflection.MethodInfo method, Castle.DynamicProxy.IProxyGenerationHook hook, bool isStandalone); - } - public class MinimialisticMethodGenerator : Castle.DynamicProxy.Generators.MethodGenerator - { - public MinimialisticMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod) { } - protected override Castle.DynamicProxy.Generators.Emitters.MethodEmitter BuildProxiedMethodBody(Castle.DynamicProxy.Generators.Emitters.MethodEmitter emitter, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public class MixinContributor : Castle.DynamicProxy.Contributors.CompositeTypeContributor - { - public MixinContributor(Castle.DynamicProxy.Generators.INamingScope namingScope, bool canChangeTarget) { } - public System.Collections.Generic.IEnumerable Fields { get; } - public void AddEmptyInterface(System.Type @interface) { } - protected override System.Collections.Generic.IEnumerable CollectElementsToProxyInternal(Castle.DynamicProxy.IProxyGenerationHook hook) { } - public override void Generate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected override Castle.DynamicProxy.Generators.MethodGenerator GetMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod) { } - } - public class OptionallyForwardingMethodGenerator : Castle.DynamicProxy.Generators.MethodGenerator - { - public OptionallyForwardingMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod, Castle.DynamicProxy.Contributors.GetTargetReferenceDelegate getTargetReference) { } - protected override Castle.DynamicProxy.Generators.Emitters.MethodEmitter BuildProxiedMethodBody(Castle.DynamicProxy.Generators.Emitters.MethodEmitter emitter, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public delegate Castle.DynamicProxy.Generators.Emitters.MethodEmitter OverrideMethodDelegate(string name, System.Reflection.MethodAttributes attributes, System.Reflection.MethodInfo methodToOverride); - public abstract class ProxyInstanceContributor : Castle.DynamicProxy.Contributors.ITypeContributor - { - protected readonly System.Type targetType; - protected ProxyInstanceContributor(System.Type targetType, System.Type[] interfaces, string proxyTypeId) { } - protected virtual void AddAddValueInvocation(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference serializationInfo, Castle.DynamicProxy.Generators.Emitters.MethodEmitter getObjectData, Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference field) { } - public void CollectElementsToProxy(Castle.DynamicProxy.IProxyGenerationHook hook, Castle.DynamicProxy.Generators.MetaType model) { } - protected abstract void CustomizeGetObjectData(Castle.DynamicProxy.Generators.Emitters.CodeBuilders.AbstractCodeBuilder builder, Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference serializationInfo, Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference streamingContext, Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter); - public virtual void Generate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected abstract Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference GetTargetReference(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter); - protected void ImplementGetObjectData(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter) { } - protected void ImplementProxyTargetAccessor(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter, Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference interceptorsField) { } - } - public class WrappedClassMembersCollector : Castle.DynamicProxy.Contributors.ClassMembersCollector - { - public WrappedClassMembersCollector(System.Type type) { } - public override void CollectMembersToProxy(Castle.DynamicProxy.IProxyGenerationHook hook) { } - protected override Castle.DynamicProxy.Generators.MetaMethod GetMethodToGenerate(System.Reflection.MethodInfo method, Castle.DynamicProxy.IProxyGenerationHook hook, bool isStandalone) { } - protected bool IsGeneratedByTheCompiler(System.Reflection.FieldInfo field) { } - protected virtual bool IsOKToBeOnProxy(System.Reflection.FieldInfo field) { } - } -} -namespace Castle.DynamicProxy.Generators -{ - public class static AttributesToAvoidReplicating - { - public static void Add(System.Type attribute) { } - public static void Add() { } - public static bool Contains(System.Type attribute) { } - } - public abstract class BaseProxyGenerator - { - protected readonly System.Type targetType; - protected BaseProxyGenerator(Castle.DynamicProxy.ModuleScope scope, System.Type targetType) { } - public Castle.Core.Logging.ILogger Logger { get; set; } - protected Castle.DynamicProxy.ProxyGenerationOptions ProxyGenerationOptions { get; set; } - protected Castle.DynamicProxy.ModuleScope Scope { get; } - protected void AddMapping(System.Type @interface, Castle.DynamicProxy.Contributors.ITypeContributor implementer, System.Collections.Generic.IDictionary mapping) { } - protected void AddMappingForISerializable(System.Collections.Generic.IDictionary typeImplementerMapping, Castle.DynamicProxy.Contributors.ITypeContributor instance) { } - protected void AddMappingNoCheck(System.Type @interface, Castle.DynamicProxy.Contributors.ITypeContributor implementer, System.Collections.Generic.IDictionary mapping) { } - [System.ObsoleteAttribute("Exposes a component that is intended for internal use only.")] - protected void AddToCache(Castle.DynamicProxy.Generators.CacheKey key, System.Type type) { } - protected virtual Castle.DynamicProxy.Generators.Emitters.ClassEmitter BuildClassEmitter(string typeName, System.Type parentType, System.Collections.Generic.IEnumerable interfaces) { } - protected void CheckNotGenericTypeDefinition(System.Type type, string argumentName) { } - protected void CheckNotGenericTypeDefinitions(System.Collections.Generic.IEnumerable types, string argumentName) { } - protected void CompleteInitCacheMethod(Castle.DynamicProxy.Generators.Emitters.CodeBuilders.ConstructorCodeBuilder constCodeBuilder) { } - protected virtual void CreateFields(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter) { } - protected void CreateInterceptorsField(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter) { } - protected Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference CreateOptionsField(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter) { } - protected void CreateSelectorField(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter) { } - protected virtual void CreateTypeAttributes(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter) { } - protected void EnsureOptionsOverrideEqualsAndGetHashCode(Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected void GenerateConstructor(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter, System.Reflection.ConstructorInfo baseConstructor, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference[] fields) { } - protected void GenerateConstructors(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter, System.Type baseType, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference[] fields) { } - protected void GenerateParameterlessConstructor(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter, System.Type baseClass, Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference interceptorField) { } - protected Castle.DynamicProxy.Generators.Emitters.ConstructorEmitter GenerateStaticConstructor(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter) { } - [System.ObsoleteAttribute("Exposes a component that is intended for internal use only.")] - protected System.Type GetFromCache(Castle.DynamicProxy.Generators.CacheKey key) { } - protected void HandleExplicitlyPassedProxyTargetAccessor(System.Collections.Generic.ICollection targetInterfaces, System.Collections.Generic.ICollection additionalInterfaces) { } - protected void InitializeStaticFields(System.Type builtType) { } - [System.ObsoleteAttribute("Exposes a component that is intended for internal use only.")] - protected System.Type ObtainProxyType(Castle.DynamicProxy.Generators.CacheKey cacheKey, System.Func factory) { } - } - [System.ObsoleteAttribute("Intended for internal use only.")] - public class CacheKey - { - public CacheKey(System.Reflection.MemberInfo target, System.Type type, System.Type[] interfaces, Castle.DynamicProxy.ProxyGenerationOptions options) { } - public CacheKey(System.Type target, System.Type[] interfaces, Castle.DynamicProxy.ProxyGenerationOptions options) { } - public override bool Equals(object obj) { } - public override int GetHashCode() { } - } - public class ClassProxyGenerator : Castle.DynamicProxy.Generators.BaseProxyGenerator - { - public ClassProxyGenerator(Castle.DynamicProxy.ModuleScope scope, System.Type targetType) { } - public System.Type GenerateCode(System.Type[] interfaces, Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected virtual System.Type GenerateType(string name, System.Type[] interfaces, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected virtual System.Collections.Generic.IEnumerable GetTypeImplementerMapping(System.Type[] interfaces, out System.Collections.Generic.IEnumerable contributors, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public class ClassProxyWithTargetGenerator : Castle.DynamicProxy.Generators.BaseProxyGenerator - { - public ClassProxyWithTargetGenerator(Castle.DynamicProxy.ModuleScope scope, System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options) { } - public System.Type GetGeneratedType() { } - protected virtual System.Collections.Generic.IEnumerable GetTypeImplementerMapping(out System.Collections.Generic.IEnumerable contributors, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public class CompositionInvocationTypeGenerator : Castle.DynamicProxy.Generators.InvocationTypeGenerator - { - public static readonly System.Type BaseType; - public CompositionInvocationTypeGenerator(System.Type target, Castle.DynamicProxy.Generators.MetaMethod method, System.Reflection.MethodInfo callback, bool canChangeTarget, Castle.DynamicProxy.Generators.IInvocationCreationContributor contributor) { } - protected override Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] GetBaseCtorArguments(System.Type targetFieldType, Castle.DynamicProxy.ProxyGenerationOptions proxyGenerationOptions, out System.Reflection.ConstructorInfo baseConstructor) { } - protected override System.Type GetBaseType() { } - protected override Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference GetTargetReference() { } - protected override void ImplementInvokeMethodOnTarget(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter invocation, System.Reflection.ParameterInfo[] parameters, Castle.DynamicProxy.Generators.Emitters.MethodEmitter invokeMethodOnTarget, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference targetField) { } - } - public class DelegateMembersCollector : Castle.DynamicProxy.Contributors.MembersCollector - { - public DelegateMembersCollector(System.Type type) { } - protected override Castle.DynamicProxy.Generators.MetaMethod GetMethodToGenerate(System.Reflection.MethodInfo method, Castle.DynamicProxy.IProxyGenerationHook hook, bool isStandalone) { } - } - public class DelegateProxyGenerationHook : Castle.DynamicProxy.IProxyGenerationHook - { - public DelegateProxyGenerationHook() { } - public override bool Equals(object obj) { } - public override int GetHashCode() { } - public void MethodsInspected() { } - public void NonProxyableMemberNotification(System.Type type, System.Reflection.MemberInfo memberInfo) { } - public bool ShouldInterceptMethod(System.Type type, System.Reflection.MethodInfo methodInfo) { } - } - public class DelegateProxyGenerator : Castle.DynamicProxy.Generators.BaseProxyGenerator - { - public DelegateProxyGenerator(Castle.DynamicProxy.ModuleScope scope, System.Type delegateType) { } - public System.Type GetProxyType() { } - protected virtual System.Collections.Generic.IEnumerable GetTypeImplementerMapping(out System.Collections.Generic.IEnumerable contributors, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public class GeneratorException : System.Exception - { - public GeneratorException(string message) { } - public GeneratorException(string message, System.Exception innerException) { } - public GeneratorException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - } - public class static GeneratorUtil - { - public static void CopyOutAndRefParameters(Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference[] dereferencedArguments, Castle.DynamicProxy.Generators.Emitters.SimpleAST.LocalReference invocation, System.Reflection.MethodInfo method, Castle.DynamicProxy.Generators.Emitters.MethodEmitter emitter) { } - } - public interface IGenerator - { - T Generate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Generators.INamingScope namingScope); - } - public interface IInvocationCreationContributor - { - Castle.DynamicProxy.Generators.Emitters.ConstructorEmitter CreateConstructor(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] baseCtorArguments, Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter invocation); - System.Reflection.MethodInfo GetCallbackMethod(); - Castle.DynamicProxy.Generators.Emitters.SimpleAST.MethodInvocationExpression GetCallbackMethodInvocation(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter invocation, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference targetField, Castle.DynamicProxy.Generators.Emitters.MethodEmitter invokeMethodOnTarget); - Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] GetConstructorInvocationArguments(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] arguments, Castle.DynamicProxy.Generators.Emitters.ClassEmitter proxy); - } - public interface INamingScope - { - Castle.DynamicProxy.Generators.INamingScope ParentScope { get; } - string GetUniqueName(string suggestedName); - Castle.DynamicProxy.Generators.INamingScope SafeSubScope(); - } - public class InheritanceInvocationTypeGenerator : Castle.DynamicProxy.Generators.InvocationTypeGenerator - { - public static readonly System.Type BaseType; - public InheritanceInvocationTypeGenerator(System.Type targetType, Castle.DynamicProxy.Generators.MetaMethod method, System.Reflection.MethodInfo callback, Castle.DynamicProxy.Generators.IInvocationCreationContributor contributor) { } - protected override Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] GetBaseCtorArguments(System.Type targetFieldType, Castle.DynamicProxy.ProxyGenerationOptions proxyGenerationOptions, out System.Reflection.ConstructorInfo baseConstructor) { } - protected override System.Type GetBaseType() { } - protected override Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference GetTargetReference() { } - } - public class InterfaceProxyWithTargetGenerator : Castle.DynamicProxy.Generators.BaseProxyGenerator - { - protected Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference targetField; - public InterfaceProxyWithTargetGenerator(Castle.DynamicProxy.ModuleScope scope, System.Type @interface) { } - protected virtual bool AllowChangeTarget { get; } - protected virtual string GeneratorType { get; } - protected virtual Castle.DynamicProxy.Contributors.ITypeContributor AddMappingForTargetType(System.Collections.Generic.IDictionary typeImplementerMapping, System.Type proxyTargetType, System.Collections.Generic.ICollection targetInterfaces, System.Collections.Generic.ICollection additionalInterfaces, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected override void CreateTypeAttributes(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter) { } - public System.Type GenerateCode(System.Type proxyTargetType, System.Type[] interfaces, Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected virtual System.Type GenerateType(string typeName, System.Type proxyTargetType, System.Type[] interfaces, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected virtual Castle.DynamicProxy.Contributors.InterfaceProxyWithoutTargetContributor GetContributorForAdditionalInterfaces(Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected virtual System.Collections.Generic.IEnumerable GetTypeImplementerMapping(System.Type[] interfaces, System.Type proxyTargetType, out System.Collections.Generic.IEnumerable contributors, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected virtual System.Type Init(string typeName, out Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter, System.Type proxyTargetType, out Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference interceptorsField, System.Collections.Generic.IEnumerable interfaces) { } - } - public class InterfaceProxyWithTargetInterfaceGenerator : Castle.DynamicProxy.Generators.InterfaceProxyWithTargetGenerator - { - public InterfaceProxyWithTargetInterfaceGenerator(Castle.DynamicProxy.ModuleScope scope, System.Type @interface) { } - protected override bool AllowChangeTarget { get; } - protected override string GeneratorType { get; } - protected override Castle.DynamicProxy.Contributors.ITypeContributor AddMappingForTargetType(System.Collections.Generic.IDictionary typeImplementerMapping, System.Type proxyTargetType, System.Collections.Generic.ICollection targetInterfaces, System.Collections.Generic.ICollection additionalInterfaces, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected override Castle.DynamicProxy.Contributors.InterfaceProxyWithoutTargetContributor GetContributorForAdditionalInterfaces(Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public class InterfaceProxyWithoutTargetGenerator : Castle.DynamicProxy.Generators.InterfaceProxyWithTargetGenerator - { - public InterfaceProxyWithoutTargetGenerator(Castle.DynamicProxy.ModuleScope scope, System.Type @interface) { } - protected override string GeneratorType { get; } - protected override Castle.DynamicProxy.Contributors.ITypeContributor AddMappingForTargetType(System.Collections.Generic.IDictionary interfaceTypeImplementerMapping, System.Type proxyTargetType, System.Collections.Generic.ICollection targetInterfaces, System.Collections.Generic.ICollection additionalInterfaces, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected override System.Type GenerateType(string typeName, System.Type proxyTargetType, System.Type[] interfaces, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public abstract class InvocationTypeGenerator : Castle.DynamicProxy.Generators.IGenerator - { - protected readonly Castle.DynamicProxy.Generators.MetaMethod method; - protected readonly System.Type targetType; - protected InvocationTypeGenerator(System.Type targetType, Castle.DynamicProxy.Generators.MetaMethod method, System.Reflection.MethodInfo callback, bool canChangeTarget, Castle.DynamicProxy.Generators.IInvocationCreationContributor contributor) { } - public Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter Generate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected abstract Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] GetBaseCtorArguments(System.Type targetFieldType, Castle.DynamicProxy.ProxyGenerationOptions proxyGenerationOptions, out System.Reflection.ConstructorInfo baseConstructor); - protected abstract System.Type GetBaseType(); - protected virtual Castle.DynamicProxy.Generators.Emitters.SimpleAST.MethodInvocationExpression GetCallbackMethodInvocation(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter invocation, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args, System.Reflection.MethodInfo callbackMethod, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference targetField, Castle.DynamicProxy.Generators.Emitters.MethodEmitter invokeMethodOnTarget) { } - protected abstract Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference GetTargetReference(); - protected virtual void ImplementInvokeMethodOnTarget(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter invocation, System.Reflection.ParameterInfo[] parameters, Castle.DynamicProxy.Generators.Emitters.MethodEmitter invokeMethodOnTarget, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference targetField) { } - } - public class MetaEvent : Castle.DynamicProxy.Generators.MetaTypeElement, System.IEquatable - { - public MetaEvent(string name, System.Type declaringType, System.Type eventDelegateType, Castle.DynamicProxy.Generators.MetaMethod adder, Castle.DynamicProxy.Generators.MetaMethod remover, System.Reflection.EventAttributes attributes) { } - public Castle.DynamicProxy.Generators.MetaMethod Adder { get; } - public System.Reflection.EventAttributes Attributes { get; } - public Castle.DynamicProxy.Generators.Emitters.EventEmitter Emitter { get; } - public Castle.DynamicProxy.Generators.MetaMethod Remover { get; } - public void BuildEventEmitter(Castle.DynamicProxy.Generators.Emitters.ClassEmitter classEmitter) { } - public override bool Equals(object obj) { } - public bool Equals(Castle.DynamicProxy.Generators.MetaEvent other) { } - public override int GetHashCode() { } - } - [System.Diagnostics.DebuggerDisplayAttribute("{Method}")] - public class MetaMethod : Castle.DynamicProxy.Generators.MetaTypeElement, System.IEquatable - { - public MetaMethod(System.Reflection.MethodInfo method, System.Reflection.MethodInfo methodOnTarget, bool standalone, bool proxyable, bool hasTarget) { } - public System.Reflection.MethodAttributes Attributes { get; } - public bool HasTarget { get; } - public System.Reflection.MethodInfo Method { get; } - public System.Reflection.MethodInfo MethodOnTarget { get; } - public string Name { get; } - public bool Proxyable { get; } - public bool Standalone { get; } - public bool Equals(Castle.DynamicProxy.Generators.MetaMethod other) { } - } - public class MetaProperty : Castle.DynamicProxy.Generators.MetaTypeElement, System.IEquatable - { - public MetaProperty(string name, System.Type propertyType, System.Type declaringType, Castle.DynamicProxy.Generators.MetaMethod getter, Castle.DynamicProxy.Generators.MetaMethod setter, System.Collections.Generic.IEnumerable customAttributes, System.Type[] arguments) { } - public System.Type[] Arguments { get; } - public bool CanRead { get; } - public bool CanWrite { get; } - public Castle.DynamicProxy.Generators.Emitters.PropertyEmitter Emitter { get; } - public System.Reflection.MethodInfo GetMethod { get; } - public Castle.DynamicProxy.Generators.MetaMethod Getter { get; } - public System.Reflection.MethodInfo SetMethod { get; } - public Castle.DynamicProxy.Generators.MetaMethod Setter { get; } - public void BuildPropertyEmitter(Castle.DynamicProxy.Generators.Emitters.ClassEmitter classEmitter) { } - public override bool Equals(object obj) { } - public bool Equals(Castle.DynamicProxy.Generators.MetaProperty other) { } - public override int GetHashCode() { } - } - public class MetaType - { - public MetaType() { } - public System.Collections.Generic.IEnumerable Events { get; } - public System.Collections.Generic.IEnumerable Methods { get; } - public System.Collections.Generic.IEnumerable Properties { get; } - public void AddEvent(Castle.DynamicProxy.Generators.MetaEvent @event) { } - public void AddMethod(Castle.DynamicProxy.Generators.MetaMethod method) { } - public void AddProperty(Castle.DynamicProxy.Generators.MetaProperty property) { } - } - public abstract class MetaTypeElement - { - protected readonly System.Type sourceType; - protected MetaTypeElement(System.Type sourceType) { } - } - public class MethodFinder - { - public MethodFinder() { } - public static System.Reflection.MethodInfo[] GetAllInstanceMethods(System.Type type, System.Reflection.BindingFlags flags) { } - } - public abstract class MethodGenerator : Castle.DynamicProxy.Generators.IGenerator - { - protected MethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod) { } - protected System.Reflection.MethodInfo MethodOnTarget { get; } - protected System.Reflection.MethodInfo MethodToOverride { get; } - protected abstract Castle.DynamicProxy.Generators.Emitters.MethodEmitter BuildProxiedMethodBody(Castle.DynamicProxy.Generators.Emitters.MethodEmitter emitter, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Generators.INamingScope namingScope); - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter Generate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public class MethodSignatureComparer : System.Collections.Generic.IEqualityComparer - { - public static readonly Castle.DynamicProxy.Generators.MethodSignatureComparer Instance; - public MethodSignatureComparer() { } - public bool EqualGenericParameters(System.Reflection.MethodInfo x, System.Reflection.MethodInfo y) { } - public bool EqualParameters(System.Reflection.MethodInfo x, System.Reflection.MethodInfo y) { } - public bool EqualSignatureTypes(System.Type x, System.Type y) { } - public bool Equals(System.Reflection.MethodInfo x, System.Reflection.MethodInfo y) { } - public int GetHashCode(System.Reflection.MethodInfo obj) { } - } - public class MethodWithInvocationGenerator : Castle.DynamicProxy.Generators.MethodGenerator - { - public MethodWithInvocationGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference interceptors, System.Type invocation, Castle.DynamicProxy.Contributors.GetTargetExpressionDelegate getTargetExpression, Castle.DynamicProxy.Contributors.OverrideMethodDelegate createMethod, Castle.DynamicProxy.Generators.IInvocationCreationContributor contributor) { } - public MethodWithInvocationGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference interceptors, System.Type invocation, Castle.DynamicProxy.Contributors.GetTargetExpressionDelegate getTargetExpression, Castle.DynamicProxy.Contributors.GetTargetExpressionDelegate getTargetTypeExpression, Castle.DynamicProxy.Contributors.OverrideMethodDelegate createMethod, Castle.DynamicProxy.Generators.IInvocationCreationContributor contributor) { } - protected Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference BuildMethodInterceptorsField(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, System.Reflection.MethodInfo method, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected override Castle.DynamicProxy.Generators.Emitters.MethodEmitter BuildProxiedMethodBody(Castle.DynamicProxy.Generators.Emitters.MethodEmitter emitter, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public class NamingScope : Castle.DynamicProxy.Generators.INamingScope - { - public NamingScope() { } - public Castle.DynamicProxy.Generators.INamingScope ParentScope { get; } - public string GetUniqueName(string suggestedName) { } - public Castle.DynamicProxy.Generators.INamingScope SafeSubScope() { } - } - public class TypeElementCollection : System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - where TElement : Castle.DynamicProxy.Generators.MetaTypeElement, System.IEquatable - { - public TypeElementCollection() { } - public int Count { get; } - public void Add(TElement item) { } - public bool Contains(TElement item) { } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - } -} -namespace Castle.DynamicProxy.Generators.Emitters -{ - public abstract class AbstractTypeEmitter - { - protected AbstractTypeEmitter(System.Reflection.Emit.TypeBuilder typeBuilder) { } - public System.Type BaseType { get; } - public Castle.DynamicProxy.Generators.Emitters.TypeConstructorEmitter ClassConstructor { get; } - public Castle.DynamicProxy.Generators.Emitters.ConstructorCollection Constructors { get; } - public System.Reflection.Emit.GenericTypeParameterBuilder[] GenericTypeParams { get; } - public Castle.DynamicProxy.Generators.Emitters.NestedClassCollection Nested { get; } - public System.Reflection.Emit.TypeBuilder TypeBuilder { get; } - public void AddCustomAttributes(Castle.DynamicProxy.ProxyGenerationOptions proxyGenerationOptions) { } - public virtual System.Type BuildType() { } - public void CopyGenericParametersFromMethod(System.Reflection.MethodInfo methodToCopyGenericsFrom) { } - public Castle.DynamicProxy.Generators.Emitters.ConstructorEmitter CreateConstructor(params Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] arguments) { } - public void CreateDefaultConstructor() { } - public Castle.DynamicProxy.Generators.Emitters.EventEmitter CreateEvent(string name, System.Reflection.EventAttributes atts, System.Type type) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference CreateField(string name, System.Type fieldType) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference CreateField(string name, System.Type fieldType, bool serializable) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference CreateField(string name, System.Type fieldType, System.Reflection.FieldAttributes atts) { } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateMethod(string name, System.Reflection.MethodAttributes attrs, System.Type returnType, params System.Type[] argumentTypes) { } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateMethod(string name, System.Type returnType, params System.Type[] parameterTypes) { } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateMethod(string name, System.Reflection.MethodInfo methodToUseAsATemplate) { } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateMethod(string name, System.Reflection.MethodAttributes attributes, System.Reflection.MethodInfo methodToUseAsATemplate) { } - public Castle.DynamicProxy.Generators.Emitters.PropertyEmitter CreateProperty(string name, System.Reflection.PropertyAttributes attributes, System.Type propertyType, System.Type[] arguments) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference CreateStaticField(string name, System.Type fieldType) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference CreateStaticField(string name, System.Type fieldType, System.Reflection.FieldAttributes atts) { } - protected System.Type CreateType(System.Reflection.Emit.TypeBuilder type) { } - public Castle.DynamicProxy.Generators.Emitters.ConstructorEmitter CreateTypeConstructor() { } - public void DefineCustomAttribute(System.Reflection.Emit.CustomAttributeBuilder attribute) { } - public void DefineCustomAttribute(object[] constructorArguments) - where TAttribute : System.Attribute { } - public void DefineCustomAttribute() - where TAttribute : System.Attribute, new () { } - public void DefineCustomAttributeFor(Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference field) - where TAttribute : System.Attribute, new () { } - protected virtual void EnsureBuildersAreInAValidState() { } - public System.Collections.Generic.IEnumerable GetAllFields() { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference GetField(string name) { } - public System.Type GetGenericArgument(string genericArgumentName) { } - public System.Type[] GetGenericArgumentsFor(System.Type genericType) { } - public System.Type[] GetGenericArgumentsFor(System.Reflection.MethodInfo genericMethod) { } - public void SetGenericTypeParameters(System.Reflection.Emit.GenericTypeParameterBuilder[] genericTypeParameterBuilders) { } - } - public abstract class ArgumentsUtil - { - protected ArgumentsUtil() { } - public static Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] ConvertArgumentReferenceToExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] args) { } - public static Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] ConvertToArgumentReference(System.Type[] args) { } - public static Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] ConvertToArgumentReference(System.Reflection.ParameterInfo[] args) { } - public static Castle.DynamicProxy.Generators.Emitters.SimpleAST.ReferenceExpression[] ConvertToArgumentReferenceExpression(System.Reflection.ParameterInfo[] args) { } - public static void EmitLoadOwnerAndReference(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference reference, System.Reflection.Emit.ILGenerator il) { } - public static System.Type[] GetTypes(System.Reflection.ParameterInfo[] parameters) { } - public static System.Type[] InitializeAndConvert(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] args) { } - public static void InitializeArgumentsByPosition(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] args, bool isStatic) { } - [System.ObsoleteAttribute()] - public static bool IsAnyByRef(System.Reflection.ParameterInfo[] parameters) { } - } - public class ClassEmitter : Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter - { - public ClassEmitter(Castle.DynamicProxy.ModuleScope modulescope, string name, System.Type baseType, System.Collections.Generic.IEnumerable interfaces) { } - public ClassEmitter(Castle.DynamicProxy.ModuleScope modulescope, string name, System.Type baseType, System.Collections.Generic.IEnumerable interfaces, System.Reflection.TypeAttributes flags) { } - public ClassEmitter(Castle.DynamicProxy.ModuleScope modulescope, string name, System.Type baseType, System.Collections.Generic.IEnumerable interfaces, System.Reflection.TypeAttributes flags, bool forceUnsigned) { } - public ClassEmitter(System.Reflection.Emit.TypeBuilder typeBuilder) { } - public Castle.DynamicProxy.ModuleScope ModuleScope { get; } - protected virtual System.Collections.Generic.IEnumerable InitializeGenericArgumentsFromBases(ref System.Type baseType, System.Collections.Generic.IEnumerable interfaces) { } - } - public class ConstructorCollection : System.Collections.ObjectModel.Collection - { - public ConstructorCollection() { } - } - public class ConstructorEmitter : Castle.DynamicProxy.Generators.Emitters.IMemberEmitter - { - protected ConstructorEmitter(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter maintype, System.Reflection.Emit.ConstructorBuilder builder) { } - public virtual Castle.DynamicProxy.Generators.Emitters.CodeBuilders.ConstructorCodeBuilder CodeBuilder { get; } - public System.Reflection.Emit.ConstructorBuilder ConstructorBuilder { get; } - public System.Reflection.MemberInfo Member { get; } - public System.Type ReturnType { get; } - public virtual void EnsureValidCodeBlock() { } - public virtual void Generate() { } - } - public class EventCollection : System.Collections.ObjectModel.Collection - { - public EventCollection() { } - } - public class EventEmitter : Castle.DynamicProxy.Generators.Emitters.IMemberEmitter - { - public EventEmitter(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter typeEmitter, string name, System.Reflection.EventAttributes attributes, System.Type type) { } - public System.Reflection.MemberInfo Member { get; } - public System.Type ReturnType { get; } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateAddMethod(string addMethodName, System.Reflection.MethodAttributes attributes, System.Reflection.MethodInfo methodToOverride) { } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateRemoveMethod(string removeMethodName, System.Reflection.MethodAttributes attributes, System.Reflection.MethodInfo methodToOverride) { } - public void EnsureValidCodeBlock() { } - public void Generate() { } - } - public interface IMemberEmitter - { - System.Reflection.MemberInfo Member { get; } - System.Type ReturnType { get; } - void EnsureValidCodeBlock(); - void Generate(); - } - public sealed class LdcOpCodesDictionary : System.Collections.Generic.Dictionary - { - public static System.Reflection.Emit.OpCode EmptyOpCode { get; } - public static Castle.DynamicProxy.Generators.Emitters.LdcOpCodesDictionary Instance { get; } - public System.Reflection.Emit.OpCode this[System.Type type] { get; } - } - public sealed class LdindOpCodesDictionary : System.Collections.Generic.Dictionary - { - public static System.Reflection.Emit.OpCode EmptyOpCode { get; } - public static Castle.DynamicProxy.Generators.Emitters.LdindOpCodesDictionary Instance { get; } - public System.Reflection.Emit.OpCode this[System.Type type] { get; } - } - public class MethodCollection : System.Collections.ObjectModel.Collection - { - public MethodCollection() { } - } - [System.Diagnostics.DebuggerDisplayAttribute("{builder.Name}")] - public class MethodEmitter : Castle.DynamicProxy.Generators.Emitters.IMemberEmitter - { - protected MethodEmitter(System.Reflection.Emit.MethodBuilder builder) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] Arguments { get; } - public virtual Castle.DynamicProxy.Generators.Emitters.CodeBuilders.MethodCodeBuilder CodeBuilder { get; } - public System.Reflection.Emit.GenericTypeParameterBuilder[] GenericTypeParams { get; } - public System.Reflection.MemberInfo Member { get; } - public System.Reflection.Emit.MethodBuilder MethodBuilder { get; } - public System.Type ReturnType { get; } - public void DefineCustomAttribute(System.Reflection.Emit.CustomAttributeBuilder attribute) { } - public virtual void EnsureValidCodeBlock() { } - public virtual void Generate() { } - public void SetParameters(System.Type[] paramTypes) { } - } - public class NestedClassCollection : System.Collections.ObjectModel.Collection - { - public NestedClassCollection() { } - } - public class NestedClassEmitter : Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter - { - public NestedClassEmitter(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter maintype, string name, System.Type baseType, System.Type[] interfaces) { } - public NestedClassEmitter(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter maintype, string name, System.Reflection.TypeAttributes attributes, System.Type baseType, System.Type[] interfaces) { } - public NestedClassEmitter(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter maintype, System.Reflection.Emit.TypeBuilder typeBuilder) { } - } - public class PropertiesCollection : System.Collections.ObjectModel.Collection - { - public PropertiesCollection() { } - } - public class PropertyEmitter : Castle.DynamicProxy.Generators.Emitters.IMemberEmitter - { - public PropertyEmitter(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter parentTypeEmitter, string name, System.Reflection.PropertyAttributes attributes, System.Type propertyType, System.Type[] arguments) { } - public System.Reflection.MemberInfo Member { get; } - public System.Type ReturnType { get; } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateGetMethod(string name, System.Reflection.MethodAttributes attrs, System.Reflection.MethodInfo methodToOverride, params System.Type[] parameters) { } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateGetMethod(string name, System.Reflection.MethodAttributes attributes, System.Reflection.MethodInfo methodToOverride) { } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateSetMethod(string name, System.Reflection.MethodAttributes attrs, System.Reflection.MethodInfo methodToOverride, params System.Type[] parameters) { } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateSetMethod(string name, System.Reflection.MethodAttributes attributes, System.Reflection.MethodInfo methodToOverride) { } - public void DefineCustomAttribute(System.Reflection.Emit.CustomAttributeBuilder attribute) { } - public void EnsureValidCodeBlock() { } - public void Generate() { } - } - public sealed class StindOpCodesDictionary : System.Collections.Generic.Dictionary - { - public static System.Reflection.Emit.OpCode EmptyOpCode { get; } - public static Castle.DynamicProxy.Generators.Emitters.StindOpCodesDictionary Instance { get; } - public System.Reflection.Emit.OpCode this[System.Type type] { get; } - } - public class static StrongNameUtil - { - public static bool CanStrongNameAssembly { get; set; } - public static bool IsAnyTypeFromUnsignedAssembly(System.Collections.Generic.IEnumerable types) { } - public static bool IsAnyTypeFromUnsignedAssembly(System.Type baseType, System.Collections.Generic.IEnumerable interfaces) { } - public static bool IsAssemblySigned(this System.Reflection.Assembly assembly) { } - } - public class TypeConstructorEmitter : Castle.DynamicProxy.Generators.Emitters.ConstructorEmitter - { - public override void EnsureValidCodeBlock() { } - } -} -namespace Castle.DynamicProxy.Generators.Emitters.CodeBuilders -{ - public abstract class AbstractCodeBuilder - { - protected AbstractCodeBuilder(System.Reflection.Emit.ILGenerator generator) { } - public System.Reflection.Emit.ILGenerator Generator { get; } - public Castle.DynamicProxy.Generators.Emitters.CodeBuilders.AbstractCodeBuilder AddExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression expression) { } - public Castle.DynamicProxy.Generators.Emitters.CodeBuilders.AbstractCodeBuilder AddStatement(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement stmt) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.LocalReference DeclareLocal(System.Type type) { } - public void SetNonEmpty() { } - } - public class ConstructorCodeBuilder : Castle.DynamicProxy.Generators.Emitters.CodeBuilders.AbstractCodeBuilder - { - public ConstructorCodeBuilder(System.Type baseType, System.Reflection.Emit.ILGenerator generator) { } - public void InvokeBaseConstructor() { } - public void InvokeBaseConstructor(System.Reflection.ConstructorInfo constructor) { } - public void InvokeBaseConstructor(System.Reflection.ConstructorInfo constructor, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] arguments) { } - } - public class MethodCodeBuilder : Castle.DynamicProxy.Generators.Emitters.CodeBuilders.AbstractCodeBuilder - { - public MethodCodeBuilder(System.Reflection.Emit.ILGenerator generator) { } - } -} -namespace Castle.DynamicProxy.Generators.Emitters.SimpleAST -{ - public class AddressOfReferenceExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public AddressOfReferenceExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference reference) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("argument {Type}")] - public class ArgumentReference : Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference - { - public ArgumentReference(System.Type argumentType) { } - public ArgumentReference(System.Type argumentType, int position) { } - public override void LoadAddressOfReference(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadReference(System.Reflection.Emit.ILGenerator gen) { } - public override void StoreReference(System.Reflection.Emit.ILGenerator gen) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("{reference} as {type}")] - public class AsTypeReference : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference - { - public AsTypeReference(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference reference, System.Type type) { } - public override void LoadAddressOfReference(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadReference(System.Reflection.Emit.ILGenerator gen) { } - public override void StoreReference(System.Reflection.Emit.ILGenerator gen) { } - } - public class AssignArgumentStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public AssignArgumentStatement(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference argument, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression expression) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class AssignArrayStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public AssignArrayStatement(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference targetArray, int targetPosition, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression value) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator il) { } - } - public class AssignStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public AssignStatement(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference target, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression expression) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class BindDelegateExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public BindDelegateExpression(System.Type @delegate, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression owner, System.Reflection.MethodInfo methodToBindTo, System.Reflection.Emit.GenericTypeParameterBuilder[] genericTypeParams) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("&{localReference}")] - public class ByRefReference : Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference - { - public ByRefReference(Castle.DynamicProxy.Generators.Emitters.SimpleAST.LocalReference localReference) { } - public override void LoadAddressOfReference(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadReference(System.Reflection.Emit.ILGenerator gen) { } - public override void StoreReference(System.Reflection.Emit.ILGenerator gen) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("{value}")] - public class ConstReference : Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference - { - public ConstReference(object value) { } - public override void Generate(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadAddressOfReference(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadReference(System.Reflection.Emit.ILGenerator gen) { } - public override void StoreReference(System.Reflection.Emit.ILGenerator gen) { } - } - public class ConstructorInvocationStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public ConstructorInvocationStatement(System.Reflection.ConstructorInfo method, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class ConvertExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public ConvertExpression(System.Type targetType, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression right) { } - public ConvertExpression(System.Type targetType, System.Type fromType, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression right) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class DefaultValueExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public DefaultValueExpression(System.Type type) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class EndExceptionBlockStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public EndExceptionBlockStatement() { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public abstract class Expression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.IILEmitter - { - protected Expression() { } - public abstract void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen); - } - public class ExpressionStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public ExpressionStatement(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression expression) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("{fieldbuilder.Name} ({fieldbuilder.FieldType})")] - public class FieldReference : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference - { - public FieldReference(System.Reflection.FieldInfo field) { } - public FieldReference(System.Reflection.Emit.FieldBuilder fieldbuilder) { } - public System.Reflection.Emit.FieldBuilder Fieldbuilder { get; } - public System.Reflection.FieldInfo Reference { get; } - public override void LoadAddressOfReference(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadReference(System.Reflection.Emit.ILGenerator gen) { } - public override void StoreReference(System.Reflection.Emit.ILGenerator gen) { } - } - public class FinallyStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public FinallyStatement() { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public interface IILEmitter - { - void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen); - } - public class IfNullExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public IfNullExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference reference, Castle.DynamicProxy.Generators.Emitters.SimpleAST.IILEmitter ifNull, Castle.DynamicProxy.Generators.Emitters.SimpleAST.IILEmitter ifNotNull = null) { } - public IfNullExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression expression, Castle.DynamicProxy.Generators.Emitters.SimpleAST.IILEmitter ifNull, Castle.DynamicProxy.Generators.Emitters.SimpleAST.IILEmitter ifNotNull = null) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("&{OwnerReference}")] - public class IndirectReference : Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference - { - public IndirectReference(Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference byRefReference) { } - public override void LoadAddressOfReference(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadReference(System.Reflection.Emit.ILGenerator gen) { } - public override void StoreReference(System.Reflection.Emit.ILGenerator gen) { } - public static Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference WrapIfByRef(Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference reference) { } - public static Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference[] WrapIfByRef(Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference[] references) { } - } - public class LiteralIntExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public LiteralIntExpression(int value) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class LoadArrayElementExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public LoadArrayElementExpression(int index, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference arrayReference, System.Type returnType) { } - public LoadArrayElementExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ConstReference index, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference arrayReference, System.Type returnType) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class LoadRefArrayElementExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public LoadRefArrayElementExpression(int index, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference arrayReference) { } - public LoadRefArrayElementExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ConstReference index, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference arrayReference) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("local {Type}")] - public class LocalReference : Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference - { - public LocalReference(System.Type type) { } - public override void Generate(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadAddressOfReference(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadReference(System.Reflection.Emit.ILGenerator gen) { } - public override void StoreReference(System.Reflection.Emit.ILGenerator gen) { } - } - public class MethodInvocationExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - protected readonly Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args; - protected readonly System.Reflection.MethodInfo method; - protected readonly Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference owner; - public MethodInvocationExpression(System.Reflection.MethodInfo method, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args) { } - public MethodInvocationExpression(Castle.DynamicProxy.Generators.Emitters.MethodEmitter method, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args) { } - public MethodInvocationExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference owner, Castle.DynamicProxy.Generators.Emitters.MethodEmitter method, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args) { } - public MethodInvocationExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference owner, System.Reflection.MethodInfo method, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args) { } - public bool VirtualCall { get; set; } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class MethodTokenExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public MethodTokenExpression(System.Reflection.MethodInfo method) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class MultiStatementExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public MultiStatementExpression() { } - public void AddExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression expression) { } - public void AddStatement(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement statement) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class NewArrayExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public NewArrayExpression(int size, System.Type arrayType) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class NewInstanceExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public NewInstanceExpression(System.Reflection.ConstructorInfo constructor, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args) { } - public NewInstanceExpression(System.Type target, System.Type[] constructor_args, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class NopStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public NopStatement() { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class NullCoalescingOperatorExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public NullCoalescingOperatorExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression expression, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression @default) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class NullExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public static readonly Castle.DynamicProxy.Generators.Emitters.SimpleAST.NullExpression Instance; - protected NullExpression() { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public abstract class Reference - { - protected Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference owner; - protected Reference() { } - protected Reference(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference owner) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference OwnerReference { get; set; } - public virtual void Generate(System.Reflection.Emit.ILGenerator gen) { } - public abstract void LoadAddressOfReference(System.Reflection.Emit.ILGenerator gen); - public abstract void LoadReference(System.Reflection.Emit.ILGenerator gen); - public abstract void StoreReference(System.Reflection.Emit.ILGenerator gen); - public virtual Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression ToAddressOfExpression() { } - public virtual Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression ToExpression() { } - } - public class ReferenceExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public ReferenceExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference reference) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class ReferencesToObjectArrayExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public ReferencesToObjectArrayExpression(params Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference[] args) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class ReturnStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public ReturnStatement() { } - public ReturnStatement(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference reference) { } - public ReturnStatement(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression expression) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("this")] - public class SelfReference : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference - { - public static readonly Castle.DynamicProxy.Generators.Emitters.SimpleAST.SelfReference Self; - protected SelfReference() { } - public override void LoadAddressOfReference(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadReference(System.Reflection.Emit.ILGenerator gen) { } - public override void StoreReference(System.Reflection.Emit.ILGenerator gen) { } - } - public abstract class Statement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.IILEmitter - { - protected Statement() { } - public abstract void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen); - } - public class ThrowStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public ThrowStatement(System.Type exceptionType, string errorMessage) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class TryStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public TryStatement() { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public abstract class TypeReference : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference - { - protected TypeReference(System.Type argumentType) { } - protected TypeReference(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference owner, System.Type type) { } - public System.Type Type { get; } - } - public class TypeTokenExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public TypeTokenExpression(System.Type type) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } -} -namespace Castle.DynamicProxy.Internal -{ - public class static AttributeUtil - { - public static Castle.DynamicProxy.CustomAttributeInfo CreateInfo(System.Reflection.CustomAttributeData attribute) { } - public static Castle.DynamicProxy.CustomAttributeInfo CreateInfo() - where TAttribute : System.Attribute, new () { } - public static Castle.DynamicProxy.CustomAttributeInfo CreateInfo(System.Type attribute, object[] constructorArguments) { } - public static System.Collections.Generic.IEnumerable GetNonInheritableAttributes(this System.Reflection.MemberInfo member) { } - public static System.Collections.Generic.IEnumerable GetNonInheritableAttributes(this System.Reflection.ParameterInfo parameter) { } - } - public abstract class CompositionInvocation : Castle.DynamicProxy.AbstractInvocation - { - protected object target; - protected CompositionInvocation(object target, object proxy, Castle.DynamicProxy.IInterceptor[] interceptors, System.Reflection.MethodInfo proxiedMethod, object[] arguments) { } - public override object InvocationTarget { get; } - public override System.Reflection.MethodInfo MethodInvocationTarget { get; } - public override System.Type TargetType { get; } - protected void EnsureValidProxyTarget(object newTarget) { } - protected void EnsureValidTarget() { } - } - public abstract class InheritanceInvocation : Castle.DynamicProxy.AbstractInvocation - { - protected InheritanceInvocation(System.Type targetType, object proxy, Castle.DynamicProxy.IInterceptor[] interceptors, System.Reflection.MethodInfo proxiedMethod, object[] arguments) { } - public override object InvocationTarget { get; } - public override System.Reflection.MethodInfo MethodInvocationTarget { get; } - public override System.Type TargetType { get; } - protected virtual void InvokeMethodOnTarget() { } - } - public class static InternalsUtil - { - [System.ObsoleteAttribute("Use ProxyUtil.IsAccessible instead, which performs a more accurate accessibility " + - "check.")] - public static bool IsAccessible(this System.Reflection.MethodBase method) { } - [System.ObsoleteAttribute()] - public static bool IsInternal(this System.Reflection.MethodBase method) { } - [System.ObsoleteAttribute()] - public static bool IsInternalToDynamicProxy(this System.Reflection.Assembly asm) { } - } - public class static InvocationHelper - { - public static System.Reflection.MethodInfo GetMethodOnObject(object target, System.Reflection.MethodInfo proxiedMethod) { } - public static System.Reflection.MethodInfo GetMethodOnType(System.Type type, System.Reflection.MethodInfo proxiedMethod) { } - } - public class static TypeUtil - { - public static System.Type[] AsTypeArray(this System.Reflection.Emit.GenericTypeParameterBuilder[] typeInfos) { } - public static System.Reflection.FieldInfo[] GetAllFields(this System.Type type) { } - public static System.Type[] GetAllInterfaces(params System.Type[] types) { } - public static System.Type[] GetAllInterfaces(this System.Type type) { } - public static System.Type GetClosedParameterType(this Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter type, System.Type parameter) { } - public static System.Type GetTypeOrNull(object target) { } - public static bool IsFinalizer(this System.Reflection.MethodInfo methodInfo) { } - public static bool IsGetType(this System.Reflection.MethodInfo methodInfo) { } - public static bool IsMemberwiseClone(this System.Reflection.MethodInfo methodInfo) { } - public static bool IsNullableType(this System.Type type) { } - public static void SetStaticField(this System.Type type, string fieldName, System.Reflection.BindingFlags additionalFlags, object value) { } - public static System.Reflection.MemberInfo[] Sort(System.Reflection.MemberInfo[] members) { } - } -} -namespace Castle.DynamicProxy.Serialization -{ - [System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.All, AllowMultiple=false)] - [System.CLSCompliantAttribute(false)] - public class CacheMappingsAttribute : System.Attribute - { - public CacheMappingsAttribute(byte[] serializedCacheMappings) { } - public byte[] SerializedCacheMappings { get; } - [System.ObsoleteAttribute("Exposes a component that is intended for internal use only.")] - public static void ApplyTo(System.Reflection.Emit.AssemblyBuilder assemblyBuilder, System.Collections.Generic.Dictionary mappings) { } - [System.ObsoleteAttribute("Exposes a component that is intended for internal use only.")] - public System.Collections.Generic.Dictionary GetDeserializedMappings() { } - } - public class ProxyObjectReference : System.Runtime.Serialization.IDeserializationCallback, System.Runtime.Serialization.IObjectReference, System.Runtime.Serialization.ISerializable - { - [System.Security.SecurityCriticalAttribute()] - protected ProxyObjectReference(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - public static Castle.DynamicProxy.ModuleScope ModuleScope { get; } - [System.Security.SecurityCriticalAttribute()] - public void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - [System.Security.SecurityCriticalAttribute()] - public object GetRealObject(System.Runtime.Serialization.StreamingContext context) { } - protected void InvokeCallback(object target) { } - [System.Security.SecuritySafeCriticalAttribute()] - public void OnDeserialization(object sender) { } - [System.Security.SecurityCriticalAttribute()] - public object RecreateClassProxy() { } - [System.Security.SecurityCriticalAttribute()] - public object RecreateInterfaceProxy(string generatorType) { } - [System.Security.SecurityCriticalAttribute()] - protected virtual object RecreateProxy() { } - public static void ResetScope() { } - public static void SetScope(Castle.DynamicProxy.ModuleScope scope) { } - } -} -namespace Castle.DynamicProxy.Tokens -{ - public class static DelegateMethods - { - public static readonly System.Reflection.MethodInfo CreateDelegate; - } - public class static FormatterServicesMethods - { - public static readonly System.Reflection.MethodInfo GetObjectData; - public static readonly System.Reflection.MethodInfo GetSerializableMembers; - } - public class static InterceptorSelectorMethods - { - public static readonly System.Reflection.MethodInfo SelectInterceptors; - } - public class static InvocationMethods - { - public static readonly System.Reflection.ConstructorInfo CompositionInvocationConstructor; - public static readonly System.Reflection.MethodInfo CompositionInvocationEnsureValidTarget; - public static readonly System.Reflection.FieldInfo CompositionInvocationTarget; - public static readonly System.Reflection.MethodInfo EnsureValidTarget; - public static readonly System.Reflection.MethodInfo GetArgumentValue; - public static readonly System.Reflection.MethodInfo GetArguments; - public static readonly System.Reflection.MethodInfo GetReturnValue; - public static readonly System.Reflection.ConstructorInfo InheritanceInvocationConstructor; - public static readonly System.Reflection.ConstructorInfo InheritanceInvocationConstructorWithSelector; - public static readonly System.Reflection.MethodInfo Proceed; - public static readonly System.Reflection.FieldInfo ProxyObject; - public static readonly System.Reflection.MethodInfo SetArgumentValue; - public static readonly System.Reflection.MethodInfo SetGenericMethodArguments; - public static readonly System.Reflection.MethodInfo SetReturnValue; - public static readonly System.Reflection.FieldInfo Target; - public static readonly System.Reflection.MethodInfo ThrowOnNoTarget; - } - public class static MethodBaseMethods - { - public static readonly System.Reflection.MethodInfo GetMethodFromHandle; - } - public class static SerializationInfoMethods - { - public static readonly System.Reflection.MethodInfo AddValue_Bool; - public static readonly System.Reflection.MethodInfo AddValue_Int32; - public static readonly System.Reflection.MethodInfo AddValue_Object; - public static readonly System.Reflection.MethodInfo GetValue; - public static readonly System.Reflection.MethodInfo SetType; - } - public class static TypeMethods - { - public static readonly System.Reflection.MethodInfo GetTypeFromHandle; - public static readonly System.Reflection.MethodInfo StaticGetType; - } - public class static TypeUtilMethods - { - public static readonly System.Reflection.MethodInfo GetTypeOrNull; - public static readonly System.Reflection.MethodInfo Sort; - } -} \ No newline at end of file diff --git a/ref/Castle.Services.Logging.NLogIntegration-net40.cs b/ref/Castle.Services.Logging.NLogIntegration-net40.cs deleted file mode 100644 index 9e28260e17..0000000000 --- a/ref/Castle.Services.Logging.NLogIntegration-net40.cs +++ /dev/null @@ -1,114 +0,0 @@ -[assembly: System.CLSCompliantAttribute(true)] -[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0", FrameworkDisplayName=".NET Framework 4")] -[assembly: System.Security.SecurityRulesAttribute(System.Security.SecurityRuleSet.Level2)] -namespace Castle.Services.Logging.NLogIntegration -{ - public class ExtendedNLogFactory : Castle.Core.Logging.AbstractExtendedLoggerFactory - { - public ExtendedNLogFactory() { } - public ExtendedNLogFactory(string configFile) { } - public ExtendedNLogFactory(bool configuredExternally) { } - public ExtendedNLogFactory(NLog.Config.LoggingConfiguration loggingConfiguration) { } - public override Castle.Core.Logging.IExtendedLogger Create(string name) { } - public override Castle.Core.Logging.IExtendedLogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } - } - public class ExtendedNLogLogger : Castle.Services.Logging.NLogIntegration.NLogLogger, Castle.Core.Logging.IExtendedLogger, Castle.Core.Logging.ILogger - { - public ExtendedNLogLogger(NLog.Logger logger, Castle.Services.Logging.NLogIntegration.ExtendedNLogFactory factory) { } - protected Castle.Services.Logging.NLogIntegration.ExtendedNLogFactory Factory { get; set; } - public Castle.Core.Logging.IContextProperties GlobalProperties { get; } - public Castle.Core.Logging.IContextProperties ThreadProperties { get; } - public Castle.Core.Logging.IContextStacks ThreadStacks { get; } - public override Castle.Core.Logging.ILogger CreateChildLogger(string name) { } - public Castle.Core.Logging.IExtendedLogger CreateExtendedChildLogger(string name) { } - } - public class GlobalContextProperties : Castle.Core.Logging.IContextProperties - { - public GlobalContextProperties() { } - public object this[string key] { get; set; } - } - public class NLogFactory : Castle.Core.Logging.AbstractLoggerFactory - { - public NLogFactory() { } - public NLogFactory(bool configuredExternally) { } - public NLogFactory(string configFile) { } - public NLogFactory(NLog.Config.LoggingConfiguration loggingConfiguration) { } - public override Castle.Core.Logging.ILogger Create(string name) { } - public override Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } - } - public class NLogLogger : Castle.Core.Logging.ILogger - { - public NLogLogger(NLog.Logger logger, Castle.Services.Logging.NLogIntegration.NLogFactory factory) { } - protected Castle.Services.Logging.NLogIntegration.NLogFactory Factory { get; set; } - public bool IsDebugEnabled { get; } - public bool IsErrorEnabled { get; } - public bool IsFatalEnabled { get; } - public bool IsInfoEnabled { get; } - public bool IsTraceEnabled { get; } - public bool IsWarnEnabled { get; } - protected NLog.Logger Logger { get; set; } - public virtual Castle.Core.Logging.ILogger CreateChildLogger(string name) { } - public void Debug(string message) { } - public void Debug(System.Func messageFactory) { } - public void Debug(string message, System.Exception exception) { } - public void DebugFormat(string format, params object[] args) { } - public void DebugFormat(System.Exception exception, string format, params object[] args) { } - public void DebugFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void DebugFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Error(string message) { } - public void Error(System.Func messageFactory) { } - public void Error(string message, System.Exception exception) { } - public void ErrorFormat(string format, params object[] args) { } - public void ErrorFormat(System.Exception exception, string format, params object[] args) { } - public void ErrorFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void ErrorFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Fatal(string message) { } - public void Fatal(System.Func messageFactory) { } - public void Fatal(string message, System.Exception exception) { } - public void FatalFormat(string format, params object[] args) { } - public void FatalFormat(System.Exception exception, string format, params object[] args) { } - public void FatalFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void FatalFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Info(string message) { } - public void Info(System.Func messageFactory) { } - public void Info(string message, System.Exception exception) { } - public void InfoFormat(string format, params object[] args) { } - public void InfoFormat(System.Exception exception, string format, params object[] args) { } - public void InfoFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void InfoFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public override string ToString() { } - public void Trace(string message) { } - public void Trace(System.Func messageFactory) { } - public void Trace(string message, System.Exception exception) { } - public void TraceFormat(string format, params object[] args) { } - public void TraceFormat(System.Exception exception, string format, params object[] args) { } - public void TraceFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void TraceFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Warn(string message) { } - public void Warn(System.Func messageFactory) { } - public void Warn(string message, System.Exception exception) { } - public void WarnFormat(string format, params object[] args) { } - public void WarnFormat(System.Exception exception, string format, params object[] args) { } - public void WarnFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void WarnFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - } - public class ThreadContextProperties : Castle.Core.Logging.IContextProperties - { - public ThreadContextProperties() { } - public object this[string key] { get; set; } - } - public class ThreadContextStack : Castle.Core.Logging.IContextStack - { - public ThreadContextStack() { } - public int Count { get; } - public void Clear() { } - public string Pop() { } - public System.IDisposable Push(string message) { } - } - public class ThreadContextStacks : Castle.Core.Logging.IContextStacks - { - public ThreadContextStacks() { } - public Castle.Core.Logging.IContextStack this[string key] { get; } - } -} \ No newline at end of file diff --git a/ref/Castle.Services.Logging.log4netIntegration-net40.cs b/ref/Castle.Services.Logging.log4netIntegration-net40.cs deleted file mode 100644 index 79b31f2a85..0000000000 --- a/ref/Castle.Services.Logging.log4netIntegration-net40.cs +++ /dev/null @@ -1,115 +0,0 @@ -[assembly: System.CLSCompliantAttribute(true)] -[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0", FrameworkDisplayName=".NET Framework 4")] -[assembly: System.Security.SecurityRulesAttribute(System.Security.SecurityRuleSet.Level2)] -namespace Castle.Services.Logging.Log4netIntegration -{ - public class ExtendedLog4netFactory : Castle.Core.Logging.AbstractExtendedLoggerFactory - { - public ExtendedLog4netFactory() { } - public ExtendedLog4netFactory(bool configuredExternally) { } - public ExtendedLog4netFactory(string configFile) { } - public ExtendedLog4netFactory(System.IO.Stream config) { } - public override Castle.Core.Logging.IExtendedLogger Create(string name) { } - public override Castle.Core.Logging.IExtendedLogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } - } - public class ExtendedLog4netLogger : Castle.Services.Logging.Log4netIntegration.Log4netLogger, Castle.Core.Logging.IExtendedLogger, Castle.Core.Logging.ILogger - { - public ExtendedLog4netLogger(log4net.ILog log, Castle.Services.Logging.Log4netIntegration.ExtendedLog4netFactory factory) { } - public ExtendedLog4netLogger(log4net.Core.ILogger logger, Castle.Services.Logging.Log4netIntegration.ExtendedLog4netFactory factory) { } - protected Castle.Services.Logging.Log4netIntegration.ExtendedLog4netFactory Factory { get; set; } - public Castle.Core.Logging.IContextProperties GlobalProperties { get; } - public Castle.Core.Logging.IContextProperties ThreadProperties { get; } - public Castle.Core.Logging.IContextStacks ThreadStacks { get; } - public override Castle.Core.Logging.ILogger CreateChildLogger(string name) { } - public Castle.Core.Logging.IExtendedLogger CreateExtendedChildLogger(string name) { } - } - public class GlobalContextProperties : Castle.Core.Logging.IContextProperties - { - public GlobalContextProperties() { } - public object this[string key] { get; set; } - } - public class Log4netFactory : Castle.Core.Logging.AbstractLoggerFactory - { - public Log4netFactory() { } - public Log4netFactory(string configFile) { } - public Log4netFactory(bool configuredExternally) { } - public Log4netFactory(System.IO.Stream config) { } - public override Castle.Core.Logging.ILogger Create(string name) { } - public override Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } - } - public class Log4netLogger : System.MarshalByRefObject, Castle.Core.Logging.ILogger - { - public Log4netLogger(log4net.Core.ILogger logger, Castle.Services.Logging.Log4netIntegration.Log4netFactory factory) { } - protected Castle.Services.Logging.Log4netIntegration.Log4netFactory Factory { get; set; } - public bool IsDebugEnabled { get; } - public bool IsErrorEnabled { get; } - public bool IsFatalEnabled { get; } - public bool IsInfoEnabled { get; } - public bool IsTraceEnabled { get; } - public bool IsWarnEnabled { get; } - protected log4net.Core.ILogger Logger { get; set; } - public virtual Castle.Core.Logging.ILogger CreateChildLogger(string name) { } - public void Debug(string message) { } - public void Debug(System.Func messageFactory) { } - public void Debug(string message, System.Exception exception) { } - public void DebugFormat(string format, params object[] args) { } - public void DebugFormat(System.Exception exception, string format, params object[] args) { } - public void DebugFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void DebugFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Error(string message) { } - public void Error(System.Func messageFactory) { } - public void Error(string message, System.Exception exception) { } - public void ErrorFormat(string format, params object[] args) { } - public void ErrorFormat(System.Exception exception, string format, params object[] args) { } - public void ErrorFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void ErrorFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Fatal(string message) { } - public void Fatal(System.Func messageFactory) { } - public void Fatal(string message, System.Exception exception) { } - public void FatalFormat(string format, params object[] args) { } - public void FatalFormat(System.Exception exception, string format, params object[] args) { } - public void FatalFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void FatalFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Info(string message) { } - public void Info(System.Func messageFactory) { } - public void Info(string message, System.Exception exception) { } - public void InfoFormat(string format, params object[] args) { } - public void InfoFormat(System.Exception exception, string format, params object[] args) { } - public void InfoFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void InfoFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public override string ToString() { } - public void Trace(string message) { } - public void Trace(System.Func messageFactory) { } - public void Trace(string message, System.Exception exception) { } - public void TraceFormat(string format, params object[] args) { } - public void TraceFormat(System.Exception exception, string format, params object[] args) { } - public void TraceFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void TraceFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Warn(string message) { } - public void Warn(System.Func messageFactory) { } - public void Warn(string message, System.Exception exception) { } - public void WarnFormat(string format, params object[] args) { } - public void WarnFormat(System.Exception exception, string format, params object[] args) { } - public void WarnFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void WarnFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - } - public class ThreadContextProperties : Castle.Core.Logging.IContextProperties - { - public ThreadContextProperties() { } - public object this[string key] { get; set; } - } - public class ThreadContextStack : Castle.Core.Logging.IContextStack - { - public ThreadContextStack(log4net.Util.ThreadContextStack log4netStack) { } - public int Count { get; } - public void Clear() { } - public string Pop() { } - public System.IDisposable Push(string message) { } - } - public class ThreadContextStacks : Castle.Core.Logging.IContextStacks - { - public ThreadContextStacks() { } - public Castle.Core.Logging.IContextStack this[string key] { get; } - } -} \ No newline at end of file From 371cbe5e501414169b762745bb9aa77f5c9ba4c2 Mon Sep 17 00:00:00 2001 From: stakx Date: Fri, 1 May 2020 19:58:26 +0200 Subject: [PATCH 04/16] Remove `netstandard1.3` target framework --- buildscripts/common.props | 11 +---------- src/Castle.Core/Castle.Core.csproj | 4 ++-- .../Castle.Services.Logging.NLogIntegration.csproj | 4 ++-- .../Castle.Services.Logging.SerilogIntegration.csproj | 4 ++-- .../Castle.Services.Logging.log4netIntegration.csproj | 4 ++-- 5 files changed, 9 insertions(+), 18 deletions(-) diff --git a/buildscripts/common.props b/buildscripts/common.props index bba036b927..334680f45c 100644 --- a/buildscripts/common.props +++ b/buildscripts/common.props @@ -43,8 +43,7 @@ DEBUG - TRACE;FEATURE_NETCORE_REFLECTION_API;FEATURE_TEST_SERILOGINTEGRATION - $(NetStandard13Constants);FEATURE_CUSTOMMODIFIERS + TRACE;FEATURE_NETCORE_REFLECTION_API;FEATURE_TEST_SERILOGINTEGRATION;FEATURE_CUSTOMMODIFIERS TRACE;FEATURE_BINDINGLIST;FEATURE_DICTIONARYADAPTER_XML;FEATURE_CUSTOMMODIFIERS;FEATURE_GAC;FEATURE_IDATAERRORINFO;FEATURE_ISUPPORTINITIALIZE;FEATURE_LISTSORT;FEATURE_SMTP;FEATURE_TARGETEXCEPTION;FEATURE_TEST_DATASET;FEATURE_TEST_SERILOGINTEGRATION;FEATURE_NETSTANDARD2_COMPATIBILITY TRACE;FEATURE_BINDINGLIST;FEATURE_DICTIONARYADAPTER_XML;FEATURE_CUSTOMMODIFIERS;FEATURE_GAC;FEATURE_IDATAERRORINFO;FEATURE_ISUPPORTINITIALIZE;FEATURE_LISTSORT;FEATURE_SMTP;FEATURE_TARGETEXCEPTION;FEATURE_TEST_DATASET;FEATURE_TEST_SERILOGINTEGRATION;FEATURE_NETSTANDARD2_COMPATIBILITY TRACE;FEATURE_APPDOMAIN;FEATURE_ASSEMBLYBUILDER_SAVE;FEATURE_BINDINGLIST;FEATURE_DICTIONARYADAPTER_XML;FEATURE_CUSTOMMODIFIERS;FEATURE_EVENTLOG;FEATURE_GAC;FEATURE_GET_REFERENCED_ASSEMBLIES;FEATURE_IDATAERRORINFO;FEATURE_ISUPPORTINITIALIZE;FEATURE_LISTSORT;FEATURE_REMOTING;FEATURE_SECURITY_PERMISSIONS;FEATURE_SERIALIZATION;FEATURE_SMTP;FEATURE_SYSTEM_CONFIGURATION;FEATURE_TARGETEXCEPTION;FEATURE_TEST_COM;FEATURE_TEST_DATASET;FEATURE_TEST_SERILOGINTEGRATION @@ -68,14 +67,6 @@ $(DesktopClrConstants);DOTNET45 - - $(DiagnosticsConstants);$(NetStandard13Constants) - - - - $(NetStandard13Constants) - - $(DiagnosticsConstants);$(NetStandard15Constants) diff --git a/src/Castle.Core/Castle.Core.csproj b/src/Castle.Core/Castle.Core.csproj index be5b6c2250..893786ce51 100644 --- a/src/Castle.Core/Castle.Core.csproj +++ b/src/Castle.Core/Castle.Core.csproj @@ -3,7 +3,7 @@ - net45;netstandard1.3;netstandard1.5;netstandard2.0;netstandard2.1 + net45;netstandard1.5;netstandard2.0;netstandard2.1 @@ -32,7 +32,7 @@ - + diff --git a/src/Castle.Services.Logging.NLogIntegration/Castle.Services.Logging.NLogIntegration.csproj b/src/Castle.Services.Logging.NLogIntegration/Castle.Services.Logging.NLogIntegration.csproj index 95fd829138..c135a3ab0a 100644 --- a/src/Castle.Services.Logging.NLogIntegration/Castle.Services.Logging.NLogIntegration.csproj +++ b/src/Castle.Services.Logging.NLogIntegration/Castle.Services.Logging.NLogIntegration.csproj @@ -3,7 +3,7 @@ - net45;netstandard1.3 + net45;netstandard1.5 @@ -20,7 +20,7 @@ castle logging NLog - + diff --git a/src/Castle.Services.Logging.SerilogIntegration/Castle.Services.Logging.SerilogIntegration.csproj b/src/Castle.Services.Logging.SerilogIntegration/Castle.Services.Logging.SerilogIntegration.csproj index 67f13a95e2..4c611278a2 100644 --- a/src/Castle.Services.Logging.SerilogIntegration/Castle.Services.Logging.SerilogIntegration.csproj +++ b/src/Castle.Services.Logging.SerilogIntegration/Castle.Services.Logging.SerilogIntegration.csproj @@ -3,7 +3,7 @@ - net45;netstandard1.3 + net45;netstandard1.5 @@ -20,7 +20,7 @@ castle logging serilog - + diff --git a/src/Castle.Services.Logging.log4netIntegration/Castle.Services.Logging.log4netIntegration.csproj b/src/Castle.Services.Logging.log4netIntegration/Castle.Services.Logging.log4netIntegration.csproj index ec0e6a1b7d..49077fe9fa 100644 --- a/src/Castle.Services.Logging.log4netIntegration/Castle.Services.Logging.log4netIntegration.csproj +++ b/src/Castle.Services.Logging.log4netIntegration/Castle.Services.Logging.log4netIntegration.csproj @@ -3,7 +3,7 @@ - net45;netstandard1.3 + net45;netstandard1.5 @@ -20,7 +20,7 @@ castle logging log4net - + From 29a2f0d586c3f7c19552872fd28386eef0064cc0 Mon Sep 17 00:00:00 2001 From: stakx Date: Fri, 1 May 2020 20:00:56 +0200 Subject: [PATCH 05/16] Remove redundant `FEATURE_CUSTOMMODIFIERS` symbol --- README.md | 2 -- buildscripts/common.props | 8 ++++---- .../DynamicProxy.Tests/CustomModifiersTestCase.cs | 2 +- .../DynamicProxy.Tests/RhinoMocksTestCase.cs | 7 +------ .../ValueTypeReferenceSemanticsTestCase.cs | 8 -------- .../DynamicProxy/Generators/Emitters/MethodEmitter.cs | 7 ------- src/Castle.Core/DynamicProxy/Generators/GeneratorUtil.cs | 2 -- 7 files changed, 6 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index 4503590aa0..7a7049da0a 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,6 @@ Symbol | NET45 | .NET Core `FEATURE_ASSEMBLYBUILDER_SAVE` | :white_check_mark: | :no_entry_sign: `FEATURE_BINDINGLIST` | :white_check_mark: | :no_entry_sign: `FEATURE_DICTIONARYADAPTER_XML` | :white_check_mark: | :no_entry_sign: -`FEATURE_CUSTOMMODIFIERS` | :white_check_mark: | :no_entry_sign: `FEATURE_EVENTLOG` | :white_check_mark: | :no_entry_sign: `FEATURE_GAC` | :white_check_mark: | :no_entry_sign: `FEATURE_GET_REFERENCED_ASSEMBLIES` | :white_check_mark: | :no_entry_sign: @@ -91,7 +90,6 @@ Symbol | NET45 | .NET Core * `FEATURE_ASSEMBLYBUILDER_SAVE` - enabled support for saving the dynamically generated proxy assembly. * `FEATURE_BINDINGLIST` - enables support features that make use of System.ComponentModel.BindingList. * `FEATURE_DICTIONARYADAPTER_XML` - enable DictionaryAdapter Xml features. -* `FEATURE_CUSTOMMODIFIERS` - enables reading and emitting optional and required custom modifiers defined on parameters including return parameters. It seems like a defect in corefx not to expose these methods because they are still implemented. * `FEATURE_EVENTLOG` - provides a diagnostics logger using the Windows Event Log. * `FEATURE_GAC` - enables support for obtaining assemblies using an assembly long form name. * `FEATURE_GET_REFERENCED_ASSEMBLIES` - enables code that takes advantage of System.Reflection.Assembly.GetReferencedAssemblies(). diff --git a/buildscripts/common.props b/buildscripts/common.props index 334680f45c..cf2c4378d9 100644 --- a/buildscripts/common.props +++ b/buildscripts/common.props @@ -43,10 +43,10 @@ DEBUG - TRACE;FEATURE_NETCORE_REFLECTION_API;FEATURE_TEST_SERILOGINTEGRATION;FEATURE_CUSTOMMODIFIERS - TRACE;FEATURE_BINDINGLIST;FEATURE_DICTIONARYADAPTER_XML;FEATURE_CUSTOMMODIFIERS;FEATURE_GAC;FEATURE_IDATAERRORINFO;FEATURE_ISUPPORTINITIALIZE;FEATURE_LISTSORT;FEATURE_SMTP;FEATURE_TARGETEXCEPTION;FEATURE_TEST_DATASET;FEATURE_TEST_SERILOGINTEGRATION;FEATURE_NETSTANDARD2_COMPATIBILITY - TRACE;FEATURE_BINDINGLIST;FEATURE_DICTIONARYADAPTER_XML;FEATURE_CUSTOMMODIFIERS;FEATURE_GAC;FEATURE_IDATAERRORINFO;FEATURE_ISUPPORTINITIALIZE;FEATURE_LISTSORT;FEATURE_SMTP;FEATURE_TARGETEXCEPTION;FEATURE_TEST_DATASET;FEATURE_TEST_SERILOGINTEGRATION;FEATURE_NETSTANDARD2_COMPATIBILITY - TRACE;FEATURE_APPDOMAIN;FEATURE_ASSEMBLYBUILDER_SAVE;FEATURE_BINDINGLIST;FEATURE_DICTIONARYADAPTER_XML;FEATURE_CUSTOMMODIFIERS;FEATURE_EVENTLOG;FEATURE_GAC;FEATURE_GET_REFERENCED_ASSEMBLIES;FEATURE_IDATAERRORINFO;FEATURE_ISUPPORTINITIALIZE;FEATURE_LISTSORT;FEATURE_REMOTING;FEATURE_SECURITY_PERMISSIONS;FEATURE_SERIALIZATION;FEATURE_SMTP;FEATURE_SYSTEM_CONFIGURATION;FEATURE_TARGETEXCEPTION;FEATURE_TEST_COM;FEATURE_TEST_DATASET;FEATURE_TEST_SERILOGINTEGRATION + TRACE;FEATURE_NETCORE_REFLECTION_API;FEATURE_TEST_SERILOGINTEGRATION + TRACE;FEATURE_BINDINGLIST;FEATURE_DICTIONARYADAPTER_XML;FEATURE_GAC;FEATURE_IDATAERRORINFO;FEATURE_ISUPPORTINITIALIZE;FEATURE_LISTSORT;FEATURE_SMTP;FEATURE_TARGETEXCEPTION;FEATURE_TEST_DATASET;FEATURE_TEST_SERILOGINTEGRATION;FEATURE_NETSTANDARD2_COMPATIBILITY + TRACE;FEATURE_BINDINGLIST;FEATURE_DICTIONARYADAPTER_XML;FEATURE_GAC;FEATURE_IDATAERRORINFO;FEATURE_ISUPPORTINITIALIZE;FEATURE_LISTSORT;FEATURE_SMTP;FEATURE_TARGETEXCEPTION;FEATURE_TEST_DATASET;FEATURE_TEST_SERILOGINTEGRATION;FEATURE_NETSTANDARD2_COMPATIBILITY + TRACE;FEATURE_APPDOMAIN;FEATURE_ASSEMBLYBUILDER_SAVE;FEATURE_BINDINGLIST;FEATURE_DICTIONARYADAPTER_XML;FEATURE_EVENTLOG;FEATURE_GAC;FEATURE_GET_REFERENCED_ASSEMBLIES;FEATURE_IDATAERRORINFO;FEATURE_ISUPPORTINITIALIZE;FEATURE_LISTSORT;FEATURE_REMOTING;FEATURE_SECURITY_PERMISSIONS;FEATURE_SERIALIZATION;FEATURE_SMTP;FEATURE_SYSTEM_CONFIGURATION;FEATURE_TARGETEXCEPTION;FEATURE_TEST_COM;FEATURE_TEST_DATASET;FEATURE_TEST_SERILOGINTEGRATION $(CommonDesktopClrConstants) $(CommonDesktopClrConstants);FEATURE_TEST_PEVERIFY diff --git a/src/Castle.Core.Tests/DynamicProxy.Tests/CustomModifiersTestCase.cs b/src/Castle.Core.Tests/DynamicProxy.Tests/CustomModifiersTestCase.cs index ad091a5991..3092ceacf9 100644 --- a/src/Castle.Core.Tests/DynamicProxy.Tests/CustomModifiersTestCase.cs +++ b/src/Castle.Core.Tests/DynamicProxy.Tests/CustomModifiersTestCase.cs @@ -11,7 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_CUSTOMMODIFIERS && FEATURE_ASSEMBLYBUILDER_SAVE +#if FEATURE_ASSEMBLYBUILDER_SAVE namespace Castle.DynamicProxy.Tests { diff --git a/src/Castle.Core.Tests/DynamicProxy.Tests/RhinoMocksTestCase.cs b/src/Castle.Core.Tests/DynamicProxy.Tests/RhinoMocksTestCase.cs index e24c94f37d..452aa58b1d 100644 --- a/src/Castle.Core.Tests/DynamicProxy.Tests/RhinoMocksTestCase.cs +++ b/src/Castle.Core.Tests/DynamicProxy.Tests/RhinoMocksTestCase.cs @@ -17,12 +17,9 @@ namespace Castle.DynamicProxy.Tests using System; using System.Collections.Generic; using System.Data; - using System.Runtime.InteropServices; - -#if FEATURE_CUSTOMMODIFIERS using System.Reflection; using System.Runtime.CompilerServices; -#endif + using System.Runtime.InteropServices; using Castle.DynamicProxy.Tests.Interceptors; using Castle.DynamicProxy.Tests.Interfaces; @@ -116,7 +113,6 @@ public void CanProxyDataSet() } #endif -#if FEATURE_CUSTOMMODIFIERS private Type iHaveMethodWithModOptsType; [OneTimeSetUp] @@ -203,7 +199,6 @@ public void CanProxyMethodWithModOpt() var startLiveOnSlotMethod = iHaveMethodWithModOptsType.GetMethod("StartLiveOnSlot"); startLiveOnSlotMethod.Invoke(proxy, new object[] { 4 }); } -#endif [Test] public void CanProxyMethodWithOutIntPtrParameter() diff --git a/src/Castle.Core.Tests/DynamicProxy.Tests/ValueTypeReferenceSemanticsTestCase.cs b/src/Castle.Core.Tests/DynamicProxy.Tests/ValueTypeReferenceSemanticsTestCase.cs index 43d24559b7..5c65ba1c0f 100644 --- a/src/Castle.Core.Tests/DynamicProxy.Tests/ValueTypeReferenceSemanticsTestCase.cs +++ b/src/Castle.Core.Tests/DynamicProxy.Tests/ValueTypeReferenceSemanticsTestCase.cs @@ -32,12 +32,6 @@ public void Can_proxy_method_having_valuetyped_parameter_without_in_modifier() proxy.Method(readOnlyStruct); } -#if FEATURE_CUSTOMMODIFIERS - - // ^^^ - // Because the `in` parameter modifier gets encoded as a modreq, - // tests involving it can only ever succeed on platforms supporting them. - [Test] public void Can_proxy_method_having_valuetyped_parameter_with_in_modifier() { @@ -92,8 +86,6 @@ public void Can_proxy_generic_method_in_generic_type_having_valuetyped_parameter proxy.Method(in readOnlyStruct); } -#endif - public readonly struct ReadOnlyStruct { public ReadOnlyStruct(int value) diff --git a/src/Castle.Core/DynamicProxy/Generators/Emitters/MethodEmitter.cs b/src/Castle.Core/DynamicProxy/Generators/Emitters/MethodEmitter.cs index 299b2b619c..44b210f29f 100644 --- a/src/Castle.Core/DynamicProxy/Generators/Emitters/MethodEmitter.cs +++ b/src/Castle.Core/DynamicProxy/Generators/Emitters/MethodEmitter.cs @@ -319,7 +319,6 @@ private void SetSignature(Type returnType, ParameterInfo returnParameter, Type[] Type[][] parametersRequiredCustomModifiers; Type[][] parametersOptionalCustomModifiers; -#if FEATURE_CUSTOMMODIFIERS returnRequiredCustomModifiers = returnParameter.GetRequiredCustomModifiers(); Array.Reverse(returnRequiredCustomModifiers); @@ -337,12 +336,6 @@ private void SetSignature(Type returnType, ParameterInfo returnParameter, Type[] parametersOptionalCustomModifiers[i] = baseMethodParameters[i].GetOptionalCustomModifiers(); Array.Reverse(parametersOptionalCustomModifiers[i]); } -#else - returnRequiredCustomModifiers = null; - returnOptionalCustomModifiers = null; - parametersRequiredCustomModifiers = null; - parametersOptionalCustomModifiers = null; -#endif builder.SetSignature( returnType, diff --git a/src/Castle.Core/DynamicProxy/Generators/GeneratorUtil.cs b/src/Castle.Core/DynamicProxy/Generators/GeneratorUtil.cs index c96bb69357..003378b5c9 100644 --- a/src/Castle.Core/DynamicProxy/Generators/GeneratorUtil.cs +++ b/src/Castle.Core/DynamicProxy/Generators/GeneratorUtil.cs @@ -81,7 +81,6 @@ bool IsReadOnly(ParameterInfo parameter) return false; } -#if FEATURE_CUSTOMMODIFIERS // This check allows to make the detection logic more robust on the platforms which support custom modifiers. // The robustness is achieved by the fact, that usually the `IsReadOnlyAttribute` emitted by the compiler is internal to the assembly. // Therefore, if clients use Reflection.Emit to create "a copy" of the methods with read-only members, they cannot re-use the existing attribute. @@ -94,7 +93,6 @@ bool IsReadOnly(ParameterInfo parameter) { return true; } -#endif // The comparison by name is intentional; any assembly could define that attribute. // See explanation in comment above. From 599aaf2dc9aeae758edeaca6e189518c4f86f2fb Mon Sep 17 00:00:00 2001 From: stakx Date: Fri, 1 May 2020 20:04:54 +0200 Subject: [PATCH 06/16] Update `ref/` contracts --- ref/Castle.Core-netstandard1.3.cs | 2705 ----------------- ...Logging.NLogIntegration-netstandard1.5.cs} | 2 +- ...ging.SerilogIntegration-netstandard1.5.cs} | 2 +- ...ging.log4netIntegration-netstandard1.5.cs} | 2 +- 4 files changed, 3 insertions(+), 2708 deletions(-) delete mode 100644 ref/Castle.Core-netstandard1.3.cs rename ref/{Castle.Services.Logging.NLogIntegration-netstandard1.3.cs => Castle.Services.Logging.NLogIntegration-netstandard1.5.cs} (99%) rename ref/{Castle.Services.Logging.SerilogIntegration-netstandard1.3.cs => Castle.Services.Logging.SerilogIntegration-netstandard1.5.cs} (98%) rename ref/{Castle.Services.Logging.log4netIntegration-netstandard1.3.cs => Castle.Services.Logging.log4netIntegration-netstandard1.5.cs} (99%) diff --git a/ref/Castle.Core-netstandard1.3.cs b/ref/Castle.Core-netstandard1.3.cs deleted file mode 100644 index 599edd916a..0000000000 --- a/ref/Castle.Core-netstandard1.3.cs +++ /dev/null @@ -1,2705 +0,0 @@ -[assembly: System.CLSCompliantAttribute(true)] -[assembly: System.Runtime.CompilerServices.InternalsVisibleToAttribute(@"Castle.Core.Tests, PublicKey=002400000480000094000000060200000024000052534131000400000100010077f5e87030dadccce6902c6adab7a987bd69cb5819991531f560785eacfc89b6fcddf6bb2a00743a7194e454c0273447fc6eec36474ba8e5a3823147d214298e4f9a631b1afee1a51ffeae4672d498f14b000e3d321453cdd8ac064de7e1cf4d222b7e81f54d4fd46725370d702a05b48738cc29d09228f1aa722ae1a9ca02fb")] -[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v1.3", FrameworkDisplayName="")] -namespace Castle.Components.DictionaryAdapter -{ - public abstract class AbstractDictionaryAdapter : System.Collections.ICollection, System.Collections.IDictionary, System.Collections.IEnumerable - { - protected AbstractDictionaryAdapter() { } - public int Count { get; } - public bool IsFixedSize { get; } - public abstract bool IsReadOnly { get; } - public virtual bool IsSynchronized { get; } - public abstract object this[object key] { get; set; } - public System.Collections.ICollection Keys { get; } - public virtual object SyncRoot { get; } - public System.Collections.ICollection Values { get; } - public void Add(object key, object value) { } - public void Clear() { } - public abstract bool Contains(object key); - public void CopyTo(System.Array array, int index) { } - public System.Collections.IDictionaryEnumerator GetEnumerator() { } - public void Remove(object key) { } - } - public abstract class AbstractDictionaryAdapterVisitor : Castle.Components.DictionaryAdapter.IDictionaryAdapterVisitor - { - protected AbstractDictionaryAdapterVisitor() { } - protected AbstractDictionaryAdapterVisitor(Castle.Components.DictionaryAdapter.AbstractDictionaryAdapterVisitor parent) { } - protected bool Cancelled { get; set; } - protected virtual void VisitCollection(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, Castle.Components.DictionaryAdapter.PropertyDescriptor property, System.Type collectionItemType, object state) { } - public virtual bool VisitDictionaryAdapter(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, object state) { } - public virtual bool VisitDictionaryAdapter(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, System.Func selector, object state) { } - protected virtual void VisitInterface(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, Castle.Components.DictionaryAdapter.PropertyDescriptor property, object state) { } - protected virtual void VisitProperty(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, Castle.Components.DictionaryAdapter.PropertyDescriptor property, object state) { } - } - public class CascadingDictionaryAdapter : Castle.Components.DictionaryAdapter.AbstractDictionaryAdapter - { - public CascadingDictionaryAdapter(System.Collections.IDictionary primary, System.Collections.IDictionary secondary) { } - public override bool IsReadOnly { get; } - public override object this[object key] { get; set; } - public System.Collections.IDictionary Primary { get; } - public System.Collections.IDictionary Secondary { get; } - public override bool Contains(object key) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.All, AllowMultiple=false, Inherited=true)] - public class ComponentAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryKeyBuilder, Castle.Components.DictionaryAdapter.IDictionaryPropertyGetter, Castle.Components.DictionaryAdapter.IDictionaryPropertySetter - { - public ComponentAttribute() { } - public bool NoPrefix { get; set; } - public string Prefix { get; set; } - public bool SetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, ref object value, Castle.Components.DictionaryAdapter.PropertyDescriptor property) { } - } - public class DefaultPropertyGetter : Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryPropertyGetter - { - public DefaultPropertyGetter(System.ComponentModel.TypeConverter converter) { } - public int ExecutionOrder { get; } - public Castle.Components.DictionaryAdapter.IDictionaryBehavior Copy() { } - public object GetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, object storedValue, Castle.Components.DictionaryAdapter.PropertyDescriptor property, bool ifExists) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.All, AllowMultiple=false, Inherited=false)] - public class DictionaryAdapterAttribute : System.Attribute - { - public DictionaryAdapterAttribute(System.Type interfaceType) { } - public System.Type InterfaceType { get; } - } - public abstract class DictionaryAdapterBase : Castle.Components.DictionaryAdapter.IDictionaryAdapter, Castle.Components.DictionaryAdapter.IDictionaryCreate, Castle.Components.DictionaryAdapter.IDictionaryEdit, Castle.Components.DictionaryAdapter.IDictionaryNotify, Castle.Components.DictionaryAdapter.IDictionaryValidate, System.ComponentModel.IChangeTracking, System.ComponentModel.IEditableObject, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.IRevertibleChangeTracking - { - public DictionaryAdapterBase(Castle.Components.DictionaryAdapter.DictionaryAdapterInstance instance) { } - public bool CanEdit { get; set; } - public bool CanNotify { get; set; } - public bool CanValidate { get; set; } - public bool IsChanged { get; } - public bool IsEditing { get; } - public bool IsValid { get; } - public abstract Castle.Components.DictionaryAdapter.DictionaryAdapterMeta Meta { get; } - public bool ShouldNotify { get; } - public bool SupportsMultiLevelEdit { get; set; } - public Castle.Components.DictionaryAdapter.DictionaryAdapterInstance This { get; } - public System.Collections.Generic.IEnumerable Validators { get; } - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; - public void AcceptChanges() { } - protected void AddEditDependency(System.ComponentModel.IEditableObject editDependency) { } - public void AddValidator(Castle.Components.DictionaryAdapter.IDictionaryValidator validator) { } - public void BeginEdit() { } - public void CancelEdit() { } - protected bool ClearEditProperty(Castle.Components.DictionaryAdapter.PropertyDescriptor property, string key) { } - public void ClearProperty(Castle.Components.DictionaryAdapter.PropertyDescriptor property, string key) { } - public T Coerce() - where T : class { } - public object Coerce(System.Type type) { } - public void CopyTo(Castle.Components.DictionaryAdapter.IDictionaryAdapter other) { } - public void CopyTo(Castle.Components.DictionaryAdapter.IDictionaryAdapter other, System.Func selector) { } - public T Create() { } - public object Create(System.Type type) { } - public T Create(System.Collections.IDictionary dictionary) { } - public object Create(System.Type type, System.Collections.IDictionary dictionary) { } - public T Create(System.Action init) { } - public T Create(System.Collections.IDictionary dictionary, System.Action init) { } - protected bool EditProperty(Castle.Components.DictionaryAdapter.PropertyDescriptor property, string key, object propertyValue) { } - public void EndEdit() { } - public override bool Equals(object obj) { } - protected bool GetEditedProperty(string propertyName, out object propertyValue) { } - public override int GetHashCode() { } - public string GetKey(string propertyName) { } - public virtual object GetProperty(string propertyName, bool ifExists) { } - public T GetPropertyOfType(string propertyName) { } - protected void Initialize() { } - protected void Invalidate() { } - protected void NotifyPropertyChanged(Castle.Components.DictionaryAdapter.PropertyDescriptor property, object oldValue, object newValue) { } - protected void NotifyPropertyChanged(string propertyName) { } - protected bool NotifyPropertyChanging(Castle.Components.DictionaryAdapter.PropertyDescriptor property, object oldValue, object newValue) { } - public object ReadProperty(string key) { } - public void RejectChanges() { } - public void ResumeEditing() { } - public void ResumeNotifications() { } - public virtual bool SetProperty(string propertyName, ref object value) { } - public bool ShouldClearProperty(Castle.Components.DictionaryAdapter.PropertyDescriptor property, object value) { } - public void StoreProperty(Castle.Components.DictionaryAdapter.PropertyDescriptor property, string key, object value) { } - public void SuppressEditing() { } - public System.IDisposable SuppressEditingBlock() { } - public void SuppressNotifications() { } - public System.IDisposable SuppressNotificationsBlock() { } - protected Castle.Components.DictionaryAdapter.DictionaryAdapterBase.TrackPropertyChangeScope TrackPropertyChange(Castle.Components.DictionaryAdapter.PropertyDescriptor property, object oldValue, object newValue) { } - protected Castle.Components.DictionaryAdapter.DictionaryAdapterBase.TrackPropertyChangeScope TrackReadonlyPropertyChanges() { } - public Castle.Components.DictionaryAdapter.DictionaryValidateGroup ValidateGroups(params object[] groups) { } - public class TrackPropertyChangeScope : System.IDisposable - { - public TrackPropertyChangeScope(Castle.Components.DictionaryAdapter.DictionaryAdapterBase adapter) { } - public TrackPropertyChangeScope(Castle.Components.DictionaryAdapter.DictionaryAdapterBase adapter, Castle.Components.DictionaryAdapter.PropertyDescriptor property, object existingValue) { } - public void Dispose() { } - public bool Notify() { } - } - } - public class static DictionaryAdapterExtensions - { - public static Castle.Components.DictionaryAdapter.IVirtual AsVirtual(this Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter) { } - } - public class DictionaryAdapterFactory : Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory - { - public DictionaryAdapterFactory() { } - public T GetAdapter(System.Collections.IDictionary dictionary) { } - public object GetAdapter(System.Type type, System.Collections.IDictionary dictionary) { } - public object GetAdapter(System.Type type, System.Collections.IDictionary dictionary, Castle.Components.DictionaryAdapter.PropertyDescriptor descriptor) { } - public T GetAdapter(System.Collections.Generic.IDictionary dictionary) { } - public object GetAdapter(System.Type type, System.Collections.Generic.IDictionary dictionary) { } - public T GetAdapter(System.Collections.Specialized.NameValueCollection nameValues) { } - public object GetAdapter(System.Type type, System.Collections.Specialized.NameValueCollection nameValues) { } - public Castle.Components.DictionaryAdapter.DictionaryAdapterMeta GetAdapterMeta(System.Type type) { } - public Castle.Components.DictionaryAdapter.DictionaryAdapterMeta GetAdapterMeta(System.Type type, Castle.Components.DictionaryAdapter.PropertyDescriptor descriptor) { } - public Castle.Components.DictionaryAdapter.DictionaryAdapterMeta GetAdapterMeta(System.Type type, Castle.Components.DictionaryAdapter.DictionaryAdapterMeta other) { } - } - public class DictionaryAdapterInstance - { - public DictionaryAdapterInstance(System.Collections.IDictionary dictionary, Castle.Components.DictionaryAdapter.DictionaryAdapterMeta meta, Castle.Components.DictionaryAdapter.PropertyDescriptor descriptor, Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory factory) { } - public Castle.Components.DictionaryAdapter.IDictionaryCoerceStrategy CoerceStrategy { get; set; } - public System.Collections.Generic.IEnumerable CopyStrategies { get; } - public Castle.Components.DictionaryAdapter.IDictionaryCreateStrategy CreateStrategy { get; set; } - public Castle.Components.DictionaryAdapter.PropertyDescriptor Descriptor { get; } - public System.Collections.IDictionary Dictionary { get; } - public Castle.Components.DictionaryAdapter.IDictionaryEqualityHashCodeStrategy EqualityHashCodeStrategy { get; set; } - public System.Collections.IDictionary ExtendedProperties { get; } - public Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory Factory { get; } - public Castle.Components.DictionaryAdapter.IDictionaryInitializer[] Initializers { get; } - public System.Collections.Generic.IDictionary Properties { get; } - public void AddCopyStrategy(Castle.Components.DictionaryAdapter.IDictionaryCopyStrategy copyStrategy) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("Type: {Type.FullName,nq}")] - public class DictionaryAdapterMeta - { - public DictionaryAdapterMeta(System.Type type, System.Type implementation, object[] behaviors, Castle.Components.DictionaryAdapter.IDictionaryMetaInitializer[] metaInitializers, Castle.Components.DictionaryAdapter.IDictionaryInitializer[] initializers, System.Collections.Generic.IDictionary properties, Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory factory, System.Func creator) { } - public object[] Behaviors { get; } - public System.Collections.IDictionary ExtendedProperties { get; } - public Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory Factory { get; } - public System.Type Implementation { get; } - public Castle.Components.DictionaryAdapter.IDictionaryInitializer[] Initializers { get; } - public Castle.Components.DictionaryAdapter.IDictionaryMetaInitializer[] MetaInitializers { get; } - public System.Collections.Generic.IDictionary Properties { get; } - public System.Type Type { get; } - public Castle.Components.DictionaryAdapter.PropertyDescriptor CreateDescriptor() { } - public object CreateInstance(System.Collections.IDictionary dictionary, Castle.Components.DictionaryAdapter.PropertyDescriptor descriptor) { } - public Castle.Components.DictionaryAdapter.DictionaryAdapterMeta GetAdapterMeta(System.Type type) { } - } - public abstract class DictionaryBehaviorAttribute : System.Attribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior - { - public const int DefaultExecutionOrder = 1073741823; - public const int FirstExecutionOrder = 0; - public const int LastExecutionOrder = 2147483647; - public DictionaryBehaviorAttribute() { } - public int ExecutionOrder { get; set; } - public virtual Castle.Components.DictionaryAdapter.IDictionaryBehavior Copy() { } - } - public class DictionaryValidateGroup : Castle.Components.DictionaryAdapter.IDictionaryValidate, System.ComponentModel.INotifyPropertyChanged, System.IDisposable - { - public DictionaryValidateGroup(object[] groups, Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter) { } - public bool CanValidate { get; set; } - public bool IsValid { get; } - public System.Collections.Generic.IEnumerable Validators { get; } - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - public void AddValidator(Castle.Components.DictionaryAdapter.IDictionaryValidator validator) { } - public void Dispose() { } - public Castle.Components.DictionaryAdapter.DictionaryValidateGroup ValidateGroups(params object[] groups) { } - } - public class DynamicDictionary : System.Dynamic.DynamicObject - { - public DynamicDictionary(System.Collections.IDictionary dictionary) { } - public override System.Collections.Generic.IEnumerable GetDynamicMemberNames() { } - public override bool TryGetMember(System.Dynamic.GetMemberBinder binder, out object result) { } - public override bool TrySetMember(System.Dynamic.SetMemberBinder binder, object value) { } - } - public class DynamicValueDelegate : Castle.Components.DictionaryAdapter.DynamicValue - { - public DynamicValueDelegate(System.Func dynamicDelegate) { } - public override T Value { get; } - } - public abstract class DynamicValue : Castle.Components.DictionaryAdapter.IDynamicValue, Castle.Components.DictionaryAdapter.IDynamicValue - { - protected DynamicValue() { } - public abstract T Value { get; } - public override string ToString() { } - } - public class EditableList : Castle.Components.DictionaryAdapter.EditableList, System.Collections.ICollection, System.Collections.IEnumerable, System.Collections.IList - { - public EditableList() { } - public EditableList(System.Collections.Generic.IEnumerable collection) { } - } - public class EditableList : System.Collections.Generic.List, System.ComponentModel.IChangeTracking, System.ComponentModel.IEditableObject, System.ComponentModel.IRevertibleChangeTracking - { - public EditableList() { } - public EditableList(System.Collections.Generic.IEnumerable collection) { } - public bool IsChanged { get; } - public void AcceptChanges() { } - public void BeginEdit() { } - public void CancelEdit() { } - public void EndEdit() { } - public void RejectChanges() { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=false)] - public class FetchAttribute : System.Attribute - { - public FetchAttribute() { } - public FetchAttribute(bool fetch) { } - public bool Fetch { get; } - } - public class static GenericDictionaryAdapter - { - public static Castle.Components.DictionaryAdapter.GenericDictionaryAdapter ForDictionaryAdapter(this System.Collections.Generic.IDictionary dictionary) { } - } - public class GenericDictionaryAdapter : Castle.Components.DictionaryAdapter.AbstractDictionaryAdapter - { - public GenericDictionaryAdapter(System.Collections.Generic.IDictionary dictionary) { } - public override bool IsReadOnly { get; } - public override object this[object key] { get; set; } - public override bool Contains(object key) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.All, AllowMultiple=true)] - public class GroupAttribute : System.Attribute - { - public GroupAttribute(object group) { } - public GroupAttribute(params object[] group) { } - public object[] Group { get; } - } - public interface IBindingList : System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.Generic.IList, System.Collections.IEnumerable - { - bool AllowEdit { get; } - bool AllowNew { get; } - bool AllowRemove { get; } - bool IsSorted { get; } - System.ComponentModel.PropertyDescriptor SortProperty { get; } - bool SupportsChangeNotification { get; } - bool SupportsSearching { get; } - bool SupportsSorting { get; } - void AddIndex(System.ComponentModel.PropertyDescriptor property); - T AddNew(); - int Find(System.ComponentModel.PropertyDescriptor property, object key); - void RemoveIndex(System.ComponentModel.PropertyDescriptor property); - void RemoveSort(); - } - public interface ICollectionAdapterObserver - { - void OnInserted(T newValue, int index); - bool OnInserting(T newValue); - void OnRemoved(T oldValue, int index); - void OnRemoving(T oldValue); - void OnReplaced(T oldValue, T newValue, int index); - bool OnReplacing(T oldValue, T newValue); - } - public interface ICollectionAdapter - { - System.Collections.Generic.IEqualityComparer Comparer { get; } - int Count { get; } - bool HasSnapshot { get; } - T this[int index] { get; set; } - int SnapshotCount { get; } - bool Add(T value); - T AddNew(); - void Clear(); - void ClearReferences(); - void DropSnapshot(); - T GetCurrentItem(int index); - T GetSnapshotItem(int index); - void Initialize(Castle.Components.DictionaryAdapter.ICollectionAdapterObserver advisor); - bool Insert(int index, T value); - void LoadSnapshot(); - void Remove(int index); - void SaveSnapshot(); - } - public interface ICollectionProjection : System.Collections.ICollection, System.Collections.IEnumerable - { - void Clear(); - void ClearReferences(); - void Replace(System.Collections.IEnumerable source); - } - public interface ICondition - { - bool SatisfiedBy(object value); - } - public interface IDictionaryAdapter : Castle.Components.DictionaryAdapter.IDictionaryCreate, Castle.Components.DictionaryAdapter.IDictionaryEdit, Castle.Components.DictionaryAdapter.IDictionaryNotify, Castle.Components.DictionaryAdapter.IDictionaryValidate, System.ComponentModel.IChangeTracking, System.ComponentModel.IEditableObject, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.IRevertibleChangeTracking - { - Castle.Components.DictionaryAdapter.DictionaryAdapterMeta Meta { get; } - Castle.Components.DictionaryAdapter.DictionaryAdapterInstance This { get; } - void ClearProperty(Castle.Components.DictionaryAdapter.PropertyDescriptor property, string key); - T Coerce() - where T : class; - object Coerce(System.Type type); - void CopyTo(Castle.Components.DictionaryAdapter.IDictionaryAdapter other); - void CopyTo(Castle.Components.DictionaryAdapter.IDictionaryAdapter other, System.Func selector); - string GetKey(string propertyName); - object GetProperty(string propertyName, bool ifExists); - T GetPropertyOfType(string propertyName); - object ReadProperty(string key); - bool SetProperty(string propertyName, ref object value); - bool ShouldClearProperty(Castle.Components.DictionaryAdapter.PropertyDescriptor property, object value); - void StoreProperty(Castle.Components.DictionaryAdapter.PropertyDescriptor property, string key, object value); - } - public interface IDictionaryAdapterFactory - { - T GetAdapter(System.Collections.IDictionary dictionary); - object GetAdapter(System.Type type, System.Collections.IDictionary dictionary); - object GetAdapter(System.Type type, System.Collections.IDictionary dictionary, Castle.Components.DictionaryAdapter.PropertyDescriptor descriptor); - T GetAdapter(System.Collections.Specialized.NameValueCollection nameValues); - object GetAdapter(System.Type type, System.Collections.Specialized.NameValueCollection nameValues); - Castle.Components.DictionaryAdapter.DictionaryAdapterMeta GetAdapterMeta(System.Type type); - Castle.Components.DictionaryAdapter.DictionaryAdapterMeta GetAdapterMeta(System.Type type, Castle.Components.DictionaryAdapter.PropertyDescriptor descriptor); - Castle.Components.DictionaryAdapter.DictionaryAdapterMeta GetAdapterMeta(System.Type type, Castle.Components.DictionaryAdapter.DictionaryAdapterMeta other); - } - public interface IDictionaryAdapterVisitor - { - void VisitCollection(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, Castle.Components.DictionaryAdapter.PropertyDescriptor property, System.Type collectionItemType, object state); - bool VisitDictionaryAdapter(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, object state); - bool VisitDictionaryAdapter(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, System.Func selector, object state); - void VisitInterface(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, Castle.Components.DictionaryAdapter.PropertyDescriptor property, object state); - void VisitProperty(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, Castle.Components.DictionaryAdapter.PropertyDescriptor property, object state); - } - public interface IDictionaryBehavior - { - int ExecutionOrder { get; } - Castle.Components.DictionaryAdapter.IDictionaryBehavior Copy(); - } - public interface IDictionaryBehaviorBuilder - { - object[] BuildBehaviors(); - } - public interface IDictionaryCoerceStrategy - { - object Coerce(Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter, System.Type type); - } - public interface IDictionaryCopyStrategy - { - bool Copy(Castle.Components.DictionaryAdapter.IDictionaryAdapter source, Castle.Components.DictionaryAdapter.IDictionaryAdapter target, ref System.Func selector); - } - public interface IDictionaryCreate - { - T Create(); - object Create(System.Type type); - T Create(System.Collections.IDictionary dictionary); - object Create(System.Type type, System.Collections.IDictionary dictionary); - T Create(System.Action init); - T Create(System.Collections.IDictionary dictionary, System.Action init); - } - public interface IDictionaryCreateStrategy - { - object Create(Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter, System.Type type, System.Collections.IDictionary dictionary); - } - public interface IDictionaryEdit : System.ComponentModel.IChangeTracking, System.ComponentModel.IEditableObject, System.ComponentModel.IRevertibleChangeTracking - { - bool CanEdit { get; } - bool IsEditing { get; } - bool SupportsMultiLevelEdit { get; set; } - void ResumeEditing(); - void SuppressEditing(); - System.IDisposable SuppressEditingBlock(); - } - public interface IDictionaryEqualityHashCodeStrategy - { - bool Equals(Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter1, Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter2); - bool GetHashCode(Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter, out int hashCode); - } - public interface IDictionaryInitializer : Castle.Components.DictionaryAdapter.IDictionaryBehavior - { - void Initialize(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, object[] behaviors); - } - public interface IDictionaryKeyBuilder : Castle.Components.DictionaryAdapter.IDictionaryBehavior - { - string GetKey(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, Castle.Components.DictionaryAdapter.PropertyDescriptor property); - } - public interface IDictionaryMetaInitializer : Castle.Components.DictionaryAdapter.IDictionaryBehavior - { - void Initialize(Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory factory, Castle.Components.DictionaryAdapter.DictionaryAdapterMeta dictionaryMeta); - bool ShouldHaveBehavior(object behavior); - } - public interface IDictionaryNotify : System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - bool CanNotify { get; } - bool ShouldNotify { get; } - void ResumeNotifications(); - void SuppressNotifications(); - System.IDisposable SuppressNotificationsBlock(); - } - public interface IDictionaryPropertyGetter : Castle.Components.DictionaryAdapter.IDictionaryBehavior - { - object GetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, object storedValue, Castle.Components.DictionaryAdapter.PropertyDescriptor property, bool ifExists); - } - public interface IDictionaryPropertySetter : Castle.Components.DictionaryAdapter.IDictionaryBehavior - { - bool SetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, ref object value, Castle.Components.DictionaryAdapter.PropertyDescriptor property); - } - public interface IDictionaryReferenceManager - { - void AddReference(object keyObject, object relatedObject, bool isInGraph); - bool IsReferenceProperty(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string propertyName); - bool TryGetReference(object keyObject, out object inGraphObject); - } - public interface IDictionaryValidate - { - bool CanValidate { get; set; } - bool IsValid { get; } - System.Collections.Generic.IEnumerable Validators { get; } - void AddValidator(Castle.Components.DictionaryAdapter.IDictionaryValidator validator); - Castle.Components.DictionaryAdapter.DictionaryValidateGroup ValidateGroups(params object[] groups); - } - public interface IDictionaryValidator - { - void Invalidate(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter); - bool IsValid(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter); - string Validate(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter); - string Validate(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, Castle.Components.DictionaryAdapter.PropertyDescriptor property); - } - public interface IDynamicValue - { - object GetValue(); - } - public interface IDynamicValue : Castle.Components.DictionaryAdapter.IDynamicValue - { - T Value { get; } - } - public interface IPropertyDescriptorInitializer : Castle.Components.DictionaryAdapter.IDictionaryBehavior - { - void Initialize(Castle.Components.DictionaryAdapter.PropertyDescriptor propertyDescriptor, object[] behaviors); - } - public interface IValueInitializer - { - void Initialize(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, object value); - } - public interface IVirtual - { - bool IsReal { get; } - public event System.EventHandler Realized; - void Realize(); - } - public interface IVirtualSite - { - void OnRealizing(T node); - } - public interface IVirtualTarget - { - void OnRealizing(TNode node, TMember member); - } - public interface IVirtual : Castle.Components.DictionaryAdapter.IVirtual - { - void AddSite(Castle.Components.DictionaryAdapter.IVirtualSite site); - T Realize(); - void RemoveSite(Castle.Components.DictionaryAdapter.IVirtualSite site); - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.All, AllowMultiple=false)] - public class IfExistsAttribute : System.Attribute - { - public IfExistsAttribute() { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.All, AllowMultiple=false, Inherited=true)] - public class KeyAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryKeyBuilder - { - public KeyAttribute(string key) { } - public KeyAttribute(string[] keys) { } - public string Key { get; } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=false, Inherited=false)] - public class KeyPrefixAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryKeyBuilder - { - public KeyPrefixAttribute() { } - public KeyPrefixAttribute(string keyPrefix) { } - public string KeyPrefix { get; set; } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=true, Inherited=true)] - public class KeySubstitutionAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryKeyBuilder - { - public KeySubstitutionAttribute(string oldValue, string newValue) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("Count = {Count}, Adapter = {Adapter}")] - [System.Diagnostics.DebuggerTypeProxyAttribute(typeof(Castle.Components.DictionaryAdapter.ListProjectionDebugView))] - public class ListProjection : Castle.Components.DictionaryAdapter.IBindingList, Castle.Components.DictionaryAdapter.ICollectionAdapterObserver, Castle.Components.DictionaryAdapter.ICollectionProjection, System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.Generic.IList, System.Collections.ICollection, System.Collections.IEnumerable, System.Collections.IList, System.ComponentModel.IChangeTracking, System.ComponentModel.IEditableObject, System.ComponentModel.IRevertibleChangeTracking - { - public ListProjection(Castle.Components.DictionaryAdapter.ICollectionAdapter adapter) { } - public Castle.Components.DictionaryAdapter.ICollectionAdapter Adapter { get; } - public System.Collections.Generic.IEqualityComparer Comparer { get; } - public int Count { get; } - public bool EventsEnabled { get; } - public bool IsChanged { get; } - public T this[int index] { get; set; } - public void AcceptChanges() { } - public virtual bool Add(T item) { } - public virtual T AddNew() { } - public void BeginEdit() { } - public void CancelEdit() { } - public virtual void CancelNew(int index) { } - public virtual void Clear() { } - public virtual bool Contains(T item) { } - public void CopyTo(T[] array, int index) { } - public void EndEdit() { } - public virtual void EndNew(int index) { } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public int IndexOf(T item) { } - public void Insert(int index, T item) { } - public bool IsNew(int index) { } - [System.Diagnostics.ConditionalAttribute("NOP")] - protected void NotifyListChanged(Castle.Components.DictionaryAdapter.ListProjection.ListChangedType type, int index) { } - [System.Diagnostics.ConditionalAttribute("NOP")] - protected void NotifyListReset() { } - protected virtual void OnInserted(T newValue, int index) { } - protected virtual bool OnInserting(T value) { } - protected virtual void OnRemoved(T oldValue, int index) { } - protected virtual void OnRemoving(T oldValue) { } - protected virtual void OnReplaced(T oldValue, T newValue, int index) { } - protected virtual bool OnReplacing(T oldValue, T newValue) { } - public void RejectChanges() { } - public virtual bool Remove(T item) { } - public virtual void RemoveAt(int index) { } - public void Replace(System.Collections.Generic.IEnumerable items) { } - public bool ResumeEvents() { } - public void SuspendEvents() { } - protected enum ListChangedType - { - ItemAdded = 0, - ItemChanged = 1, - ItemDeleted = 2, - } - } - public class MemberwiseEqualityHashCodeStrategy : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryEqualityHashCodeStrategy, Castle.Components.DictionaryAdapter.IDictionaryInitializer, System.Collections.Generic.IEqualityComparer - { - public MemberwiseEqualityHashCodeStrategy() { } - public bool Equals(Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter1, Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter2) { } - public int GetHashCode(Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter) { } - public bool GetHashCode(Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter, out int hashCode) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=false)] - public class MultiLevelEditAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryInitializer - { - public MultiLevelEditAttribute() { } - public void Initialize(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, object[] behaviors) { } - } - public class NameValueCollectionAdapter : Castle.Components.DictionaryAdapter.AbstractDictionaryAdapter - { - public NameValueCollectionAdapter(System.Collections.Specialized.NameValueCollection nameValues) { } - public override bool IsReadOnly { get; } - public override object this[object key] { get; set; } - public static Castle.Components.DictionaryAdapter.NameValueCollectionAdapter Adapt(System.Collections.Specialized.NameValueCollection nameValues) { } - public override bool Contains(object key) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=false)] - public class NewGuidAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryPropertyGetter - { - public NewGuidAttribute() { } - public object GetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, object storedValue, Castle.Components.DictionaryAdapter.PropertyDescriptor property, bool ifExists) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=false)] - public class OnDemandAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryPropertyGetter - { - public OnDemandAttribute() { } - public OnDemandAttribute(System.Type type) { } - public OnDemandAttribute(object value) { } - public System.Type Type { get; } - public object Value { get; } - public object GetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, object storedValue, Castle.Components.DictionaryAdapter.PropertyDescriptor property, bool ifExists) { } - } - public class PropertyChangedEventArgsEx : System.ComponentModel.PropertyChangedEventArgs - { - public PropertyChangedEventArgsEx(string propertyName, object oldValue, object newValue) { } - public object NewValue { get; } - public object OldValue { get; } - } - public class PropertyChangingEventArgsEx : System.ComponentModel.PropertyChangingEventArgs - { - public PropertyChangingEventArgsEx(string propertyName, object oldValue, object newValue) { } - public bool Cancel { get; set; } - public object NewValue { get; } - public object OldValue { get; } - } - [System.Diagnostics.DebuggerDisplayAttribute("{Property.DeclaringType.FullName,nq}.{PropertyName,nq}")] - public class PropertyDescriptor : Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryKeyBuilder, Castle.Components.DictionaryAdapter.IDictionaryPropertyGetter, Castle.Components.DictionaryAdapter.IDictionaryPropertySetter - { - protected System.Collections.Generic.List dictionaryBehaviors; - public PropertyDescriptor() { } - public PropertyDescriptor(System.Reflection.PropertyInfo property, object[] annotations) { } - public PropertyDescriptor(object[] annotations) { } - public PropertyDescriptor(Castle.Components.DictionaryAdapter.PropertyDescriptor source, bool copyBehaviors) { } - public object[] Annotations { get; } - public System.Collections.Generic.IEnumerable Behaviors { get; } - public int ExecutionOrder { get; } - public System.Collections.IDictionary ExtendedProperties { get; } - public bool Fetch { get; set; } - public System.Collections.Generic.IEnumerable Getters { get; } - public bool IfExists { get; set; } - public System.Collections.Generic.IEnumerable Initializers { get; } - public bool IsDynamicProperty { get; } - public System.Collections.Generic.IEnumerable KeyBuilders { get; } - public System.Collections.Generic.IEnumerable MetaInitializers { get; } - public System.Reflection.PropertyInfo Property { get; } - public string PropertyName { get; } - public System.Type PropertyType { get; } - public System.Collections.Generic.IEnumerable Setters { get; } - public System.Collections.IDictionary State { get; } - public bool SuppressNotifications { get; set; } - public System.ComponentModel.TypeConverter TypeConverter { get; } - public Castle.Components.DictionaryAdapter.PropertyDescriptor AddBehavior(Castle.Components.DictionaryAdapter.IDictionaryBehavior behavior) { } - public Castle.Components.DictionaryAdapter.PropertyDescriptor AddBehaviors(params Castle.Components.DictionaryAdapter.IDictionaryBehavior[] behaviors) { } - public Castle.Components.DictionaryAdapter.PropertyDescriptor AddBehaviors(System.Collections.Generic.IEnumerable behaviors) { } - public Castle.Components.DictionaryAdapter.IDictionaryBehavior Copy() { } - public Castle.Components.DictionaryAdapter.PropertyDescriptor CopyBehaviors(Castle.Components.DictionaryAdapter.PropertyDescriptor other) { } - public string GetKey(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, Castle.Components.DictionaryAdapter.PropertyDescriptor descriptor) { } - public object GetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, object storedValue, Castle.Components.DictionaryAdapter.PropertyDescriptor descriptor, bool ifExists) { } - public static void MergeBehavior(ref System.Collections.Generic.List dictionaryBehaviors, T behavior) - where T : class, Castle.Components.DictionaryAdapter.IDictionaryBehavior { } - public bool SetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, ref object value, Castle.Components.DictionaryAdapter.PropertyDescriptor descriptor) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All)] - public class ReferenceAttribute : System.Attribute - { - public ReferenceAttribute() { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=true)] - public class RemoveIfAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryPropertySetter - { - public RemoveIfAttribute() { } - public RemoveIfAttribute(params object[] values) { } - public RemoveIfAttribute(object[] values, System.Type comparerType) { } - protected RemoveIfAttribute(Castle.Components.DictionaryAdapter.ICondition condition) { } - public System.Type Condition { set; } - } - public class RemoveIfEmptyAttribute : Castle.Components.DictionaryAdapter.RemoveIfAttribute - { - public RemoveIfEmptyAttribute() { } - } - public class SetProjection : Castle.Components.DictionaryAdapter.ListProjection, System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.Generic.ISet, System.Collections.IEnumerable - { - public SetProjection(Castle.Components.DictionaryAdapter.ICollectionAdapter adapter) { } - public override bool Add(T item) { } - public override void Clear() { } - public override bool Contains(T item) { } - public override void EndNew(int index) { } - public void ExceptWith(System.Collections.Generic.IEnumerable other) { } - public void IntersectWith(System.Collections.Generic.IEnumerable other) { } - public bool IsProperSubsetOf(System.Collections.Generic.IEnumerable other) { } - public bool IsProperSupersetOf(System.Collections.Generic.IEnumerable other) { } - public bool IsSubsetOf(System.Collections.Generic.IEnumerable other) { } - public bool IsSupersetOf(System.Collections.Generic.IEnumerable other) { } - protected override bool OnInserting(T value) { } - protected override bool OnReplacing(T oldValue, T newValue) { } - public bool Overlaps(System.Collections.Generic.IEnumerable other) { } - public override bool Remove(T item) { } - public override void RemoveAt(int index) { } - public bool SetEquals(System.Collections.Generic.IEnumerable other) { } - public void SymmetricExceptWith(System.Collections.Generic.IEnumerable other) { } - public void UnionWith(System.Collections.Generic.IEnumerable other) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.All, AllowMultiple=false, Inherited=false)] - public class StringFormatAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryPropertyGetter - { - public StringFormatAttribute(string format, string properties) { } - public string Format { get; } - public string Properties { get; } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.All, AllowMultiple=false, Inherited=true)] - public class StringListAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryPropertyGetter, Castle.Components.DictionaryAdapter.IDictionaryPropertySetter - { - public StringListAttribute() { } - public char Separator { get; set; } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=false)] - public class StringStorageAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryPropertySetter - { - public StringStorageAttribute() { } - public bool SetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, ref object value, Castle.Components.DictionaryAdapter.PropertyDescriptor property) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=false, Inherited=true)] - public class StringValuesAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryPropertySetter - { - public StringValuesAttribute() { } - public string Format { get; set; } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.All, AllowMultiple=false)] - public class SuppressNotificationsAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IPropertyDescriptorInitializer - { - public SuppressNotificationsAttribute() { } - public void Initialize(Castle.Components.DictionaryAdapter.PropertyDescriptor propertyDescriptor, object[] behaviors) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=false, Inherited=true)] - public class TypeKeyPrefixAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryKeyBuilder - { - public TypeKeyPrefixAttribute() { } - } - public abstract class VirtualObject : Castle.Components.DictionaryAdapter.IVirtual, Castle.Components.DictionaryAdapter.IVirtual - { - protected VirtualObject() { } - protected VirtualObject(Castle.Components.DictionaryAdapter.IVirtualSite site) { } - public abstract bool IsReal { get; } - public event System.EventHandler Realized; - protected void AddSite(Castle.Components.DictionaryAdapter.IVirtualSite site) { } - protected virtual void OnRealized() { } - public TNode Realize() { } - protected void RemoveSite(Castle.Components.DictionaryAdapter.IVirtualSite site) { } - protected abstract bool TryRealize(out TNode node); - } - public sealed class VirtualSite : Castle.Components.DictionaryAdapter.IVirtualSite, System.IEquatable> - { - public VirtualSite(Castle.Components.DictionaryAdapter.IVirtualTarget target, TMember member) { } - public TMember Member { get; } - public Castle.Components.DictionaryAdapter.IVirtualTarget Target { get; } - public override bool Equals(object obj) { } - public bool Equals(Castle.Components.DictionaryAdapter.VirtualSite other) { } - public override int GetHashCode() { } - public void OnRealizing(TNode node) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=false)] - public class VolatileAttribute : System.Attribute - { - public VolatileAttribute() { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Interface | System.AttributeTargets.All)] - public class XmlDefaultsAttribute : System.Attribute - { - public XmlDefaultsAttribute() { } - public bool IsNullable { get; set; } - public bool Qualified { get; set; } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=true)] - public class XmlNamespaceAttribute : System.Attribute - { - public XmlNamespaceAttribute(string namespaceUri, string prefix) { } - public bool Default { get; set; } - public string NamespaceUri { get; } - public string Prefix { get; } - public bool Root { get; set; } - } -} -namespace Castle.Core.Configuration -{ - public abstract class AbstractConfiguration : Castle.Core.Configuration.IConfiguration - { - protected AbstractConfiguration() { } - public virtual Castle.Core.Configuration.ConfigurationAttributeCollection Attributes { get; } - public virtual Castle.Core.Configuration.ConfigurationCollection Children { get; } - public string Name { get; set; } - public string Value { get; set; } - public virtual object GetValue(System.Type type, object defaultValue) { } - } - public class ConfigurationAttributeCollection : System.Collections.Specialized.NameValueCollection - { - public ConfigurationAttributeCollection() { } - } - public class ConfigurationCollection : System.Collections.Generic.List - { - public ConfigurationCollection() { } - public ConfigurationCollection(System.Collections.Generic.IEnumerable value) { } - public Castle.Core.Configuration.IConfiguration this[string name] { get; } - } - public interface IConfiguration - { - Castle.Core.Configuration.ConfigurationAttributeCollection Attributes { get; } - Castle.Core.Configuration.ConfigurationCollection Children { get; } - string Name { get; } - string Value { get; } - object GetValue(System.Type type, object defaultValue); - } - public class MutableConfiguration : Castle.Core.Configuration.AbstractConfiguration - { - public MutableConfiguration(string name) { } - public MutableConfiguration(string name, string value) { } - public new string Value { get; set; } - public Castle.Core.Configuration.MutableConfiguration Attribute(string name, string value) { } - public static Castle.Core.Configuration.MutableConfiguration Create(string name) { } - public Castle.Core.Configuration.MutableConfiguration CreateChild(string name) { } - public Castle.Core.Configuration.MutableConfiguration CreateChild(string name, string value) { } - } -} -namespace Castle.Core.Configuration.Xml -{ - public class XmlConfigurationDeserializer - { - public XmlConfigurationDeserializer() { } - public Castle.Core.Configuration.IConfiguration Deserialize(System.Xml.XmlNode node) { } - public static string GetConfigValue(string value) { } - public static Castle.Core.Configuration.IConfiguration GetDeserializedNode(System.Xml.XmlNode node) { } - public static bool IsTextNode(System.Xml.XmlNode node) { } - } -} -namespace Castle.Core -{ - public interface IServiceEnabledComponent - { - void Service(System.IServiceProvider provider); - } - public interface IServiceProviderEx : System.IServiceProvider - { - T GetService() - where T : class; - } - public interface IServiceProviderExAccessor - { - Castle.Core.IServiceProviderEx ServiceProvider { get; } - } - public class Pair : System.IEquatable> - { - public Pair(TFirst first, TSecond second) { } - public TFirst First { get; } - public TSecond Second { get; } - public bool Equals(Castle.Core.Pair other) { } - public override bool Equals(object obj) { } - public override int GetHashCode() { } - public override string ToString() { } - } - public class static ProxyServices - { - public static bool IsDynamicProxy(System.Type type) { } - } - public class ReferenceEqualityComparer : System.Collections.Generic.IEqualityComparer, System.Collections.IEqualityComparer - { - public static Castle.Core.ReferenceEqualityComparer Instance { get; } - public int GetHashCode(object obj) { } - } - public sealed class ReflectionBasedDictionaryAdapter : System.Collections.ICollection, System.Collections.IDictionary, System.Collections.IEnumerable - { - public ReflectionBasedDictionaryAdapter(object target) { } - public int Count { get; } - public bool IsReadOnly { get; } - public bool IsSynchronized { get; } - public object this[object key] { get; set; } - public System.Collections.ICollection Keys { get; } - public object SyncRoot { get; } - public System.Collections.ICollection Values { get; } - public void Add(object key, object value) { } - public void Clear() { } - public bool Contains(object key) { } - public System.Collections.IEnumerator GetEnumerator() { } - public static void Read(System.Collections.IDictionary targetDictionary, object valuesAsAnonymousObject) { } - public void Remove(object key) { } - } - public sealed class StringObjectDictionaryAdapter : System.Collections.Generic.ICollection>, System.Collections.Generic.IDictionary, System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable - { - public StringObjectDictionaryAdapter(System.Collections.IDictionary dictionary) { } - public int Count { get; } - public bool IsFixedSize { get; } - public bool IsReadOnly { get; } - public bool IsSynchronized { get; } - public object this[object key] { get; set; } - public System.Collections.ICollection Keys { get; } - public object SyncRoot { get; } - public System.Collections.ICollection Values { get; } - public void Add(object key, object value) { } - public void Clear() { } - public bool Contains(object key) { } - public void CopyTo(System.Array array, int index) { } - public System.Collections.IEnumerator GetEnumerator() { } - public void Remove(object key) { } - } -} -namespace Castle.Core.Internal -{ - public class static AttributesUtil - { - public static T GetAttribute(this System.Type type) - where T : System.Attribute { } - public static T GetAttribute(this System.Reflection.MemberInfo member) - where T : System.Attribute { } - public static System.AttributeUsageAttribute GetAttributeUsage(this System.Type attributeType) { } - public static System.Collections.Generic.IEnumerable GetAttributes(this System.Type type) - where T : System.Attribute { } - public static System.Collections.Generic.IEnumerable GetAttributes(this System.Reflection.MemberInfo member) - where T : System.Attribute { } - public static T GetTypeAttribute(this System.Type type) - where T : System.Attribute { } - public static T[] GetTypeAttributes(System.Type type) - where T : System.Attribute { } - public static System.Type GetTypeConverter(System.Reflection.MemberInfo member) { } - } - public class static CollectionExtensions - { - public static bool AreEquivalent(System.Collections.Generic.IList listA, System.Collections.Generic.IList listB) { } - public static T Find(this T[] items, System.Predicate predicate) { } - public static T[] FindAll(this T[] items, System.Predicate predicate) { } - public static int GetContentsHashCode(System.Collections.Generic.IList list) { } - public static bool IsNullOrEmpty(this System.Collections.IEnumerable @this) { } - } - [System.ObsoleteAttribute("Consider using `System.Threading.ReaderWriterLockSlim` instead of `Lock` and rela" + - "ted types.")] - public interface ILockHolder : System.IDisposable - { - bool LockAcquired { get; } - } - [System.ObsoleteAttribute("Consider using `System.Threading.ReaderWriterLockSlim` instead of `Lock` and rela" + - "ted types.")] - public interface IUpgradeableLockHolder : Castle.Core.Internal.ILockHolder, System.IDisposable - { - Castle.Core.Internal.ILockHolder Upgrade(); - Castle.Core.Internal.ILockHolder Upgrade(bool waitForLock); - } - public class InternalsVisible - { - public const string ToCastleCore = @"Castle.Core, PublicKey=002400000480000094000000060200000024000052534131000400000100010077F5E87030DADCCCE6902C6ADAB7A987BD69CB5819991531F560785EACFC89B6FCDDF6BB2A00743A7194E454C0273447FC6EEC36474BA8E5A3823147D214298E4F9A631B1AFEE1A51FFEAE4672D498F14B000E3D321453CDD8AC064DE7E1CF4D222B7E81F54D4FD46725370D702A05B48738CC29D09228F1AA722AE1A9CA02FB"; - public const string ToDynamicProxyGenAssembly2 = @"DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7"; - public InternalsVisible() { } - } - [System.ObsoleteAttribute("Consider using `System.Threading.ReaderWriterLockSlim` instead of `Lock` and rela" + - "ted types.")] - public abstract class Lock - { - protected Lock() { } - public static Castle.Core.Internal.Lock Create() { } - public abstract Castle.Core.Internal.ILockHolder ForReading(); - public abstract Castle.Core.Internal.ILockHolder ForReading(bool waitForLock); - public abstract Castle.Core.Internal.IUpgradeableLockHolder ForReadingUpgradeable(); - public abstract Castle.Core.Internal.IUpgradeableLockHolder ForReadingUpgradeable(bool waitForLock); - public abstract Castle.Core.Internal.ILockHolder ForWriting(); - public abstract Castle.Core.Internal.ILockHolder ForWriting(bool waitForLock); - } -} -namespace Castle.Core.Logging -{ - public abstract class AbstractExtendedLoggerFactory : Castle.Core.Logging.IExtendedLoggerFactory, Castle.Core.Logging.ILoggerFactory - { - protected AbstractExtendedLoggerFactory() { } - public virtual Castle.Core.Logging.IExtendedLogger Create(System.Type type) { } - public abstract Castle.Core.Logging.IExtendedLogger Create(string name); - public virtual Castle.Core.Logging.IExtendedLogger Create(System.Type type, Castle.Core.Logging.LoggerLevel level) { } - public abstract Castle.Core.Logging.IExtendedLogger Create(string name, Castle.Core.Logging.LoggerLevel level); - protected static System.IO.FileInfo GetConfigFile(string fileName) { } - } - public abstract class AbstractLoggerFactory : Castle.Core.Logging.ILoggerFactory - { - protected AbstractLoggerFactory() { } - public virtual Castle.Core.Logging.ILogger Create(System.Type type) { } - public virtual Castle.Core.Logging.ILogger Create(System.Type type, Castle.Core.Logging.LoggerLevel level) { } - public abstract Castle.Core.Logging.ILogger Create(string name); - public abstract Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level); - protected static System.IO.FileInfo GetConfigFile(string fileName) { } - } - public class ConsoleFactory : Castle.Core.Logging.ILoggerFactory - { - public ConsoleFactory() { } - public ConsoleFactory(Castle.Core.Logging.LoggerLevel level) { } - public Castle.Core.Logging.ILogger Create(System.Type type) { } - public Castle.Core.Logging.ILogger Create(string name) { } - public Castle.Core.Logging.ILogger Create(System.Type type, Castle.Core.Logging.LoggerLevel level) { } - public Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } - } - public class ConsoleLogger : Castle.Core.Logging.LevelFilteredLogger - { - public ConsoleLogger() { } - public ConsoleLogger(Castle.Core.Logging.LoggerLevel logLevel) { } - public ConsoleLogger(string name) { } - public ConsoleLogger(string name, Castle.Core.Logging.LoggerLevel logLevel) { } - public override Castle.Core.Logging.ILogger CreateChildLogger(string loggerName) { } - protected override void Log(Castle.Core.Logging.LoggerLevel loggerLevel, string loggerName, string message, System.Exception exception) { } - } - public interface IContextProperties - { - object this[string key] { get; set; } - } - public interface IContextStack - { - int Count { get; } - void Clear(); - string Pop(); - System.IDisposable Push(string message); - } - public interface IContextStacks - { - Castle.Core.Logging.IContextStack this[string key] { get; } - } - public interface IExtendedLogger : Castle.Core.Logging.ILogger - { - Castle.Core.Logging.IContextProperties GlobalProperties { get; } - Castle.Core.Logging.IContextProperties ThreadProperties { get; } - Castle.Core.Logging.IContextStacks ThreadStacks { get; } - } - public interface IExtendedLoggerFactory : Castle.Core.Logging.ILoggerFactory - { - Castle.Core.Logging.IExtendedLogger Create(System.Type type); - Castle.Core.Logging.IExtendedLogger Create(string name); - Castle.Core.Logging.IExtendedLogger Create(System.Type type, Castle.Core.Logging.LoggerLevel level); - Castle.Core.Logging.IExtendedLogger Create(string name, Castle.Core.Logging.LoggerLevel level); - } - public interface ILogger - { - bool IsDebugEnabled { get; } - bool IsErrorEnabled { get; } - bool IsFatalEnabled { get; } - bool IsInfoEnabled { get; } - bool IsTraceEnabled { get; } - bool IsWarnEnabled { get; } - Castle.Core.Logging.ILogger CreateChildLogger(string loggerName); - void Debug(string message); - void Debug(System.Func messageFactory); - void Debug(string message, System.Exception exception); - void DebugFormat(string format, params object[] args); - void DebugFormat(System.Exception exception, string format, params object[] args); - void DebugFormat(System.IFormatProvider formatProvider, string format, params object[] args); - void DebugFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args); - void Error(string message); - void Error(System.Func messageFactory); - void Error(string message, System.Exception exception); - void ErrorFormat(string format, params object[] args); - void ErrorFormat(System.Exception exception, string format, params object[] args); - void ErrorFormat(System.IFormatProvider formatProvider, string format, params object[] args); - void ErrorFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args); - void Fatal(string message); - void Fatal(System.Func messageFactory); - void Fatal(string message, System.Exception exception); - void FatalFormat(string format, params object[] args); - void FatalFormat(System.Exception exception, string format, params object[] args); - void FatalFormat(System.IFormatProvider formatProvider, string format, params object[] args); - void FatalFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args); - void Info(string message); - void Info(System.Func messageFactory); - void Info(string message, System.Exception exception); - void InfoFormat(string format, params object[] args); - void InfoFormat(System.Exception exception, string format, params object[] args); - void InfoFormat(System.IFormatProvider formatProvider, string format, params object[] args); - void InfoFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args); - void Trace(string message); - void Trace(System.Func messageFactory); - void Trace(string message, System.Exception exception); - void TraceFormat(string format, params object[] args); - void TraceFormat(System.Exception exception, string format, params object[] args); - void TraceFormat(System.IFormatProvider formatProvider, string format, params object[] args); - void TraceFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args); - void Warn(string message); - void Warn(System.Func messageFactory); - void Warn(string message, System.Exception exception); - void WarnFormat(string format, params object[] args); - void WarnFormat(System.Exception exception, string format, params object[] args); - void WarnFormat(System.IFormatProvider formatProvider, string format, params object[] args); - void WarnFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args); - } - public interface ILoggerFactory - { - Castle.Core.Logging.ILogger Create(System.Type type); - Castle.Core.Logging.ILogger Create(string name); - Castle.Core.Logging.ILogger Create(System.Type type, Castle.Core.Logging.LoggerLevel level); - Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level); - } - public abstract class LevelFilteredLogger : Castle.Core.Logging.ILogger - { - protected LevelFilteredLogger() { } - protected LevelFilteredLogger(string name) { } - protected LevelFilteredLogger(Castle.Core.Logging.LoggerLevel loggerLevel) { } - protected LevelFilteredLogger(string loggerName, Castle.Core.Logging.LoggerLevel loggerLevel) { } - public bool IsDebugEnabled { get; } - public bool IsErrorEnabled { get; } - public bool IsFatalEnabled { get; } - public bool IsInfoEnabled { get; } - public bool IsTraceEnabled { get; } - public bool IsWarnEnabled { get; } - public Castle.Core.Logging.LoggerLevel Level { get; set; } - public string Name { get; } - protected void ChangeName(string newName) { } - public abstract Castle.Core.Logging.ILogger CreateChildLogger(string loggerName); - public void Debug(string message) { } - public void Debug(System.Func messageFactory) { } - public void Debug(string message, System.Exception exception) { } - public void DebugFormat(string format, params object[] args) { } - public void DebugFormat(System.Exception exception, string format, params object[] args) { } - public void DebugFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void DebugFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Error(string message) { } - public void Error(System.Func messageFactory) { } - public void Error(string message, System.Exception exception) { } - public void ErrorFormat(string format, params object[] args) { } - public void ErrorFormat(System.Exception exception, string format, params object[] args) { } - public void ErrorFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void ErrorFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Fatal(string message) { } - public void Fatal(System.Func messageFactory) { } - public void Fatal(string message, System.Exception exception) { } - public void FatalFormat(string format, params object[] args) { } - public void FatalFormat(System.Exception exception, string format, params object[] args) { } - public void FatalFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void FatalFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Info(string message) { } - public void Info(System.Func messageFactory) { } - public void Info(string message, System.Exception exception) { } - public void InfoFormat(string format, params object[] args) { } - public void InfoFormat(System.Exception exception, string format, params object[] args) { } - public void InfoFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void InfoFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - protected abstract void Log(Castle.Core.Logging.LoggerLevel loggerLevel, string loggerName, string message, System.Exception exception); - public void Trace(string message) { } - public void Trace(System.Func messageFactory) { } - public void Trace(string message, System.Exception exception) { } - public void TraceFormat(string format, params object[] args) { } - public void TraceFormat(System.Exception exception, string format, params object[] args) { } - public void TraceFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void TraceFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Warn(string message) { } - public void Warn(System.Func messageFactory) { } - public void Warn(string message, System.Exception exception) { } - public void WarnFormat(string format, params object[] args) { } - public void WarnFormat(System.Exception exception, string format, params object[] args) { } - public void WarnFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void WarnFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - } - public class LoggerException : System.Exception - { - public LoggerException() { } - public LoggerException(string message) { } - public LoggerException(string message, System.Exception innerException) { } - } - public enum LoggerLevel - { - Off = 0, - Fatal = 1, - Error = 2, - Warn = 3, - Info = 4, - Debug = 5, - Trace = 6, - } - public class NullLogFactory : Castle.Core.Logging.AbstractLoggerFactory - { - public NullLogFactory() { } - public override Castle.Core.Logging.ILogger Create(string name) { } - public override Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } - } - public class NullLogger : Castle.Core.Logging.IExtendedLogger, Castle.Core.Logging.ILogger - { - public static readonly Castle.Core.Logging.NullLogger Instance; - public NullLogger() { } - public Castle.Core.Logging.IContextProperties GlobalProperties { get; } - public bool IsDebugEnabled { get; } - public bool IsErrorEnabled { get; } - public bool IsFatalEnabled { get; } - public bool IsInfoEnabled { get; } - public bool IsTraceEnabled { get; } - public bool IsWarnEnabled { get; } - public Castle.Core.Logging.IContextProperties ThreadProperties { get; } - public Castle.Core.Logging.IContextStacks ThreadStacks { get; } - public Castle.Core.Logging.ILogger CreateChildLogger(string loggerName) { } - public void Debug(string message) { } - public void Debug(System.Func messageFactory) { } - public void Debug(string message, System.Exception exception) { } - public void DebugFormat(string format, params object[] args) { } - public void DebugFormat(System.Exception exception, string format, params object[] args) { } - public void DebugFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void DebugFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Error(string message) { } - public void Error(System.Func messageFactory) { } - public void Error(string message, System.Exception exception) { } - public void ErrorFormat(string format, params object[] args) { } - public void ErrorFormat(System.Exception exception, string format, params object[] args) { } - public void ErrorFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void ErrorFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Fatal(string message) { } - public void Fatal(System.Func messageFactory) { } - public void Fatal(string message, System.Exception exception) { } - public void FatalFormat(string format, params object[] args) { } - public void FatalFormat(System.Exception exception, string format, params object[] args) { } - public void FatalFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void FatalFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Info(string message) { } - public void Info(System.Func messageFactory) { } - public void Info(string message, System.Exception exception) { } - public void InfoFormat(string format, params object[] args) { } - public void InfoFormat(System.Exception exception, string format, params object[] args) { } - public void InfoFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void InfoFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Trace(string message) { } - public void Trace(System.Func messageFactory) { } - public void Trace(string message, System.Exception exception) { } - public void TraceFormat(string format, params object[] args) { } - public void TraceFormat(System.Exception exception, string format, params object[] args) { } - public void TraceFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void TraceFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Warn(string message) { } - public void Warn(System.Func messageFactory) { } - public void Warn(string message, System.Exception exception) { } - public void WarnFormat(string format, params object[] args) { } - public void WarnFormat(System.Exception exception, string format, params object[] args) { } - public void WarnFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void WarnFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - } - public class StreamLogger : Castle.Core.Logging.LevelFilteredLogger, System.IDisposable - { - public StreamLogger(string name, System.IO.Stream stream) { } - public StreamLogger(string name, System.IO.Stream stream, System.Text.Encoding encoding) { } - public StreamLogger(string name, System.IO.Stream stream, System.Text.Encoding encoding, int bufferSize) { } - protected StreamLogger(string name, System.IO.StreamWriter writer) { } - public override Castle.Core.Logging.ILogger CreateChildLogger(string loggerName) { } - public void Dispose() { } - protected virtual void Dispose(bool disposing) { } - protected override void Finalize() { } - protected override void Log(Castle.Core.Logging.LoggerLevel loggerLevel, string loggerName, string message, System.Exception exception) { } - } - public class StreamLoggerFactory : Castle.Core.Logging.AbstractLoggerFactory - { - public StreamLoggerFactory() { } - public override Castle.Core.Logging.ILogger Create(string name) { } - public override Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } - } - public class TraceLogger : Castle.Core.Logging.LevelFilteredLogger - { - public TraceLogger(string name) { } - public TraceLogger(string name, Castle.Core.Logging.LoggerLevel level) { } - public override Castle.Core.Logging.ILogger CreateChildLogger(string loggerName) { } - protected override void Log(Castle.Core.Logging.LoggerLevel loggerLevel, string loggerName, string message, System.Exception exception) { } - } - public class TraceLoggerFactory : Castle.Core.Logging.AbstractLoggerFactory - { - public TraceLoggerFactory() { } - public TraceLoggerFactory(Castle.Core.Logging.LoggerLevel level) { } - public override Castle.Core.Logging.ILogger Create(string name) { } - public override Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } - } -} -namespace Castle.Core.Resource -{ - public abstract class AbstractResource : Castle.Core.Resource.IResource, System.IDisposable - { - protected static readonly string DefaultBasePath; - protected AbstractResource() { } - public virtual string FileBasePath { get; } - public abstract Castle.Core.Resource.IResource CreateRelative(string relativePath); - public void Dispose() { } - protected virtual void Dispose(bool disposing) { } - public abstract System.IO.TextReader GetStreamReader(); - public abstract System.IO.TextReader GetStreamReader(System.Text.Encoding encoding); - } - public abstract class AbstractStreamResource : Castle.Core.Resource.AbstractResource - { - protected AbstractStreamResource() { } - public Castle.Core.Resource.StreamFactory CreateStream { get; set; } - protected override void Finalize() { } - public override System.IO.TextReader GetStreamReader() { } - public override System.IO.TextReader GetStreamReader(System.Text.Encoding encoding) { } - } - public class AssemblyBundleResource : Castle.Core.Resource.AbstractResource - { - public AssemblyBundleResource(Castle.Core.Resource.CustomUri resource) { } - public override Castle.Core.Resource.IResource CreateRelative(string relativePath) { } - public override System.IO.TextReader GetStreamReader() { } - public override System.IO.TextReader GetStreamReader(System.Text.Encoding encoding) { } - } - public class AssemblyResource : Castle.Core.Resource.AbstractStreamResource - { - public AssemblyResource(Castle.Core.Resource.CustomUri resource) { } - public AssemblyResource(Castle.Core.Resource.CustomUri resource, string basePath) { } - public AssemblyResource(string resource) { } - public override Castle.Core.Resource.IResource CreateRelative(string relativePath) { } - public override string ToString() { } - } - public class AssemblyResourceFactory : Castle.Core.Resource.IResourceFactory - { - public AssemblyResourceFactory() { } - public bool Accept(Castle.Core.Resource.CustomUri uri) { } - public Castle.Core.Resource.IResource Create(Castle.Core.Resource.CustomUri uri) { } - public Castle.Core.Resource.IResource Create(Castle.Core.Resource.CustomUri uri, string basePath) { } - } - public sealed class CustomUri - { - public static readonly string SchemeDelimiter; - public static readonly string UriSchemeAssembly; - public static readonly string UriSchemeFile; - public CustomUri(string resourceIdentifier) { } - public string Host { get; } - public bool IsAssembly { get; } - public bool IsFile { get; } - public bool IsUnc { get; } - public string Path { get; } - public string Scheme { get; } - } - public class FileResource : Castle.Core.Resource.AbstractStreamResource - { - public FileResource(Castle.Core.Resource.CustomUri resource) { } - public FileResource(Castle.Core.Resource.CustomUri resource, string basePath) { } - public FileResource(string resourceName) { } - public FileResource(string resourceName, string basePath) { } - public override string FileBasePath { get; } - public override Castle.Core.Resource.IResource CreateRelative(string relativePath) { } - public override string ToString() { } - } - public class FileResourceFactory : Castle.Core.Resource.IResourceFactory - { - public FileResourceFactory() { } - public bool Accept(Castle.Core.Resource.CustomUri uri) { } - public Castle.Core.Resource.IResource Create(Castle.Core.Resource.CustomUri uri) { } - public Castle.Core.Resource.IResource Create(Castle.Core.Resource.CustomUri uri, string basePath) { } - } - public interface IResource : System.IDisposable - { - string FileBasePath { get; } - Castle.Core.Resource.IResource CreateRelative(string relativePath); - System.IO.TextReader GetStreamReader(); - System.IO.TextReader GetStreamReader(System.Text.Encoding encoding); - } - public interface IResourceFactory - { - bool Accept(Castle.Core.Resource.CustomUri uri); - Castle.Core.Resource.IResource Create(Castle.Core.Resource.CustomUri uri); - Castle.Core.Resource.IResource Create(Castle.Core.Resource.CustomUri uri, string basePath); - } - public class ResourceException : System.Exception - { - public ResourceException() { } - public ResourceException(string message) { } - public ResourceException(string message, System.Exception innerException) { } - } - public class StaticContentResource : Castle.Core.Resource.AbstractResource - { - public StaticContentResource(string contents) { } - public override Castle.Core.Resource.IResource CreateRelative(string relativePath) { } - public override System.IO.TextReader GetStreamReader() { } - public override System.IO.TextReader GetStreamReader(System.Text.Encoding encoding) { } - } - public delegate System.IO.Stream StreamFactory(); - public class UncResource : Castle.Core.Resource.AbstractStreamResource - { - public UncResource(Castle.Core.Resource.CustomUri resource) { } - public UncResource(Castle.Core.Resource.CustomUri resource, string basePath) { } - public UncResource(string resourceName) { } - public UncResource(string resourceName, string basePath) { } - public override string FileBasePath { get; } - public override Castle.Core.Resource.IResource CreateRelative(string relativePath) { } - public override string ToString() { } - } - public class UncResourceFactory : Castle.Core.Resource.IResourceFactory - { - public UncResourceFactory() { } - public bool Accept(Castle.Core.Resource.CustomUri uri) { } - public Castle.Core.Resource.IResource Create(Castle.Core.Resource.CustomUri uri) { } - public Castle.Core.Resource.IResource Create(Castle.Core.Resource.CustomUri uri, string basePath) { } - } -} -namespace Castle.DynamicProxy -{ - public abstract class AbstractInvocation : Castle.DynamicProxy.IInvocation - { - protected readonly object proxyObject; - protected AbstractInvocation(object proxy, Castle.DynamicProxy.IInterceptor[] interceptors, System.Reflection.MethodInfo proxiedMethod, object[] arguments) { } - public object[] Arguments { get; } - public System.Type[] GenericArguments { get; } - public abstract object InvocationTarget { get; } - public System.Reflection.MethodInfo Method { get; } - public abstract System.Reflection.MethodInfo MethodInvocationTarget { get; } - public object Proxy { get; } - public object ReturnValue { get; set; } - public abstract System.Type TargetType { get; } - public Castle.DynamicProxy.IInvocationProceedInfo CaptureProceedInfo() { } - public object GetArgumentValue(int index) { } - public System.Reflection.MethodInfo GetConcreteMethod() { } - public System.Reflection.MethodInfo GetConcreteMethodInvocationTarget() { } - protected abstract void InvokeMethodOnTarget(); - public void Proceed() { } - public void SetArgumentValue(int index, object value) { } - public void SetGenericMethodArguments(System.Type[] arguments) { } - protected void ThrowOnNoTarget() { } - } - public class AllMethodsHook : Castle.DynamicProxy.IProxyGenerationHook - { - protected static readonly System.Collections.Generic.ICollection SkippedTypes; - public AllMethodsHook() { } - public override bool Equals(object obj) { } - public override int GetHashCode() { } - public virtual void MethodsInspected() { } - public virtual void NonProxyableMemberNotification(System.Type type, System.Reflection.MemberInfo memberInfo) { } - public virtual bool ShouldInterceptMethod(System.Type type, System.Reflection.MethodInfo methodInfo) { } - } - public class CustomAttributeInfo : System.IEquatable - { - public CustomAttributeInfo(System.Reflection.ConstructorInfo constructor, object[] constructorArgs, System.Reflection.PropertyInfo[] namedProperties, object[] propertyValues, System.Reflection.FieldInfo[] namedFields, object[] fieldValues) { } - public CustomAttributeInfo(System.Reflection.ConstructorInfo constructor, object[] constructorArgs, System.Reflection.PropertyInfo[] namedProperties, object[] propertyValues) { } - public CustomAttributeInfo(System.Reflection.ConstructorInfo constructor, object[] constructorArgs, System.Reflection.FieldInfo[] namedFields, object[] fieldValues) { } - public CustomAttributeInfo(System.Reflection.ConstructorInfo constructor, object[] constructorArgs) { } - public bool Equals(Castle.DynamicProxy.CustomAttributeInfo other) { } - public override bool Equals(object obj) { } - public static Castle.DynamicProxy.CustomAttributeInfo FromExpression(System.Linq.Expressions.Expression> expression) { } - public override int GetHashCode() { } - } - public class DefaultProxyBuilder : Castle.DynamicProxy.IProxyBuilder - { - public DefaultProxyBuilder() { } - public DefaultProxyBuilder(Castle.DynamicProxy.ModuleScope scope) { } - public Castle.Core.Logging.ILogger Logger { get; set; } - public Castle.DynamicProxy.ModuleScope ModuleScope { get; } - public System.Type CreateClassProxyType(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options) { } - public System.Type CreateClassProxyTypeWithTarget(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options) { } - public System.Type CreateInterfaceProxyTypeWithTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, System.Type targetType, Castle.DynamicProxy.ProxyGenerationOptions options) { } - public System.Type CreateInterfaceProxyTypeWithTargetInterface(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options) { } - public System.Type CreateInterfaceProxyTypeWithoutTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options) { } - } - public interface IChangeProxyTarget - { - void ChangeInvocationTarget(object target); - [System.ObsoleteAttribute("Use ((IProxyTargetAccessor)invocation.Proxy).DynProxySetTarget(target) instead.")] - void ChangeProxyTarget(object target); - } - public interface IInterceptor - { - void Intercept(Castle.DynamicProxy.IInvocation invocation); - } - public interface IInterceptorSelector - { - Castle.DynamicProxy.IInterceptor[] SelectInterceptors(System.Type type, System.Reflection.MethodInfo method, Castle.DynamicProxy.IInterceptor[] interceptors); - } - public interface IInvocation - { - object[] Arguments { get; } - System.Type[] GenericArguments { get; } - object InvocationTarget { get; } - System.Reflection.MethodInfo Method { get; } - System.Reflection.MethodInfo MethodInvocationTarget { get; } - object Proxy { get; } - object ReturnValue { get; set; } - System.Type TargetType { get; } - Castle.DynamicProxy.IInvocationProceedInfo CaptureProceedInfo(); - object GetArgumentValue(int index); - System.Reflection.MethodInfo GetConcreteMethod(); - System.Reflection.MethodInfo GetConcreteMethodInvocationTarget(); - void Proceed(); - void SetArgumentValue(int index, object value); - } - public interface IInvocationProceedInfo - { - void Invoke(); - } - public interface IProxyBuilder - { - Castle.Core.Logging.ILogger Logger { get; set; } - Castle.DynamicProxy.ModuleScope ModuleScope { get; } - System.Type CreateClassProxyType(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options); - System.Type CreateClassProxyTypeWithTarget(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options); - System.Type CreateInterfaceProxyTypeWithTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, System.Type targetType, Castle.DynamicProxy.ProxyGenerationOptions options); - System.Type CreateInterfaceProxyTypeWithTargetInterface(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options); - System.Type CreateInterfaceProxyTypeWithoutTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options); - } - public interface IProxyGenerationHook - { - void MethodsInspected(); - void NonProxyableMemberNotification(System.Type type, System.Reflection.MemberInfo memberInfo); - bool ShouldInterceptMethod(System.Type type, System.Reflection.MethodInfo methodInfo); - } - [System.CLSCompliantAttribute(true)] - public interface IProxyGenerator - { - Castle.Core.Logging.ILogger Logger { get; set; } - Castle.DynamicProxy.IProxyBuilder ProxyBuilder { get; } - TClass CreateClassProxy(params Castle.DynamicProxy.IInterceptor[] interceptors) - where TClass : class; - TClass CreateClassProxy(Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TClass : class; - object CreateClassProxy(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxy(System.Type classToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxy(System.Type classToProxy, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxy(System.Type classToProxy, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxy(System.Type classToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxy(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxy(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors); - TClass CreateClassProxyWithTarget(TClass target, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TClass : class; - TClass CreateClassProxyWithTarget(TClass target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TClass : class; - object CreateClassProxyWithTarget(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxyWithTarget(System.Type classToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxyWithTarget(System.Type classToProxy, object target, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxyWithTarget(System.Type classToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxyWithTarget(System.Type classToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxyWithTarget(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxyWithTarget(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors); - TInterface CreateInterfaceProxyWithTarget(TInterface target, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class; - TInterface CreateInterfaceProxyWithTarget(TInterface target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class; - object CreateInterfaceProxyWithTarget(System.Type interfaceToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateInterfaceProxyWithTarget(System.Type interfaceToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateInterfaceProxyWithTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateInterfaceProxyWithTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateInterfaceProxyWithTargetInterface(System.Type interfaceToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors); - TInterface CreateInterfaceProxyWithTargetInterface(TInterface target, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class; - TInterface CreateInterfaceProxyWithTargetInterface(TInterface target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class; - object CreateInterfaceProxyWithTargetInterface(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateInterfaceProxyWithTargetInterface(System.Type interfaceToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateInterfaceProxyWithTargetInterface(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - TInterface CreateInterfaceProxyWithoutTarget(Castle.DynamicProxy.IInterceptor interceptor) - where TInterface : class; - TInterface CreateInterfaceProxyWithoutTarget(params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class; - TInterface CreateInterfaceProxyWithoutTarget(Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class; - object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, Castle.DynamicProxy.IInterceptor interceptor); - object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - } - public interface IProxyTargetAccessor - { - object DynProxyGetTarget(); - void DynProxySetTarget(object target); - Castle.DynamicProxy.IInterceptor[] GetInterceptors(); - } - public class InvalidMixinConfigurationException : System.Exception - { - public InvalidMixinConfigurationException(string message) { } - public InvalidMixinConfigurationException(string message, System.Exception innerException) { } - } - public class InvalidProxyConstructorArgumentsException : System.ArgumentException - { - public InvalidProxyConstructorArgumentsException(string message, System.Type proxyType, System.Type classToProxy) { } - public System.Type ClassToProxy { get; } - public System.Type ProxyType { get; } - } - public class MixinData - { - public MixinData(System.Collections.Generic.IEnumerable mixinInstances) { } - public System.Collections.Generic.IEnumerable MixinInterfaces { get; } - public System.Collections.Generic.IEnumerable Mixins { get; } - public bool ContainsMixin(System.Type mixinInterfaceType) { } - public override bool Equals(object obj) { } - public override int GetHashCode() { } - public object GetMixinInstance(System.Type mixinInterfaceType) { } - public int GetMixinPosition(System.Type mixinInterfaceType) { } - } - public class ModuleScope - { - public static readonly string DEFAULT_ASSEMBLY_NAME; - public static readonly string DEFAULT_FILE_NAME; - public ModuleScope() { } - public ModuleScope(bool savePhysicalAssembly) { } - public ModuleScope(bool savePhysicalAssembly, bool disableSignedModule) { } - public ModuleScope(bool savePhysicalAssembly, bool disableSignedModule, string strongAssemblyName, string strongModulePath, string weakAssemblyName, string weakModulePath) { } - public ModuleScope(bool savePhysicalAssembly, bool disableSignedModule, Castle.DynamicProxy.Generators.INamingScope namingScope, string strongAssemblyName, string strongModulePath, string weakAssemblyName, string weakModulePath) { } - [System.ObsoleteAttribute("Exposes a component that is intended for internal use only.")] - public Castle.Core.Internal.Lock Lock { get; } - public Castle.DynamicProxy.Generators.INamingScope NamingScope { get; } - public System.Reflection.Emit.ModuleBuilder StrongNamedModule { get; } - public string StrongNamedModuleName { get; } - public System.Reflection.Emit.ModuleBuilder WeakNamedModule { get; } - public string WeakNamedModuleName { get; } - [System.ObsoleteAttribute("Exposes a component that is intended for internal use only.")] - public System.Reflection.Emit.TypeBuilder DefineType(bool inSignedModulePreferably, string name, System.Reflection.TypeAttributes flags) { } - [System.ObsoleteAttribute("Exposes a component that is intended for internal use only.")] - public System.Type GetFromCache(Castle.DynamicProxy.Generators.CacheKey key) { } - public static byte[] GetKeyPair() { } - public System.Reflection.Emit.ModuleBuilder ObtainDynamicModule(bool isStrongNamed) { } - public System.Reflection.Emit.ModuleBuilder ObtainDynamicModuleWithStrongName() { } - public System.Reflection.Emit.ModuleBuilder ObtainDynamicModuleWithWeakName() { } - [System.ObsoleteAttribute("Exposes a component that is intended for internal use only.")] - public void RegisterInCache(Castle.DynamicProxy.Generators.CacheKey key, System.Type type) { } - } - public class ProxyGenerationException : System.Exception - { - public ProxyGenerationException(string message) { } - public ProxyGenerationException(string message, System.Exception innerException) { } - } - public class ProxyGenerationOptions - { - public static readonly Castle.DynamicProxy.ProxyGenerationOptions Default; - public ProxyGenerationOptions(Castle.DynamicProxy.IProxyGenerationHook hook) { } - public ProxyGenerationOptions() { } - public System.Collections.Generic.IList AdditionalAttributes { get; } - public System.Type BaseTypeForInterfaceProxy { get; set; } - public bool HasMixins { get; } - public Castle.DynamicProxy.IProxyGenerationHook Hook { get; set; } - public Castle.DynamicProxy.MixinData MixinData { get; } - public Castle.DynamicProxy.IInterceptorSelector Selector { get; set; } - public void AddDelegateMixin(System.Delegate @delegate) { } - public void AddDelegateTypeMixin(System.Type delegateType) { } - public void AddMixinInstance(object instance) { } - public override bool Equals(object obj) { } - public override int GetHashCode() { } - public void Initialize() { } - public object[] MixinsAsArray() { } - } - [System.CLSCompliantAttribute(true)] - public class ProxyGenerator : Castle.DynamicProxy.IProxyGenerator - { - public ProxyGenerator(Castle.DynamicProxy.IProxyBuilder builder) { } - public ProxyGenerator() { } - public ProxyGenerator(bool disableSignedModule) { } - public Castle.Core.Logging.ILogger Logger { get; set; } - public Castle.DynamicProxy.IProxyBuilder ProxyBuilder { get; } - protected System.Collections.Generic.List BuildArgumentListForClassProxy(Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.IInterceptor[] interceptors) { } - protected System.Collections.Generic.List BuildArgumentListForClassProxyWithTarget(object target, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.IInterceptor[] interceptors) { } - protected void CheckNotGenericTypeDefinition(System.Type type, string argumentName) { } - protected void CheckNotGenericTypeDefinitions(System.Collections.Generic.IEnumerable types, string argumentName) { } - public TClass CreateClassProxy(params Castle.DynamicProxy.IInterceptor[] interceptors) - where TClass : class { } - public TClass CreateClassProxy(Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TClass : class { } - public object CreateClassProxy(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxy(System.Type classToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxy(System.Type classToProxy, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxy(System.Type classToProxy, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxy(System.Type classToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxy(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public virtual object CreateClassProxy(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - protected object CreateClassProxyInstance(System.Type proxyType, System.Collections.Generic.List proxyArguments, System.Type classToProxy, object[] constructorArguments) { } - protected System.Type CreateClassProxyType(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected System.Type CreateClassProxyTypeWithTarget(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options) { } - public TClass CreateClassProxyWithTarget(TClass target, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TClass : class { } - public TClass CreateClassProxyWithTarget(TClass target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TClass : class { } - public object CreateClassProxyWithTarget(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxyWithTarget(System.Type classToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxyWithTarget(System.Type classToProxy, object target, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxyWithTarget(System.Type classToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxyWithTarget(System.Type classToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxyWithTarget(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public virtual object CreateClassProxyWithTarget(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - protected System.Type CreateInterfaceProxyTypeWithTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, System.Type targetType, Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected System.Type CreateInterfaceProxyTypeWithTargetInterface(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected System.Type CreateInterfaceProxyTypeWithoutTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options) { } - public TInterface CreateInterfaceProxyWithTarget(TInterface target, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class { } - public TInterface CreateInterfaceProxyWithTarget(TInterface target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class { } - public object CreateInterfaceProxyWithTarget(System.Type interfaceToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateInterfaceProxyWithTarget(System.Type interfaceToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateInterfaceProxyWithTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public virtual object CreateInterfaceProxyWithTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateInterfaceProxyWithTargetInterface(System.Type interfaceToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public TInterface CreateInterfaceProxyWithTargetInterface(TInterface target, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class { } - public TInterface CreateInterfaceProxyWithTargetInterface(TInterface target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class { } - public object CreateInterfaceProxyWithTargetInterface(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateInterfaceProxyWithTargetInterface(System.Type interfaceToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public virtual object CreateInterfaceProxyWithTargetInterface(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public TInterface CreateInterfaceProxyWithoutTarget(Castle.DynamicProxy.IInterceptor interceptor) - where TInterface : class { } - public TInterface CreateInterfaceProxyWithoutTarget(params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class { } - public TInterface CreateInterfaceProxyWithoutTarget(Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class { } - public object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, Castle.DynamicProxy.IInterceptor interceptor) { } - public object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public virtual object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - protected System.Collections.Generic.List GetConstructorArguments(object target, Castle.DynamicProxy.IInterceptor[] interceptors, Castle.DynamicProxy.ProxyGenerationOptions options) { } - } - public class static ProxyUtil - { - public static TDelegate CreateDelegateToMixin(object proxy) { } - public static System.Delegate CreateDelegateToMixin(object proxy, System.Type delegateType) { } - public static object GetUnproxiedInstance(object instance) { } - public static System.Type GetUnproxiedType(object instance) { } - public static bool IsAccessible(System.Reflection.MethodBase method) { } - public static bool IsAccessible(System.Reflection.MethodBase method, out string message) { } - public static bool IsAccessible(System.Type type) { } - public static bool IsProxy(object instance) { } - public static bool IsProxyType(System.Type type) { } - } - public class StandardInterceptor : Castle.DynamicProxy.IInterceptor - { - public StandardInterceptor() { } - public void Intercept(Castle.DynamicProxy.IInvocation invocation) { } - protected virtual void PerformProceed(Castle.DynamicProxy.IInvocation invocation) { } - protected virtual void PostProceed(Castle.DynamicProxy.IInvocation invocation) { } - protected virtual void PreProceed(Castle.DynamicProxy.IInvocation invocation) { } - } -} -namespace Castle.DynamicProxy.Contributors -{ - public class ClassMembersCollector : Castle.DynamicProxy.Contributors.MembersCollector - { - public ClassMembersCollector(System.Type targetType) { } - protected override Castle.DynamicProxy.Generators.MetaMethod GetMethodToGenerate(System.Reflection.MethodInfo method, Castle.DynamicProxy.IProxyGenerationHook hook, bool isStandalone) { } - } - public class ClassProxyInstanceContributor : Castle.DynamicProxy.Contributors.ProxyInstanceContributor - { - public ClassProxyInstanceContributor(System.Type targetType, System.Collections.Generic.IList methodsToSkip, System.Type[] interfaces, string typeId) { } - public override void Generate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected override Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference GetTargetReference(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter) { } - } - public class ClassProxyTargetContributor : Castle.DynamicProxy.Contributors.CompositeTypeContributor - { - public ClassProxyTargetContributor(System.Type targetType, System.Collections.Generic.IList methodsToSkip, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected override System.Collections.Generic.IEnumerable CollectElementsToProxyInternal(Castle.DynamicProxy.IProxyGenerationHook hook) { } - protected override Castle.DynamicProxy.Generators.MethodGenerator GetMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod) { } - } - public class ClassProxyWithTargetTargetContributor : Castle.DynamicProxy.Contributors.CompositeTypeContributor - { - public ClassProxyWithTargetTargetContributor(System.Type targetType, System.Collections.Generic.IList methodsToSkip, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected override System.Collections.Generic.IEnumerable CollectElementsToProxyInternal(Castle.DynamicProxy.IProxyGenerationHook hook) { } - protected override Castle.DynamicProxy.Generators.MethodGenerator GetMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod) { } - } - public abstract class CompositeTypeContributor : Castle.DynamicProxy.Contributors.ITypeContributor - { - protected readonly System.Collections.Generic.ICollection interfaces; - protected readonly Castle.DynamicProxy.Generators.INamingScope namingScope; - protected CompositeTypeContributor(Castle.DynamicProxy.Generators.INamingScope namingScope) { } - public Castle.Core.Logging.ILogger Logger { get; set; } - public void AddInterfaceToProxy(System.Type @interface) { } - public void CollectElementsToProxy(Castle.DynamicProxy.IProxyGenerationHook hook, Castle.DynamicProxy.Generators.MetaType model) { } - protected abstract System.Collections.Generic.IEnumerable CollectElementsToProxyInternal(Castle.DynamicProxy.IProxyGenerationHook hook); - public virtual void Generate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected abstract Castle.DynamicProxy.Generators.MethodGenerator GetMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod); - } - public class DelegateProxyTargetContributor : Castle.DynamicProxy.Contributors.CompositeTypeContributor - { - public DelegateProxyTargetContributor(System.Type targetType, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected override System.Collections.Generic.IEnumerable CollectElementsToProxyInternal(Castle.DynamicProxy.IProxyGenerationHook hook) { } - protected override Castle.DynamicProxy.Generators.MethodGenerator GetMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod) { } - } - public class DelegateTypeGenerator : Castle.DynamicProxy.Generators.IGenerator - { - public DelegateTypeGenerator(Castle.DynamicProxy.Generators.MetaMethod method, System.Type targetType) { } - public Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter Generate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public class FieldReferenceComparer : System.Collections.Generic.IComparer - { - public FieldReferenceComparer() { } - public int Compare(System.Type x, System.Type y) { } - } - public class ForwardingMethodGenerator : Castle.DynamicProxy.Generators.MethodGenerator - { - public ForwardingMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod, Castle.DynamicProxy.Contributors.GetTargetReferenceDelegate getTargetReference) { } - protected override Castle.DynamicProxy.Generators.Emitters.MethodEmitter BuildProxiedMethodBody(Castle.DynamicProxy.Generators.Emitters.MethodEmitter emitter, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public delegate Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression GetTargetExpressionDelegate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, System.Reflection.MethodInfo method); - public delegate Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference GetTargetReferenceDelegate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, System.Reflection.MethodInfo method); - public interface ITypeContributor - { - void CollectElementsToProxy(Castle.DynamicProxy.IProxyGenerationHook hook, Castle.DynamicProxy.Generators.MetaType model); - void Generate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options); - } - public class InterfaceMembersCollector : Castle.DynamicProxy.Contributors.MembersCollector - { - public InterfaceMembersCollector(System.Type @interface) { } - protected override Castle.DynamicProxy.Generators.MetaMethod GetMethodToGenerate(System.Reflection.MethodInfo method, Castle.DynamicProxy.IProxyGenerationHook hook, bool isStandalone) { } - } - public class InterfaceMembersOnClassCollector : Castle.DynamicProxy.Contributors.MembersCollector - { - public InterfaceMembersOnClassCollector(System.Type type, bool onlyProxyVirtual, System.Reflection.InterfaceMapping map) { } - protected override Castle.DynamicProxy.Generators.MetaMethod GetMethodToGenerate(System.Reflection.MethodInfo method, Castle.DynamicProxy.IProxyGenerationHook hook, bool isStandalone) { } - } - public class InterfaceProxyInstanceContributor : Castle.DynamicProxy.Contributors.ProxyInstanceContributor - { - public InterfaceProxyInstanceContributor(System.Type targetType, string proxyGeneratorId, System.Type[] interfaces) { } - protected override Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference GetTargetReference(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter) { } - } - public class InterfaceProxyTargetContributor : Castle.DynamicProxy.Contributors.CompositeTypeContributor - { - public InterfaceProxyTargetContributor(System.Type proxyTargetType, bool canChangeTarget, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected override System.Collections.Generic.IEnumerable CollectElementsToProxyInternal(Castle.DynamicProxy.IProxyGenerationHook hook) { } - protected virtual Castle.DynamicProxy.Contributors.MembersCollector GetCollectorForInterface(System.Type @interface) { } - protected override Castle.DynamicProxy.Generators.MethodGenerator GetMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod) { } - } - public class InterfaceProxyWithOptionalTargetContributor : Castle.DynamicProxy.Contributors.InterfaceProxyWithoutTargetContributor - { - public InterfaceProxyWithOptionalTargetContributor(Castle.DynamicProxy.Generators.INamingScope namingScope, Castle.DynamicProxy.Contributors.GetTargetExpressionDelegate getTarget, Castle.DynamicProxy.Contributors.GetTargetReferenceDelegate getTargetReference) { } - protected override Castle.DynamicProxy.Generators.MethodGenerator GetMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod) { } - } - public class InterfaceProxyWithTargetInterfaceTargetContributor : Castle.DynamicProxy.Contributors.InterfaceProxyTargetContributor - { - public InterfaceProxyWithTargetInterfaceTargetContributor(System.Type proxyTargetType, bool allowChangeTarget, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected override Castle.DynamicProxy.Contributors.MembersCollector GetCollectorForInterface(System.Type @interface) { } - } - public class InterfaceProxyWithoutTargetContributor : Castle.DynamicProxy.Contributors.CompositeTypeContributor - { - protected bool canChangeTarget; - public InterfaceProxyWithoutTargetContributor(Castle.DynamicProxy.Generators.INamingScope namingScope, Castle.DynamicProxy.Contributors.GetTargetExpressionDelegate getTarget) { } - protected override System.Collections.Generic.IEnumerable CollectElementsToProxyInternal(Castle.DynamicProxy.IProxyGenerationHook hook) { } - protected override Castle.DynamicProxy.Generators.MethodGenerator GetMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod) { } - } - public class InvocationWithDelegateContributor : Castle.DynamicProxy.Generators.IInvocationCreationContributor - { - public InvocationWithDelegateContributor(System.Type delegateType, System.Type targetType, Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - public Castle.DynamicProxy.Generators.Emitters.ConstructorEmitter CreateConstructor(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] baseCtorArguments, Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter invocation) { } - public System.Reflection.MethodInfo GetCallbackMethod() { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.MethodInvocationExpression GetCallbackMethodInvocation(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter invocation, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference targetField, Castle.DynamicProxy.Generators.Emitters.MethodEmitter invokeMethodOnTarget) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] GetConstructorInvocationArguments(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] arguments, Castle.DynamicProxy.Generators.Emitters.ClassEmitter proxy) { } - } - public class InvocationWithGenericDelegateContributor : Castle.DynamicProxy.Generators.IInvocationCreationContributor - { - public InvocationWithGenericDelegateContributor(System.Type delegateType, Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference targetReference) { } - public Castle.DynamicProxy.Generators.Emitters.ConstructorEmitter CreateConstructor(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] baseCtorArguments, Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter invocation) { } - public System.Reflection.MethodInfo GetCallbackMethod() { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.MethodInvocationExpression GetCallbackMethodInvocation(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter invocation, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference targetField, Castle.DynamicProxy.Generators.Emitters.MethodEmitter invokeMethodOnTarget) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] GetConstructorInvocationArguments(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] arguments, Castle.DynamicProxy.Generators.Emitters.ClassEmitter proxy) { } - } - public abstract class MembersCollector - { - protected readonly System.Type type; - protected MembersCollector(System.Type type) { } - public System.Collections.Generic.IEnumerable Events { get; } - public Castle.Core.Logging.ILogger Logger { get; set; } - public System.Collections.Generic.IEnumerable Methods { get; } - public System.Collections.Generic.IEnumerable Properties { get; } - protected bool AcceptMethod(System.Reflection.MethodInfo method, bool onlyVirtuals, Castle.DynamicProxy.IProxyGenerationHook hook) { } - public virtual void CollectMembersToProxy(Castle.DynamicProxy.IProxyGenerationHook hook) { } - protected abstract Castle.DynamicProxy.Generators.MetaMethod GetMethodToGenerate(System.Reflection.MethodInfo method, Castle.DynamicProxy.IProxyGenerationHook hook, bool isStandalone); - } - public class MinimialisticMethodGenerator : Castle.DynamicProxy.Generators.MethodGenerator - { - public MinimialisticMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod) { } - protected override Castle.DynamicProxy.Generators.Emitters.MethodEmitter BuildProxiedMethodBody(Castle.DynamicProxy.Generators.Emitters.MethodEmitter emitter, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public class MixinContributor : Castle.DynamicProxy.Contributors.CompositeTypeContributor - { - public MixinContributor(Castle.DynamicProxy.Generators.INamingScope namingScope, bool canChangeTarget) { } - public System.Collections.Generic.IEnumerable Fields { get; } - public void AddEmptyInterface(System.Type @interface) { } - protected override System.Collections.Generic.IEnumerable CollectElementsToProxyInternal(Castle.DynamicProxy.IProxyGenerationHook hook) { } - public override void Generate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected override Castle.DynamicProxy.Generators.MethodGenerator GetMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod) { } - } - public class OptionallyForwardingMethodGenerator : Castle.DynamicProxy.Generators.MethodGenerator - { - public OptionallyForwardingMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod, Castle.DynamicProxy.Contributors.GetTargetReferenceDelegate getTargetReference) { } - protected override Castle.DynamicProxy.Generators.Emitters.MethodEmitter BuildProxiedMethodBody(Castle.DynamicProxy.Generators.Emitters.MethodEmitter emitter, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public delegate Castle.DynamicProxy.Generators.Emitters.MethodEmitter OverrideMethodDelegate(string name, System.Reflection.MethodAttributes attributes, System.Reflection.MethodInfo methodToOverride); - public abstract class ProxyInstanceContributor : Castle.DynamicProxy.Contributors.ITypeContributor - { - protected readonly System.Type targetType; - protected ProxyInstanceContributor(System.Type targetType, System.Type[] interfaces, string proxyTypeId) { } - public void CollectElementsToProxy(Castle.DynamicProxy.IProxyGenerationHook hook, Castle.DynamicProxy.Generators.MetaType model) { } - public virtual void Generate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected abstract Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference GetTargetReference(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter); - protected void ImplementProxyTargetAccessor(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter, Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference interceptorsField) { } - } - public class WrappedClassMembersCollector : Castle.DynamicProxy.Contributors.ClassMembersCollector - { - public WrappedClassMembersCollector(System.Type type) { } - public override void CollectMembersToProxy(Castle.DynamicProxy.IProxyGenerationHook hook) { } - protected override Castle.DynamicProxy.Generators.MetaMethod GetMethodToGenerate(System.Reflection.MethodInfo method, Castle.DynamicProxy.IProxyGenerationHook hook, bool isStandalone) { } - protected bool IsGeneratedByTheCompiler(System.Reflection.FieldInfo field) { } - protected virtual bool IsOKToBeOnProxy(System.Reflection.FieldInfo field) { } - } -} -namespace Castle.DynamicProxy.Generators -{ - public class static AttributesToAvoidReplicating - { - public static void Add(System.Type attribute) { } - public static void Add() { } - public static bool Contains(System.Type attribute) { } - } - public abstract class BaseProxyGenerator - { - protected readonly System.Type targetType; - protected BaseProxyGenerator(Castle.DynamicProxy.ModuleScope scope, System.Type targetType) { } - public Castle.Core.Logging.ILogger Logger { get; set; } - protected Castle.DynamicProxy.ProxyGenerationOptions ProxyGenerationOptions { get; set; } - protected Castle.DynamicProxy.ModuleScope Scope { get; } - protected void AddMapping(System.Type @interface, Castle.DynamicProxy.Contributors.ITypeContributor implementer, System.Collections.Generic.IDictionary mapping) { } - protected void AddMappingNoCheck(System.Type @interface, Castle.DynamicProxy.Contributors.ITypeContributor implementer, System.Collections.Generic.IDictionary mapping) { } - [System.ObsoleteAttribute("Exposes a component that is intended for internal use only.")] - protected void AddToCache(Castle.DynamicProxy.Generators.CacheKey key, System.Type type) { } - protected virtual Castle.DynamicProxy.Generators.Emitters.ClassEmitter BuildClassEmitter(string typeName, System.Type parentType, System.Collections.Generic.IEnumerable interfaces) { } - protected void CheckNotGenericTypeDefinition(System.Type type, string argumentName) { } - protected void CheckNotGenericTypeDefinitions(System.Collections.Generic.IEnumerable types, string argumentName) { } - protected void CompleteInitCacheMethod(Castle.DynamicProxy.Generators.Emitters.CodeBuilders.ConstructorCodeBuilder constCodeBuilder) { } - protected virtual void CreateFields(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter) { } - protected void CreateInterceptorsField(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter) { } - protected Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference CreateOptionsField(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter) { } - protected void CreateSelectorField(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter) { } - protected virtual void CreateTypeAttributes(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter) { } - protected void EnsureOptionsOverrideEqualsAndGetHashCode(Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected void GenerateConstructor(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter, System.Reflection.ConstructorInfo baseConstructor, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference[] fields) { } - protected void GenerateConstructors(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter, System.Type baseType, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference[] fields) { } - protected void GenerateParameterlessConstructor(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter, System.Type baseClass, Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference interceptorField) { } - protected Castle.DynamicProxy.Generators.Emitters.ConstructorEmitter GenerateStaticConstructor(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter) { } - [System.ObsoleteAttribute("Exposes a component that is intended for internal use only.")] - protected System.Type GetFromCache(Castle.DynamicProxy.Generators.CacheKey key) { } - protected void HandleExplicitlyPassedProxyTargetAccessor(System.Collections.Generic.ICollection targetInterfaces, System.Collections.Generic.ICollection additionalInterfaces) { } - protected void InitializeStaticFields(System.Type builtType) { } - [System.ObsoleteAttribute("Exposes a component that is intended for internal use only.")] - protected System.Type ObtainProxyType(Castle.DynamicProxy.Generators.CacheKey cacheKey, System.Func factory) { } - } - [System.ObsoleteAttribute("Intended for internal use only.")] - public class CacheKey - { - public CacheKey(System.Reflection.MemberInfo target, System.Type type, System.Type[] interfaces, Castle.DynamicProxy.ProxyGenerationOptions options) { } - public CacheKey(System.Type target, System.Type[] interfaces, Castle.DynamicProxy.ProxyGenerationOptions options) { } - public override bool Equals(object obj) { } - public override int GetHashCode() { } - } - public class ClassProxyGenerator : Castle.DynamicProxy.Generators.BaseProxyGenerator - { - public ClassProxyGenerator(Castle.DynamicProxy.ModuleScope scope, System.Type targetType) { } - public System.Type GenerateCode(System.Type[] interfaces, Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected virtual System.Type GenerateType(string name, System.Type[] interfaces, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected virtual System.Collections.Generic.IEnumerable GetTypeImplementerMapping(System.Type[] interfaces, out System.Collections.Generic.IEnumerable contributors, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public class ClassProxyWithTargetGenerator : Castle.DynamicProxy.Generators.BaseProxyGenerator - { - public ClassProxyWithTargetGenerator(Castle.DynamicProxy.ModuleScope scope, System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options) { } - public System.Type GetGeneratedType() { } - protected virtual System.Collections.Generic.IEnumerable GetTypeImplementerMapping(out System.Collections.Generic.IEnumerable contributors, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public class CompositionInvocationTypeGenerator : Castle.DynamicProxy.Generators.InvocationTypeGenerator - { - public static readonly System.Type BaseType; - public CompositionInvocationTypeGenerator(System.Type target, Castle.DynamicProxy.Generators.MetaMethod method, System.Reflection.MethodInfo callback, bool canChangeTarget, Castle.DynamicProxy.Generators.IInvocationCreationContributor contributor) { } - protected override Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] GetBaseCtorArguments(System.Type targetFieldType, Castle.DynamicProxy.ProxyGenerationOptions proxyGenerationOptions, out System.Reflection.ConstructorInfo baseConstructor) { } - protected override System.Type GetBaseType() { } - protected override Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference GetTargetReference() { } - protected override void ImplementInvokeMethodOnTarget(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter invocation, System.Reflection.ParameterInfo[] parameters, Castle.DynamicProxy.Generators.Emitters.MethodEmitter invokeMethodOnTarget, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference targetField) { } - } - public class DelegateMembersCollector : Castle.DynamicProxy.Contributors.MembersCollector - { - public DelegateMembersCollector(System.Type type) { } - protected override Castle.DynamicProxy.Generators.MetaMethod GetMethodToGenerate(System.Reflection.MethodInfo method, Castle.DynamicProxy.IProxyGenerationHook hook, bool isStandalone) { } - } - public class DelegateProxyGenerationHook : Castle.DynamicProxy.IProxyGenerationHook - { - public DelegateProxyGenerationHook() { } - public override bool Equals(object obj) { } - public override int GetHashCode() { } - public void MethodsInspected() { } - public void NonProxyableMemberNotification(System.Type type, System.Reflection.MemberInfo memberInfo) { } - public bool ShouldInterceptMethod(System.Type type, System.Reflection.MethodInfo methodInfo) { } - } - public class DelegateProxyGenerator : Castle.DynamicProxy.Generators.BaseProxyGenerator - { - public DelegateProxyGenerator(Castle.DynamicProxy.ModuleScope scope, System.Type delegateType) { } - public System.Type GetProxyType() { } - protected virtual System.Collections.Generic.IEnumerable GetTypeImplementerMapping(out System.Collections.Generic.IEnumerable contributors, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public class GeneratorException : System.Exception - { - public GeneratorException(string message) { } - public GeneratorException(string message, System.Exception innerException) { } - } - public class static GeneratorUtil - { - public static void CopyOutAndRefParameters(Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference[] dereferencedArguments, Castle.DynamicProxy.Generators.Emitters.SimpleAST.LocalReference invocation, System.Reflection.MethodInfo method, Castle.DynamicProxy.Generators.Emitters.MethodEmitter emitter) { } - } - public interface IGenerator - { - T Generate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Generators.INamingScope namingScope); - } - public interface IInvocationCreationContributor - { - Castle.DynamicProxy.Generators.Emitters.ConstructorEmitter CreateConstructor(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] baseCtorArguments, Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter invocation); - System.Reflection.MethodInfo GetCallbackMethod(); - Castle.DynamicProxy.Generators.Emitters.SimpleAST.MethodInvocationExpression GetCallbackMethodInvocation(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter invocation, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference targetField, Castle.DynamicProxy.Generators.Emitters.MethodEmitter invokeMethodOnTarget); - Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] GetConstructorInvocationArguments(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] arguments, Castle.DynamicProxy.Generators.Emitters.ClassEmitter proxy); - } - public interface INamingScope - { - Castle.DynamicProxy.Generators.INamingScope ParentScope { get; } - string GetUniqueName(string suggestedName); - Castle.DynamicProxy.Generators.INamingScope SafeSubScope(); - } - public class InheritanceInvocationTypeGenerator : Castle.DynamicProxy.Generators.InvocationTypeGenerator - { - public static readonly System.Type BaseType; - public InheritanceInvocationTypeGenerator(System.Type targetType, Castle.DynamicProxy.Generators.MetaMethod method, System.Reflection.MethodInfo callback, Castle.DynamicProxy.Generators.IInvocationCreationContributor contributor) { } - protected override Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] GetBaseCtorArguments(System.Type targetFieldType, Castle.DynamicProxy.ProxyGenerationOptions proxyGenerationOptions, out System.Reflection.ConstructorInfo baseConstructor) { } - protected override System.Type GetBaseType() { } - protected override Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference GetTargetReference() { } - } - public class InterfaceProxyWithTargetGenerator : Castle.DynamicProxy.Generators.BaseProxyGenerator - { - protected Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference targetField; - public InterfaceProxyWithTargetGenerator(Castle.DynamicProxy.ModuleScope scope, System.Type @interface) { } - protected virtual bool AllowChangeTarget { get; } - protected virtual string GeneratorType { get; } - protected virtual Castle.DynamicProxy.Contributors.ITypeContributor AddMappingForTargetType(System.Collections.Generic.IDictionary typeImplementerMapping, System.Type proxyTargetType, System.Collections.Generic.ICollection targetInterfaces, System.Collections.Generic.ICollection additionalInterfaces, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - public System.Type GenerateCode(System.Type proxyTargetType, System.Type[] interfaces, Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected virtual System.Type GenerateType(string typeName, System.Type proxyTargetType, System.Type[] interfaces, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected virtual Castle.DynamicProxy.Contributors.InterfaceProxyWithoutTargetContributor GetContributorForAdditionalInterfaces(Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected virtual System.Collections.Generic.IEnumerable GetTypeImplementerMapping(System.Type[] interfaces, System.Type proxyTargetType, out System.Collections.Generic.IEnumerable contributors, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected virtual System.Type Init(string typeName, out Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter, System.Type proxyTargetType, out Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference interceptorsField, System.Collections.Generic.IEnumerable interfaces) { } - } - public class InterfaceProxyWithTargetInterfaceGenerator : Castle.DynamicProxy.Generators.InterfaceProxyWithTargetGenerator - { - public InterfaceProxyWithTargetInterfaceGenerator(Castle.DynamicProxy.ModuleScope scope, System.Type @interface) { } - protected override bool AllowChangeTarget { get; } - protected override string GeneratorType { get; } - protected override Castle.DynamicProxy.Contributors.ITypeContributor AddMappingForTargetType(System.Collections.Generic.IDictionary typeImplementerMapping, System.Type proxyTargetType, System.Collections.Generic.ICollection targetInterfaces, System.Collections.Generic.ICollection additionalInterfaces, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected override Castle.DynamicProxy.Contributors.InterfaceProxyWithoutTargetContributor GetContributorForAdditionalInterfaces(Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public class InterfaceProxyWithoutTargetGenerator : Castle.DynamicProxy.Generators.InterfaceProxyWithTargetGenerator - { - public InterfaceProxyWithoutTargetGenerator(Castle.DynamicProxy.ModuleScope scope, System.Type @interface) { } - protected override string GeneratorType { get; } - protected override Castle.DynamicProxy.Contributors.ITypeContributor AddMappingForTargetType(System.Collections.Generic.IDictionary interfaceTypeImplementerMapping, System.Type proxyTargetType, System.Collections.Generic.ICollection targetInterfaces, System.Collections.Generic.ICollection additionalInterfaces, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected override System.Type GenerateType(string typeName, System.Type proxyTargetType, System.Type[] interfaces, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public abstract class InvocationTypeGenerator : Castle.DynamicProxy.Generators.IGenerator - { - protected readonly Castle.DynamicProxy.Generators.MetaMethod method; - protected readonly System.Type targetType; - protected InvocationTypeGenerator(System.Type targetType, Castle.DynamicProxy.Generators.MetaMethod method, System.Reflection.MethodInfo callback, bool canChangeTarget, Castle.DynamicProxy.Generators.IInvocationCreationContributor contributor) { } - public Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter Generate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected abstract Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] GetBaseCtorArguments(System.Type targetFieldType, Castle.DynamicProxy.ProxyGenerationOptions proxyGenerationOptions, out System.Reflection.ConstructorInfo baseConstructor); - protected abstract System.Type GetBaseType(); - protected virtual Castle.DynamicProxy.Generators.Emitters.SimpleAST.MethodInvocationExpression GetCallbackMethodInvocation(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter invocation, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args, System.Reflection.MethodInfo callbackMethod, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference targetField, Castle.DynamicProxy.Generators.Emitters.MethodEmitter invokeMethodOnTarget) { } - protected abstract Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference GetTargetReference(); - protected virtual void ImplementInvokeMethodOnTarget(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter invocation, System.Reflection.ParameterInfo[] parameters, Castle.DynamicProxy.Generators.Emitters.MethodEmitter invokeMethodOnTarget, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference targetField) { } - } - public class MetaEvent : Castle.DynamicProxy.Generators.MetaTypeElement, System.IEquatable - { - public MetaEvent(string name, System.Type declaringType, System.Type eventDelegateType, Castle.DynamicProxy.Generators.MetaMethod adder, Castle.DynamicProxy.Generators.MetaMethod remover, System.Reflection.EventAttributes attributes) { } - public Castle.DynamicProxy.Generators.MetaMethod Adder { get; } - public System.Reflection.EventAttributes Attributes { get; } - public Castle.DynamicProxy.Generators.Emitters.EventEmitter Emitter { get; } - public Castle.DynamicProxy.Generators.MetaMethod Remover { get; } - public void BuildEventEmitter(Castle.DynamicProxy.Generators.Emitters.ClassEmitter classEmitter) { } - public override bool Equals(object obj) { } - public bool Equals(Castle.DynamicProxy.Generators.MetaEvent other) { } - public override int GetHashCode() { } - } - [System.Diagnostics.DebuggerDisplayAttribute("{Method}")] - public class MetaMethod : Castle.DynamicProxy.Generators.MetaTypeElement, System.IEquatable - { - public MetaMethod(System.Reflection.MethodInfo method, System.Reflection.MethodInfo methodOnTarget, bool standalone, bool proxyable, bool hasTarget) { } - public System.Reflection.MethodAttributes Attributes { get; } - public bool HasTarget { get; } - public System.Reflection.MethodInfo Method { get; } - public System.Reflection.MethodInfo MethodOnTarget { get; } - public string Name { get; } - public bool Proxyable { get; } - public bool Standalone { get; } - public bool Equals(Castle.DynamicProxy.Generators.MetaMethod other) { } - } - public class MetaProperty : Castle.DynamicProxy.Generators.MetaTypeElement, System.IEquatable - { - public MetaProperty(string name, System.Type propertyType, System.Type declaringType, Castle.DynamicProxy.Generators.MetaMethod getter, Castle.DynamicProxy.Generators.MetaMethod setter, System.Collections.Generic.IEnumerable customAttributes, System.Type[] arguments) { } - public System.Type[] Arguments { get; } - public bool CanRead { get; } - public bool CanWrite { get; } - public Castle.DynamicProxy.Generators.Emitters.PropertyEmitter Emitter { get; } - public System.Reflection.MethodInfo GetMethod { get; } - public Castle.DynamicProxy.Generators.MetaMethod Getter { get; } - public System.Reflection.MethodInfo SetMethod { get; } - public Castle.DynamicProxy.Generators.MetaMethod Setter { get; } - public void BuildPropertyEmitter(Castle.DynamicProxy.Generators.Emitters.ClassEmitter classEmitter) { } - public override bool Equals(object obj) { } - public bool Equals(Castle.DynamicProxy.Generators.MetaProperty other) { } - public override int GetHashCode() { } - } - public class MetaType - { - public MetaType() { } - public System.Collections.Generic.IEnumerable Events { get; } - public System.Collections.Generic.IEnumerable Methods { get; } - public System.Collections.Generic.IEnumerable Properties { get; } - public void AddEvent(Castle.DynamicProxy.Generators.MetaEvent @event) { } - public void AddMethod(Castle.DynamicProxy.Generators.MetaMethod method) { } - public void AddProperty(Castle.DynamicProxy.Generators.MetaProperty property) { } - } - public abstract class MetaTypeElement - { - protected readonly System.Type sourceType; - protected MetaTypeElement(System.Type sourceType) { } - } - public class MethodFinder - { - public MethodFinder() { } - public static System.Reflection.MethodInfo[] GetAllInstanceMethods(System.Type type, System.Reflection.BindingFlags flags) { } - } - public abstract class MethodGenerator : Castle.DynamicProxy.Generators.IGenerator - { - protected MethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod) { } - protected System.Reflection.MethodInfo MethodOnTarget { get; } - protected System.Reflection.MethodInfo MethodToOverride { get; } - protected abstract Castle.DynamicProxy.Generators.Emitters.MethodEmitter BuildProxiedMethodBody(Castle.DynamicProxy.Generators.Emitters.MethodEmitter emitter, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Generators.INamingScope namingScope); - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter Generate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public class MethodSignatureComparer : System.Collections.Generic.IEqualityComparer - { - public static readonly Castle.DynamicProxy.Generators.MethodSignatureComparer Instance; - public MethodSignatureComparer() { } - public bool EqualGenericParameters(System.Reflection.MethodInfo x, System.Reflection.MethodInfo y) { } - public bool EqualParameters(System.Reflection.MethodInfo x, System.Reflection.MethodInfo y) { } - public bool EqualSignatureTypes(System.Type x, System.Type y) { } - public bool Equals(System.Reflection.MethodInfo x, System.Reflection.MethodInfo y) { } - public int GetHashCode(System.Reflection.MethodInfo obj) { } - } - public class MethodWithInvocationGenerator : Castle.DynamicProxy.Generators.MethodGenerator - { - public MethodWithInvocationGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference interceptors, System.Type invocation, Castle.DynamicProxy.Contributors.GetTargetExpressionDelegate getTargetExpression, Castle.DynamicProxy.Contributors.OverrideMethodDelegate createMethod, Castle.DynamicProxy.Generators.IInvocationCreationContributor contributor) { } - public MethodWithInvocationGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference interceptors, System.Type invocation, Castle.DynamicProxy.Contributors.GetTargetExpressionDelegate getTargetExpression, Castle.DynamicProxy.Contributors.GetTargetExpressionDelegate getTargetTypeExpression, Castle.DynamicProxy.Contributors.OverrideMethodDelegate createMethod, Castle.DynamicProxy.Generators.IInvocationCreationContributor contributor) { } - protected Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference BuildMethodInterceptorsField(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, System.Reflection.MethodInfo method, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected override Castle.DynamicProxy.Generators.Emitters.MethodEmitter BuildProxiedMethodBody(Castle.DynamicProxy.Generators.Emitters.MethodEmitter emitter, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public class NamingScope : Castle.DynamicProxy.Generators.INamingScope - { - public NamingScope() { } - public Castle.DynamicProxy.Generators.INamingScope ParentScope { get; } - public string GetUniqueName(string suggestedName) { } - public Castle.DynamicProxy.Generators.INamingScope SafeSubScope() { } - } - public class TypeElementCollection : System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - where TElement : Castle.DynamicProxy.Generators.MetaTypeElement, System.IEquatable - { - public TypeElementCollection() { } - public int Count { get; } - public void Add(TElement item) { } - public bool Contains(TElement item) { } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - } -} -namespace Castle.DynamicProxy.Generators.Emitters -{ - public abstract class AbstractTypeEmitter - { - protected AbstractTypeEmitter(System.Reflection.Emit.TypeBuilder typeBuilder) { } - public System.Type BaseType { get; } - public Castle.DynamicProxy.Generators.Emitters.TypeConstructorEmitter ClassConstructor { get; } - public Castle.DynamicProxy.Generators.Emitters.ConstructorCollection Constructors { get; } - public System.Reflection.Emit.GenericTypeParameterBuilder[] GenericTypeParams { get; } - public Castle.DynamicProxy.Generators.Emitters.NestedClassCollection Nested { get; } - public System.Reflection.Emit.TypeBuilder TypeBuilder { get; } - public void AddCustomAttributes(Castle.DynamicProxy.ProxyGenerationOptions proxyGenerationOptions) { } - public virtual System.Type BuildType() { } - public void CopyGenericParametersFromMethod(System.Reflection.MethodInfo methodToCopyGenericsFrom) { } - public Castle.DynamicProxy.Generators.Emitters.ConstructorEmitter CreateConstructor(params Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] arguments) { } - public void CreateDefaultConstructor() { } - public Castle.DynamicProxy.Generators.Emitters.EventEmitter CreateEvent(string name, System.Reflection.EventAttributes atts, System.Type type) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference CreateField(string name, System.Type fieldType) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference CreateField(string name, System.Type fieldType, bool serializable) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference CreateField(string name, System.Type fieldType, System.Reflection.FieldAttributes atts) { } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateMethod(string name, System.Reflection.MethodAttributes attrs, System.Type returnType, params System.Type[] argumentTypes) { } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateMethod(string name, System.Type returnType, params System.Type[] parameterTypes) { } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateMethod(string name, System.Reflection.MethodInfo methodToUseAsATemplate) { } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateMethod(string name, System.Reflection.MethodAttributes attributes, System.Reflection.MethodInfo methodToUseAsATemplate) { } - public Castle.DynamicProxy.Generators.Emitters.PropertyEmitter CreateProperty(string name, System.Reflection.PropertyAttributes attributes, System.Type propertyType, System.Type[] arguments) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference CreateStaticField(string name, System.Type fieldType) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference CreateStaticField(string name, System.Type fieldType, System.Reflection.FieldAttributes atts) { } - protected System.Type CreateType(System.Reflection.Emit.TypeBuilder type) { } - public Castle.DynamicProxy.Generators.Emitters.ConstructorEmitter CreateTypeConstructor() { } - public void DefineCustomAttribute(System.Reflection.Emit.CustomAttributeBuilder attribute) { } - public void DefineCustomAttribute(object[] constructorArguments) - where TAttribute : System.Attribute { } - public void DefineCustomAttribute() - where TAttribute : System.Attribute, new () { } - public void DefineCustomAttributeFor(Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference field) - where TAttribute : System.Attribute, new () { } - protected virtual void EnsureBuildersAreInAValidState() { } - public System.Collections.Generic.IEnumerable GetAllFields() { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference GetField(string name) { } - public System.Type GetGenericArgument(string genericArgumentName) { } - public System.Type[] GetGenericArgumentsFor(System.Type genericType) { } - public System.Type[] GetGenericArgumentsFor(System.Reflection.MethodInfo genericMethod) { } - public void SetGenericTypeParameters(System.Reflection.Emit.GenericTypeParameterBuilder[] genericTypeParameterBuilders) { } - } - public abstract class ArgumentsUtil - { - protected ArgumentsUtil() { } - public static Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] ConvertArgumentReferenceToExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] args) { } - public static Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] ConvertToArgumentReference(System.Type[] args) { } - public static Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] ConvertToArgumentReference(System.Reflection.ParameterInfo[] args) { } - public static Castle.DynamicProxy.Generators.Emitters.SimpleAST.ReferenceExpression[] ConvertToArgumentReferenceExpression(System.Reflection.ParameterInfo[] args) { } - public static void EmitLoadOwnerAndReference(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference reference, System.Reflection.Emit.ILGenerator il) { } - public static System.Type[] GetTypes(System.Reflection.ParameterInfo[] parameters) { } - public static System.Type[] InitializeAndConvert(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] args) { } - public static void InitializeArgumentsByPosition(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] args, bool isStatic) { } - [System.ObsoleteAttribute()] - public static bool IsAnyByRef(System.Reflection.ParameterInfo[] parameters) { } - } - public class ClassEmitter : Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter - { - public ClassEmitter(Castle.DynamicProxy.ModuleScope modulescope, string name, System.Type baseType, System.Collections.Generic.IEnumerable interfaces) { } - public ClassEmitter(Castle.DynamicProxy.ModuleScope modulescope, string name, System.Type baseType, System.Collections.Generic.IEnumerable interfaces, System.Reflection.TypeAttributes flags) { } - public ClassEmitter(Castle.DynamicProxy.ModuleScope modulescope, string name, System.Type baseType, System.Collections.Generic.IEnumerable interfaces, System.Reflection.TypeAttributes flags, bool forceUnsigned) { } - public ClassEmitter(System.Reflection.Emit.TypeBuilder typeBuilder) { } - public Castle.DynamicProxy.ModuleScope ModuleScope { get; } - protected virtual System.Collections.Generic.IEnumerable InitializeGenericArgumentsFromBases(ref System.Type baseType, System.Collections.Generic.IEnumerable interfaces) { } - } - public class ConstructorCollection : System.Collections.ObjectModel.Collection - { - public ConstructorCollection() { } - } - public class ConstructorEmitter : Castle.DynamicProxy.Generators.Emitters.IMemberEmitter - { - protected ConstructorEmitter(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter maintype, System.Reflection.Emit.ConstructorBuilder builder) { } - public virtual Castle.DynamicProxy.Generators.Emitters.CodeBuilders.ConstructorCodeBuilder CodeBuilder { get; } - public System.Reflection.Emit.ConstructorBuilder ConstructorBuilder { get; } - public System.Reflection.MemberInfo Member { get; } - public System.Type ReturnType { get; } - public virtual void EnsureValidCodeBlock() { } - public virtual void Generate() { } - } - public class EventCollection : System.Collections.ObjectModel.Collection - { - public EventCollection() { } - } - public class EventEmitter : Castle.DynamicProxy.Generators.Emitters.IMemberEmitter - { - public EventEmitter(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter typeEmitter, string name, System.Reflection.EventAttributes attributes, System.Type type) { } - public System.Reflection.MemberInfo Member { get; } - public System.Type ReturnType { get; } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateAddMethod(string addMethodName, System.Reflection.MethodAttributes attributes, System.Reflection.MethodInfo methodToOverride) { } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateRemoveMethod(string removeMethodName, System.Reflection.MethodAttributes attributes, System.Reflection.MethodInfo methodToOverride) { } - public void EnsureValidCodeBlock() { } - public void Generate() { } - } - public interface IMemberEmitter - { - System.Reflection.MemberInfo Member { get; } - System.Type ReturnType { get; } - void EnsureValidCodeBlock(); - void Generate(); - } - public sealed class LdcOpCodesDictionary : System.Collections.Generic.Dictionary - { - public static System.Reflection.Emit.OpCode EmptyOpCode { get; } - public static Castle.DynamicProxy.Generators.Emitters.LdcOpCodesDictionary Instance { get; } - public System.Reflection.Emit.OpCode this[System.Type type] { get; } - } - public sealed class LdindOpCodesDictionary : System.Collections.Generic.Dictionary - { - public static System.Reflection.Emit.OpCode EmptyOpCode { get; } - public static Castle.DynamicProxy.Generators.Emitters.LdindOpCodesDictionary Instance { get; } - public System.Reflection.Emit.OpCode this[System.Type type] { get; } - } - public class MethodCollection : System.Collections.ObjectModel.Collection - { - public MethodCollection() { } - } - [System.Diagnostics.DebuggerDisplayAttribute("{builder.Name}")] - public class MethodEmitter : Castle.DynamicProxy.Generators.Emitters.IMemberEmitter - { - protected MethodEmitter(System.Reflection.Emit.MethodBuilder builder) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] Arguments { get; } - public virtual Castle.DynamicProxy.Generators.Emitters.CodeBuilders.MethodCodeBuilder CodeBuilder { get; } - public System.Reflection.Emit.GenericTypeParameterBuilder[] GenericTypeParams { get; } - public System.Reflection.MemberInfo Member { get; } - public System.Reflection.Emit.MethodBuilder MethodBuilder { get; } - public System.Type ReturnType { get; } - public void DefineCustomAttribute(System.Reflection.Emit.CustomAttributeBuilder attribute) { } - public virtual void EnsureValidCodeBlock() { } - public virtual void Generate() { } - public void SetParameters(System.Type[] paramTypes) { } - } - public class NestedClassCollection : System.Collections.ObjectModel.Collection - { - public NestedClassCollection() { } - } - public class NestedClassEmitter : Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter - { - public NestedClassEmitter(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter maintype, string name, System.Type baseType, System.Type[] interfaces) { } - public NestedClassEmitter(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter maintype, string name, System.Reflection.TypeAttributes attributes, System.Type baseType, System.Type[] interfaces) { } - public NestedClassEmitter(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter maintype, System.Reflection.Emit.TypeBuilder typeBuilder) { } - } - public class PropertiesCollection : System.Collections.ObjectModel.Collection - { - public PropertiesCollection() { } - } - public class PropertyEmitter : Castle.DynamicProxy.Generators.Emitters.IMemberEmitter - { - public PropertyEmitter(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter parentTypeEmitter, string name, System.Reflection.PropertyAttributes attributes, System.Type propertyType, System.Type[] arguments) { } - public System.Reflection.MemberInfo Member { get; } - public System.Type ReturnType { get; } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateGetMethod(string name, System.Reflection.MethodAttributes attrs, System.Reflection.MethodInfo methodToOverride, params System.Type[] parameters) { } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateGetMethod(string name, System.Reflection.MethodAttributes attributes, System.Reflection.MethodInfo methodToOverride) { } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateSetMethod(string name, System.Reflection.MethodAttributes attrs, System.Reflection.MethodInfo methodToOverride, params System.Type[] parameters) { } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateSetMethod(string name, System.Reflection.MethodAttributes attributes, System.Reflection.MethodInfo methodToOverride) { } - public void DefineCustomAttribute(System.Reflection.Emit.CustomAttributeBuilder attribute) { } - public void EnsureValidCodeBlock() { } - public void Generate() { } - } - public sealed class StindOpCodesDictionary : System.Collections.Generic.Dictionary - { - public static System.Reflection.Emit.OpCode EmptyOpCode { get; } - public static Castle.DynamicProxy.Generators.Emitters.StindOpCodesDictionary Instance { get; } - public System.Reflection.Emit.OpCode this[System.Type type] { get; } - } - public class static StrongNameUtil - { - public static bool CanStrongNameAssembly { get; set; } - public static bool IsAnyTypeFromUnsignedAssembly(System.Collections.Generic.IEnumerable types) { } - public static bool IsAnyTypeFromUnsignedAssembly(System.Type baseType, System.Collections.Generic.IEnumerable interfaces) { } - public static bool IsAssemblySigned(this System.Reflection.Assembly assembly) { } - } - public class TypeConstructorEmitter : Castle.DynamicProxy.Generators.Emitters.ConstructorEmitter - { - public override void EnsureValidCodeBlock() { } - } -} -namespace Castle.DynamicProxy.Generators.Emitters.CodeBuilders -{ - public abstract class AbstractCodeBuilder - { - protected AbstractCodeBuilder(System.Reflection.Emit.ILGenerator generator) { } - public System.Reflection.Emit.ILGenerator Generator { get; } - public Castle.DynamicProxy.Generators.Emitters.CodeBuilders.AbstractCodeBuilder AddExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression expression) { } - public Castle.DynamicProxy.Generators.Emitters.CodeBuilders.AbstractCodeBuilder AddStatement(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement stmt) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.LocalReference DeclareLocal(System.Type type) { } - public void SetNonEmpty() { } - } - public class ConstructorCodeBuilder : Castle.DynamicProxy.Generators.Emitters.CodeBuilders.AbstractCodeBuilder - { - public ConstructorCodeBuilder(System.Type baseType, System.Reflection.Emit.ILGenerator generator) { } - public void InvokeBaseConstructor() { } - public void InvokeBaseConstructor(System.Reflection.ConstructorInfo constructor) { } - public void InvokeBaseConstructor(System.Reflection.ConstructorInfo constructor, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] arguments) { } - } - public class MethodCodeBuilder : Castle.DynamicProxy.Generators.Emitters.CodeBuilders.AbstractCodeBuilder - { - public MethodCodeBuilder(System.Reflection.Emit.ILGenerator generator) { } - } -} -namespace Castle.DynamicProxy.Generators.Emitters.SimpleAST -{ - public class AddressOfReferenceExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public AddressOfReferenceExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference reference) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("argument {Type}")] - public class ArgumentReference : Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference - { - public ArgumentReference(System.Type argumentType) { } - public ArgumentReference(System.Type argumentType, int position) { } - public override void LoadAddressOfReference(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadReference(System.Reflection.Emit.ILGenerator gen) { } - public override void StoreReference(System.Reflection.Emit.ILGenerator gen) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("{reference} as {type}")] - public class AsTypeReference : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference - { - public AsTypeReference(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference reference, System.Type type) { } - public override void LoadAddressOfReference(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadReference(System.Reflection.Emit.ILGenerator gen) { } - public override void StoreReference(System.Reflection.Emit.ILGenerator gen) { } - } - public class AssignArgumentStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public AssignArgumentStatement(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference argument, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression expression) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class AssignArrayStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public AssignArrayStatement(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference targetArray, int targetPosition, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression value) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator il) { } - } - public class AssignStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public AssignStatement(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference target, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression expression) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class BindDelegateExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public BindDelegateExpression(System.Type @delegate, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression owner, System.Reflection.MethodInfo methodToBindTo, System.Reflection.Emit.GenericTypeParameterBuilder[] genericTypeParams) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("&{localReference}")] - public class ByRefReference : Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference - { - public ByRefReference(Castle.DynamicProxy.Generators.Emitters.SimpleAST.LocalReference localReference) { } - public override void LoadAddressOfReference(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadReference(System.Reflection.Emit.ILGenerator gen) { } - public override void StoreReference(System.Reflection.Emit.ILGenerator gen) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("{value}")] - public class ConstReference : Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference - { - public ConstReference(object value) { } - public override void Generate(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadAddressOfReference(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadReference(System.Reflection.Emit.ILGenerator gen) { } - public override void StoreReference(System.Reflection.Emit.ILGenerator gen) { } - } - public class ConstructorInvocationStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public ConstructorInvocationStatement(System.Reflection.ConstructorInfo method, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class ConvertExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public ConvertExpression(System.Type targetType, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression right) { } - public ConvertExpression(System.Type targetType, System.Type fromType, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression right) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class DefaultValueExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public DefaultValueExpression(System.Type type) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class EndExceptionBlockStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public EndExceptionBlockStatement() { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public abstract class Expression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.IILEmitter - { - protected Expression() { } - public abstract void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen); - } - public class ExpressionStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public ExpressionStatement(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression expression) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("{fieldbuilder.Name} ({fieldbuilder.FieldType})")] - public class FieldReference : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference - { - public FieldReference(System.Reflection.FieldInfo field) { } - public FieldReference(System.Reflection.Emit.FieldBuilder fieldbuilder) { } - public System.Reflection.Emit.FieldBuilder Fieldbuilder { get; } - public System.Reflection.FieldInfo Reference { get; } - public override void LoadAddressOfReference(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadReference(System.Reflection.Emit.ILGenerator gen) { } - public override void StoreReference(System.Reflection.Emit.ILGenerator gen) { } - } - public class FinallyStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public FinallyStatement() { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public interface IILEmitter - { - void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen); - } - public class IfNullExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public IfNullExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference reference, Castle.DynamicProxy.Generators.Emitters.SimpleAST.IILEmitter ifNull, Castle.DynamicProxy.Generators.Emitters.SimpleAST.IILEmitter ifNotNull = null) { } - public IfNullExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression expression, Castle.DynamicProxy.Generators.Emitters.SimpleAST.IILEmitter ifNull, Castle.DynamicProxy.Generators.Emitters.SimpleAST.IILEmitter ifNotNull = null) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("&{OwnerReference}")] - public class IndirectReference : Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference - { - public IndirectReference(Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference byRefReference) { } - public override void LoadAddressOfReference(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadReference(System.Reflection.Emit.ILGenerator gen) { } - public override void StoreReference(System.Reflection.Emit.ILGenerator gen) { } - public static Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference WrapIfByRef(Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference reference) { } - public static Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference[] WrapIfByRef(Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference[] references) { } - } - public class LiteralIntExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public LiteralIntExpression(int value) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class LoadArrayElementExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public LoadArrayElementExpression(int index, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference arrayReference, System.Type returnType) { } - public LoadArrayElementExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ConstReference index, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference arrayReference, System.Type returnType) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class LoadRefArrayElementExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public LoadRefArrayElementExpression(int index, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference arrayReference) { } - public LoadRefArrayElementExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ConstReference index, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference arrayReference) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("local {Type}")] - public class LocalReference : Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference - { - public LocalReference(System.Type type) { } - public override void Generate(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadAddressOfReference(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadReference(System.Reflection.Emit.ILGenerator gen) { } - public override void StoreReference(System.Reflection.Emit.ILGenerator gen) { } - } - public class MethodInvocationExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - protected readonly Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args; - protected readonly System.Reflection.MethodInfo method; - protected readonly Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference owner; - public MethodInvocationExpression(System.Reflection.MethodInfo method, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args) { } - public MethodInvocationExpression(Castle.DynamicProxy.Generators.Emitters.MethodEmitter method, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args) { } - public MethodInvocationExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference owner, Castle.DynamicProxy.Generators.Emitters.MethodEmitter method, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args) { } - public MethodInvocationExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference owner, System.Reflection.MethodInfo method, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args) { } - public bool VirtualCall { get; set; } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class MethodTokenExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public MethodTokenExpression(System.Reflection.MethodInfo method) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class MultiStatementExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public MultiStatementExpression() { } - public void AddExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression expression) { } - public void AddStatement(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement statement) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class NewArrayExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public NewArrayExpression(int size, System.Type arrayType) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class NewInstanceExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public NewInstanceExpression(System.Reflection.ConstructorInfo constructor, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args) { } - public NewInstanceExpression(System.Type target, System.Type[] constructor_args, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class NopStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public NopStatement() { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class NullCoalescingOperatorExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public NullCoalescingOperatorExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression expression, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression @default) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class NullExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public static readonly Castle.DynamicProxy.Generators.Emitters.SimpleAST.NullExpression Instance; - protected NullExpression() { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public abstract class Reference - { - protected Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference owner; - protected Reference() { } - protected Reference(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference owner) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference OwnerReference { get; set; } - public virtual void Generate(System.Reflection.Emit.ILGenerator gen) { } - public abstract void LoadAddressOfReference(System.Reflection.Emit.ILGenerator gen); - public abstract void LoadReference(System.Reflection.Emit.ILGenerator gen); - public abstract void StoreReference(System.Reflection.Emit.ILGenerator gen); - public virtual Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression ToAddressOfExpression() { } - public virtual Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression ToExpression() { } - } - public class ReferenceExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public ReferenceExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference reference) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class ReferencesToObjectArrayExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public ReferencesToObjectArrayExpression(params Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference[] args) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class ReturnStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public ReturnStatement() { } - public ReturnStatement(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference reference) { } - public ReturnStatement(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression expression) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("this")] - public class SelfReference : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference - { - public static readonly Castle.DynamicProxy.Generators.Emitters.SimpleAST.SelfReference Self; - protected SelfReference() { } - public override void LoadAddressOfReference(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadReference(System.Reflection.Emit.ILGenerator gen) { } - public override void StoreReference(System.Reflection.Emit.ILGenerator gen) { } - } - public abstract class Statement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.IILEmitter - { - protected Statement() { } - public abstract void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen); - } - public class ThrowStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public ThrowStatement(System.Type exceptionType, string errorMessage) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class TryStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public TryStatement() { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public abstract class TypeReference : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference - { - protected TypeReference(System.Type argumentType) { } - protected TypeReference(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference owner, System.Type type) { } - public System.Type Type { get; } - } - public class TypeTokenExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public TypeTokenExpression(System.Type type) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } -} -namespace Castle.DynamicProxy.Internal -{ - public class static AttributeUtil - { - public static Castle.DynamicProxy.CustomAttributeInfo CreateInfo(System.Reflection.CustomAttributeData attribute) { } - public static Castle.DynamicProxy.CustomAttributeInfo CreateInfo() - where TAttribute : System.Attribute, new () { } - public static Castle.DynamicProxy.CustomAttributeInfo CreateInfo(System.Type attribute, object[] constructorArguments) { } - public static System.Collections.Generic.IEnumerable GetNonInheritableAttributes(this System.Reflection.MemberInfo member) { } - public static System.Collections.Generic.IEnumerable GetNonInheritableAttributes(this System.Reflection.ParameterInfo parameter) { } - } - public abstract class CompositionInvocation : Castle.DynamicProxy.AbstractInvocation - { - protected object target; - protected CompositionInvocation(object target, object proxy, Castle.DynamicProxy.IInterceptor[] interceptors, System.Reflection.MethodInfo proxiedMethod, object[] arguments) { } - public override object InvocationTarget { get; } - public override System.Reflection.MethodInfo MethodInvocationTarget { get; } - public override System.Type TargetType { get; } - protected void EnsureValidProxyTarget(object newTarget) { } - protected void EnsureValidTarget() { } - } - public abstract class InheritanceInvocation : Castle.DynamicProxy.AbstractInvocation - { - protected InheritanceInvocation(System.Type targetType, object proxy, Castle.DynamicProxy.IInterceptor[] interceptors, System.Reflection.MethodInfo proxiedMethod, object[] arguments) { } - public override object InvocationTarget { get; } - public override System.Reflection.MethodInfo MethodInvocationTarget { get; } - public override System.Type TargetType { get; } - protected virtual void InvokeMethodOnTarget() { } - } - public class static InternalsUtil - { - [System.ObsoleteAttribute("Use ProxyUtil.IsAccessible instead, which performs a more accurate accessibility " + - "check.")] - public static bool IsAccessible(this System.Reflection.MethodBase method) { } - [System.ObsoleteAttribute()] - public static bool IsInternal(this System.Reflection.MethodBase method) { } - [System.ObsoleteAttribute()] - public static bool IsInternalToDynamicProxy(this System.Reflection.Assembly asm) { } - } - public class static InvocationHelper - { - public static System.Reflection.MethodInfo GetMethodOnObject(object target, System.Reflection.MethodInfo proxiedMethod) { } - public static System.Reflection.MethodInfo GetMethodOnType(System.Type type, System.Reflection.MethodInfo proxiedMethod) { } - } - public class static TypeUtil - { - public static System.Type[] AsTypeArray(this System.Reflection.Emit.GenericTypeParameterBuilder[] typeInfos) { } - public static System.Reflection.FieldInfo[] GetAllFields(this System.Type type) { } - public static System.Type[] GetAllInterfaces(params System.Type[] types) { } - public static System.Type[] GetAllInterfaces(this System.Type type) { } - public static System.Type GetClosedParameterType(this Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter type, System.Type parameter) { } - public static System.Type GetTypeOrNull(object target) { } - public static bool IsFinalizer(this System.Reflection.MethodInfo methodInfo) { } - public static bool IsGetType(this System.Reflection.MethodInfo methodInfo) { } - public static bool IsMemberwiseClone(this System.Reflection.MethodInfo methodInfo) { } - public static bool IsNullableType(this System.Type type) { } - public static void SetStaticField(this System.Type type, string fieldName, System.Reflection.BindingFlags additionalFlags, object value) { } - public static System.Reflection.MemberInfo[] Sort(System.Reflection.MemberInfo[] members) { } - } -} -namespace Castle.DynamicProxy.Tokens -{ - public class static DelegateMethods - { - public static readonly System.Reflection.MethodInfo CreateDelegate; - } - public class static InterceptorSelectorMethods - { - public static readonly System.Reflection.MethodInfo SelectInterceptors; - } - public class static InvocationMethods - { - public static readonly System.Reflection.ConstructorInfo CompositionInvocationConstructor; - public static readonly System.Reflection.MethodInfo CompositionInvocationEnsureValidTarget; - public static readonly System.Reflection.FieldInfo CompositionInvocationTarget; - public static readonly System.Reflection.MethodInfo EnsureValidTarget; - public static readonly System.Reflection.MethodInfo GetArgumentValue; - public static readonly System.Reflection.MethodInfo GetArguments; - public static readonly System.Reflection.MethodInfo GetReturnValue; - public static readonly System.Reflection.ConstructorInfo InheritanceInvocationConstructor; - public static readonly System.Reflection.ConstructorInfo InheritanceInvocationConstructorWithSelector; - public static readonly System.Reflection.MethodInfo Proceed; - public static readonly System.Reflection.FieldInfo ProxyObject; - public static readonly System.Reflection.MethodInfo SetArgumentValue; - public static readonly System.Reflection.MethodInfo SetGenericMethodArguments; - public static readonly System.Reflection.MethodInfo SetReturnValue; - public static readonly System.Reflection.FieldInfo Target; - public static readonly System.Reflection.MethodInfo ThrowOnNoTarget; - } - public class static MethodBaseMethods - { - public static readonly System.Reflection.MethodInfo GetMethodFromHandle; - } - public class static TypeMethods - { - public static readonly System.Reflection.MethodInfo GetTypeFromHandle; - public static readonly System.Reflection.MethodInfo StaticGetType; - } - public class static TypeUtilMethods - { - public static readonly System.Reflection.MethodInfo GetTypeOrNull; - public static readonly System.Reflection.MethodInfo Sort; - } -} \ No newline at end of file diff --git a/ref/Castle.Services.Logging.NLogIntegration-netstandard1.3.cs b/ref/Castle.Services.Logging.NLogIntegration-netstandard1.5.cs similarity index 99% rename from ref/Castle.Services.Logging.NLogIntegration-netstandard1.3.cs rename to ref/Castle.Services.Logging.NLogIntegration-netstandard1.5.cs index bc4314e84d..ff58bef445 100644 --- a/ref/Castle.Services.Logging.NLogIntegration-netstandard1.3.cs +++ b/ref/Castle.Services.Logging.NLogIntegration-netstandard1.5.cs @@ -1,6 +1,6 @@ [assembly: System.CLSCompliantAttribute(true)] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v1.3", FrameworkDisplayName="")] +[assembly: System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v1.5", FrameworkDisplayName="")] namespace Castle.Services.Logging.NLogIntegration { public class ExtendedNLogFactory : Castle.Core.Logging.AbstractExtendedLoggerFactory diff --git a/ref/Castle.Services.Logging.SerilogIntegration-netstandard1.3.cs b/ref/Castle.Services.Logging.SerilogIntegration-netstandard1.5.cs similarity index 98% rename from ref/Castle.Services.Logging.SerilogIntegration-netstandard1.3.cs rename to ref/Castle.Services.Logging.SerilogIntegration-netstandard1.5.cs index 0004bcab5f..dd45e33ee4 100644 --- a/ref/Castle.Services.Logging.SerilogIntegration-netstandard1.3.cs +++ b/ref/Castle.Services.Logging.SerilogIntegration-netstandard1.5.cs @@ -1,4 +1,4 @@ -[assembly: System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v1.3", FrameworkDisplayName="")] +[assembly: System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v1.5", FrameworkDisplayName="")] namespace Castle.Services.Logging.SerilogIntegration { public class SerilogFactory : Castle.Core.Logging.AbstractLoggerFactory diff --git a/ref/Castle.Services.Logging.log4netIntegration-netstandard1.3.cs b/ref/Castle.Services.Logging.log4netIntegration-netstandard1.5.cs similarity index 99% rename from ref/Castle.Services.Logging.log4netIntegration-netstandard1.3.cs rename to ref/Castle.Services.Logging.log4netIntegration-netstandard1.5.cs index 72d1f97b28..371120d710 100644 --- a/ref/Castle.Services.Logging.log4netIntegration-netstandard1.3.cs +++ b/ref/Castle.Services.Logging.log4netIntegration-netstandard1.5.cs @@ -1,6 +1,6 @@ [assembly: System.CLSCompliantAttribute(true)] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v1.3", FrameworkDisplayName="")] +[assembly: System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v1.5", FrameworkDisplayName="")] namespace Castle.Services.Logging.Log4netIntegration { public class ExtendedLog4netFactory : Castle.Core.Logging.AbstractExtendedLoggerFactory From d1449ce6e1704ec6f793eba716f92d1b2e4b0bd0 Mon Sep 17 00:00:00 2001 From: stakx Date: Wed, 13 May 2020 18:57:24 +0200 Subject: [PATCH 07/16] Add `netstandard2.x` targets to logging integration projects Otherwise we cannot remove the last remaining `netstandard1.x` target without losing .NET Core support. --- src/Castle.Core.Tests/Castle.Core.Tests.csproj | 1 + .../Castle.Services.Logging.NLogIntegration.csproj | 2 +- .../Castle.Services.Logging.SerilogIntegration.csproj | 2 +- .../Castle.Services.Logging.log4netIntegration.csproj | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Castle.Core.Tests/Castle.Core.Tests.csproj b/src/Castle.Core.Tests/Castle.Core.Tests.csproj index 34679082d8..35cffd72bb 100644 --- a/src/Castle.Core.Tests/Castle.Core.Tests.csproj +++ b/src/Castle.Core.Tests/Castle.Core.Tests.csproj @@ -58,6 +58,7 @@ + diff --git a/src/Castle.Services.Logging.NLogIntegration/Castle.Services.Logging.NLogIntegration.csproj b/src/Castle.Services.Logging.NLogIntegration/Castle.Services.Logging.NLogIntegration.csproj index c135a3ab0a..6c713e8ee7 100644 --- a/src/Castle.Services.Logging.NLogIntegration/Castle.Services.Logging.NLogIntegration.csproj +++ b/src/Castle.Services.Logging.NLogIntegration/Castle.Services.Logging.NLogIntegration.csproj @@ -3,7 +3,7 @@ - net45;netstandard1.5 + net45;netstandard1.5;netstandard2.0;netstandard2.1 diff --git a/src/Castle.Services.Logging.SerilogIntegration/Castle.Services.Logging.SerilogIntegration.csproj b/src/Castle.Services.Logging.SerilogIntegration/Castle.Services.Logging.SerilogIntegration.csproj index 4c611278a2..a8b2714165 100644 --- a/src/Castle.Services.Logging.SerilogIntegration/Castle.Services.Logging.SerilogIntegration.csproj +++ b/src/Castle.Services.Logging.SerilogIntegration/Castle.Services.Logging.SerilogIntegration.csproj @@ -3,7 +3,7 @@ - net45;netstandard1.5 + net45;netstandard1.5;netstandard2.0;netstandard2.1 diff --git a/src/Castle.Services.Logging.log4netIntegration/Castle.Services.Logging.log4netIntegration.csproj b/src/Castle.Services.Logging.log4netIntegration/Castle.Services.Logging.log4netIntegration.csproj index 49077fe9fa..39b9ea735c 100644 --- a/src/Castle.Services.Logging.log4netIntegration/Castle.Services.Logging.log4netIntegration.csproj +++ b/src/Castle.Services.Logging.log4netIntegration/Castle.Services.Logging.log4netIntegration.csproj @@ -3,7 +3,7 @@ - net45;netstandard1.5 + net45;netstandard1.5;netstandard2.0;netstandard2.1 From ebeddbcb19d58f6f29d7c5429103678a2f5e4897 Mon Sep 17 00:00:00 2001 From: stakx Date: Wed, 13 May 2020 19:08:28 +0200 Subject: [PATCH 08/16] Update `ref/` contracts --- ....Logging.NLogIntegration-netstandard2.0.cs | 113 +++++++++++++++++ ....Logging.NLogIntegration-netstandard2.1.cs | 113 +++++++++++++++++ ...gging.SerilogIntegration-netstandard2.0.cs | 67 ++++++++++ ...gging.SerilogIntegration-netstandard2.1.cs | 67 ++++++++++ ...gging.log4netIntegration-netstandard2.0.cs | 114 ++++++++++++++++++ ...gging.log4netIntegration-netstandard2.1.cs | 114 ++++++++++++++++++ 6 files changed, 588 insertions(+) create mode 100644 ref/Castle.Services.Logging.NLogIntegration-netstandard2.0.cs create mode 100644 ref/Castle.Services.Logging.NLogIntegration-netstandard2.1.cs create mode 100644 ref/Castle.Services.Logging.SerilogIntegration-netstandard2.0.cs create mode 100644 ref/Castle.Services.Logging.SerilogIntegration-netstandard2.1.cs create mode 100644 ref/Castle.Services.Logging.log4netIntegration-netstandard2.0.cs create mode 100644 ref/Castle.Services.Logging.log4netIntegration-netstandard2.1.cs diff --git a/ref/Castle.Services.Logging.NLogIntegration-netstandard2.0.cs b/ref/Castle.Services.Logging.NLogIntegration-netstandard2.0.cs new file mode 100644 index 0000000000..a617f7b0a7 --- /dev/null +++ b/ref/Castle.Services.Logging.NLogIntegration-netstandard2.0.cs @@ -0,0 +1,113 @@ +[assembly: System.CLSCompliantAttribute(true)] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v2.0", FrameworkDisplayName="")] +namespace Castle.Services.Logging.NLogIntegration +{ + public class ExtendedNLogFactory : Castle.Core.Logging.AbstractExtendedLoggerFactory + { + public ExtendedNLogFactory() { } + public ExtendedNLogFactory(string configFile) { } + public ExtendedNLogFactory(bool configuredExternally) { } + public ExtendedNLogFactory(NLog.Config.LoggingConfiguration loggingConfiguration) { } + public override Castle.Core.Logging.IExtendedLogger Create(string name) { } + public override Castle.Core.Logging.IExtendedLogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } + } + public class ExtendedNLogLogger : Castle.Services.Logging.NLogIntegration.NLogLogger, Castle.Core.Logging.IExtendedLogger, Castle.Core.Logging.ILogger + { + public ExtendedNLogLogger(NLog.Logger logger, Castle.Services.Logging.NLogIntegration.ExtendedNLogFactory factory) { } + protected Castle.Services.Logging.NLogIntegration.ExtendedNLogFactory Factory { get; set; } + public Castle.Core.Logging.IContextProperties GlobalProperties { get; } + public Castle.Core.Logging.IContextProperties ThreadProperties { get; } + public Castle.Core.Logging.IContextStacks ThreadStacks { get; } + public override Castle.Core.Logging.ILogger CreateChildLogger(string name) { } + public Castle.Core.Logging.IExtendedLogger CreateExtendedChildLogger(string name) { } + } + public class GlobalContextProperties : Castle.Core.Logging.IContextProperties + { + public GlobalContextProperties() { } + public object this[string key] { get; set; } + } + public class NLogFactory : Castle.Core.Logging.AbstractLoggerFactory + { + public NLogFactory() { } + public NLogFactory(bool configuredExternally) { } + public NLogFactory(string configFile) { } + public NLogFactory(NLog.Config.LoggingConfiguration loggingConfiguration) { } + public override Castle.Core.Logging.ILogger Create(string name) { } + public override Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } + } + public class NLogLogger : Castle.Core.Logging.ILogger + { + public NLogLogger(NLog.Logger logger, Castle.Services.Logging.NLogIntegration.NLogFactory factory) { } + protected Castle.Services.Logging.NLogIntegration.NLogFactory Factory { get; set; } + public bool IsDebugEnabled { get; } + public bool IsErrorEnabled { get; } + public bool IsFatalEnabled { get; } + public bool IsInfoEnabled { get; } + public bool IsTraceEnabled { get; } + public bool IsWarnEnabled { get; } + protected NLog.Logger Logger { get; set; } + public virtual Castle.Core.Logging.ILogger CreateChildLogger(string name) { } + public void Debug(string message) { } + public void Debug(System.Func messageFactory) { } + public void Debug(string message, System.Exception exception) { } + public void DebugFormat(string format, params object[] args) { } + public void DebugFormat(System.Exception exception, string format, params object[] args) { } + public void DebugFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void DebugFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public void Error(string message) { } + public void Error(System.Func messageFactory) { } + public void Error(string message, System.Exception exception) { } + public void ErrorFormat(string format, params object[] args) { } + public void ErrorFormat(System.Exception exception, string format, params object[] args) { } + public void ErrorFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void ErrorFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public void Fatal(string message) { } + public void Fatal(System.Func messageFactory) { } + public void Fatal(string message, System.Exception exception) { } + public void FatalFormat(string format, params object[] args) { } + public void FatalFormat(System.Exception exception, string format, params object[] args) { } + public void FatalFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void FatalFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public void Info(string message) { } + public void Info(System.Func messageFactory) { } + public void Info(string message, System.Exception exception) { } + public void InfoFormat(string format, params object[] args) { } + public void InfoFormat(System.Exception exception, string format, params object[] args) { } + public void InfoFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void InfoFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public override string ToString() { } + public void Trace(string message) { } + public void Trace(System.Func messageFactory) { } + public void Trace(string message, System.Exception exception) { } + public void TraceFormat(string format, params object[] args) { } + public void TraceFormat(System.Exception exception, string format, params object[] args) { } + public void TraceFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void TraceFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public void Warn(string message) { } + public void Warn(System.Func messageFactory) { } + public void Warn(string message, System.Exception exception) { } + public void WarnFormat(string format, params object[] args) { } + public void WarnFormat(System.Exception exception, string format, params object[] args) { } + public void WarnFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void WarnFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + } + public class ThreadContextProperties : Castle.Core.Logging.IContextProperties + { + public ThreadContextProperties() { } + public object this[string key] { get; set; } + } + public class ThreadContextStack : Castle.Core.Logging.IContextStack + { + public ThreadContextStack() { } + public int Count { get; } + public void Clear() { } + public string Pop() { } + public System.IDisposable Push(string message) { } + } + public class ThreadContextStacks : Castle.Core.Logging.IContextStacks + { + public ThreadContextStacks() { } + public Castle.Core.Logging.IContextStack this[string key] { get; } + } +} \ No newline at end of file diff --git a/ref/Castle.Services.Logging.NLogIntegration-netstandard2.1.cs b/ref/Castle.Services.Logging.NLogIntegration-netstandard2.1.cs new file mode 100644 index 0000000000..f28f843d1c --- /dev/null +++ b/ref/Castle.Services.Logging.NLogIntegration-netstandard2.1.cs @@ -0,0 +1,113 @@ +[assembly: System.CLSCompliantAttribute(true)] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v2.1", FrameworkDisplayName="")] +namespace Castle.Services.Logging.NLogIntegration +{ + public class ExtendedNLogFactory : Castle.Core.Logging.AbstractExtendedLoggerFactory + { + public ExtendedNLogFactory() { } + public ExtendedNLogFactory(string configFile) { } + public ExtendedNLogFactory(bool configuredExternally) { } + public ExtendedNLogFactory(NLog.Config.LoggingConfiguration loggingConfiguration) { } + public override Castle.Core.Logging.IExtendedLogger Create(string name) { } + public override Castle.Core.Logging.IExtendedLogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } + } + public class ExtendedNLogLogger : Castle.Services.Logging.NLogIntegration.NLogLogger, Castle.Core.Logging.IExtendedLogger, Castle.Core.Logging.ILogger + { + public ExtendedNLogLogger(NLog.Logger logger, Castle.Services.Logging.NLogIntegration.ExtendedNLogFactory factory) { } + protected Castle.Services.Logging.NLogIntegration.ExtendedNLogFactory Factory { get; set; } + public Castle.Core.Logging.IContextProperties GlobalProperties { get; } + public Castle.Core.Logging.IContextProperties ThreadProperties { get; } + public Castle.Core.Logging.IContextStacks ThreadStacks { get; } + public override Castle.Core.Logging.ILogger CreateChildLogger(string name) { } + public Castle.Core.Logging.IExtendedLogger CreateExtendedChildLogger(string name) { } + } + public class GlobalContextProperties : Castle.Core.Logging.IContextProperties + { + public GlobalContextProperties() { } + public object this[string key] { get; set; } + } + public class NLogFactory : Castle.Core.Logging.AbstractLoggerFactory + { + public NLogFactory() { } + public NLogFactory(bool configuredExternally) { } + public NLogFactory(string configFile) { } + public NLogFactory(NLog.Config.LoggingConfiguration loggingConfiguration) { } + public override Castle.Core.Logging.ILogger Create(string name) { } + public override Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } + } + public class NLogLogger : Castle.Core.Logging.ILogger + { + public NLogLogger(NLog.Logger logger, Castle.Services.Logging.NLogIntegration.NLogFactory factory) { } + protected Castle.Services.Logging.NLogIntegration.NLogFactory Factory { get; set; } + public bool IsDebugEnabled { get; } + public bool IsErrorEnabled { get; } + public bool IsFatalEnabled { get; } + public bool IsInfoEnabled { get; } + public bool IsTraceEnabled { get; } + public bool IsWarnEnabled { get; } + protected NLog.Logger Logger { get; set; } + public virtual Castle.Core.Logging.ILogger CreateChildLogger(string name) { } + public void Debug(string message) { } + public void Debug(System.Func messageFactory) { } + public void Debug(string message, System.Exception exception) { } + public void DebugFormat(string format, params object[] args) { } + public void DebugFormat(System.Exception exception, string format, params object[] args) { } + public void DebugFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void DebugFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public void Error(string message) { } + public void Error(System.Func messageFactory) { } + public void Error(string message, System.Exception exception) { } + public void ErrorFormat(string format, params object[] args) { } + public void ErrorFormat(System.Exception exception, string format, params object[] args) { } + public void ErrorFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void ErrorFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public void Fatal(string message) { } + public void Fatal(System.Func messageFactory) { } + public void Fatal(string message, System.Exception exception) { } + public void FatalFormat(string format, params object[] args) { } + public void FatalFormat(System.Exception exception, string format, params object[] args) { } + public void FatalFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void FatalFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public void Info(string message) { } + public void Info(System.Func messageFactory) { } + public void Info(string message, System.Exception exception) { } + public void InfoFormat(string format, params object[] args) { } + public void InfoFormat(System.Exception exception, string format, params object[] args) { } + public void InfoFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void InfoFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public override string ToString() { } + public void Trace(string message) { } + public void Trace(System.Func messageFactory) { } + public void Trace(string message, System.Exception exception) { } + public void TraceFormat(string format, params object[] args) { } + public void TraceFormat(System.Exception exception, string format, params object[] args) { } + public void TraceFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void TraceFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public void Warn(string message) { } + public void Warn(System.Func messageFactory) { } + public void Warn(string message, System.Exception exception) { } + public void WarnFormat(string format, params object[] args) { } + public void WarnFormat(System.Exception exception, string format, params object[] args) { } + public void WarnFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void WarnFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + } + public class ThreadContextProperties : Castle.Core.Logging.IContextProperties + { + public ThreadContextProperties() { } + public object this[string key] { get; set; } + } + public class ThreadContextStack : Castle.Core.Logging.IContextStack + { + public ThreadContextStack() { } + public int Count { get; } + public void Clear() { } + public string Pop() { } + public System.IDisposable Push(string message) { } + } + public class ThreadContextStacks : Castle.Core.Logging.IContextStacks + { + public ThreadContextStacks() { } + public Castle.Core.Logging.IContextStack this[string key] { get; } + } +} \ No newline at end of file diff --git a/ref/Castle.Services.Logging.SerilogIntegration-netstandard2.0.cs b/ref/Castle.Services.Logging.SerilogIntegration-netstandard2.0.cs new file mode 100644 index 0000000000..ae514d01e7 --- /dev/null +++ b/ref/Castle.Services.Logging.SerilogIntegration-netstandard2.0.cs @@ -0,0 +1,67 @@ +[assembly: System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v2.0", FrameworkDisplayName="")] +namespace Castle.Services.Logging.SerilogIntegration +{ + public class SerilogFactory : Castle.Core.Logging.AbstractLoggerFactory + { + public SerilogFactory() { } + public SerilogFactory(Serilog.ILogger logger) { } + public override Castle.Core.Logging.ILogger Create(string name) { } + public override Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } + } + public class SerilogLogger : Castle.Core.Logging.ILogger + { + public SerilogLogger(Serilog.ILogger logger, Castle.Services.Logging.SerilogIntegration.SerilogFactory factory) { } + protected Castle.Services.Logging.SerilogIntegration.SerilogFactory Factory { get; set; } + public bool IsDebugEnabled { get; } + public bool IsErrorEnabled { get; } + public bool IsFatalEnabled { get; } + public bool IsInfoEnabled { get; } + public bool IsTraceEnabled { get; } + public bool IsWarnEnabled { get; } + protected Serilog.ILogger Logger { get; set; } + public Castle.Core.Logging.ILogger CreateChildLogger(string loggerName) { } + public void Debug(string message, System.Exception exception) { } + public void Debug(System.Func messageFactory) { } + public void Debug(string message) { } + public void DebugFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public void DebugFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void DebugFormat(System.Exception exception, string format, params object[] args) { } + public void DebugFormat(string format, params object[] args) { } + public void Error(string message, System.Exception exception) { } + public void Error(System.Func messageFactory) { } + public void Error(string message) { } + public void ErrorFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public void ErrorFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void ErrorFormat(System.Exception exception, string format, params object[] args) { } + public void ErrorFormat(string format, params object[] args) { } + public void Fatal(string message, System.Exception exception) { } + public void Fatal(System.Func messageFactory) { } + public void Fatal(string message) { } + public void FatalFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public void FatalFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void FatalFormat(System.Exception exception, string format, params object[] args) { } + public void FatalFormat(string format, params object[] args) { } + public void Info(string message, System.Exception exception) { } + public void Info(System.Func messageFactory) { } + public void Info(string message) { } + public void InfoFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public void InfoFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void InfoFormat(System.Exception exception, string format, params object[] args) { } + public void InfoFormat(string format, params object[] args) { } + public override string ToString() { } + public void Trace(string message, System.Exception exception) { } + public void Trace(System.Func messageFactory) { } + public void Trace(string message) { } + public void TraceFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public void TraceFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void TraceFormat(System.Exception exception, string format, params object[] args) { } + public void TraceFormat(string format, params object[] args) { } + public void Warn(string message, System.Exception exception) { } + public void Warn(System.Func messageFactory) { } + public void Warn(string message) { } + public void WarnFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public void WarnFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void WarnFormat(System.Exception exception, string format, params object[] args) { } + public void WarnFormat(string format, params object[] args) { } + } +} \ No newline at end of file diff --git a/ref/Castle.Services.Logging.SerilogIntegration-netstandard2.1.cs b/ref/Castle.Services.Logging.SerilogIntegration-netstandard2.1.cs new file mode 100644 index 0000000000..12097e0b4b --- /dev/null +++ b/ref/Castle.Services.Logging.SerilogIntegration-netstandard2.1.cs @@ -0,0 +1,67 @@ +[assembly: System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v2.1", FrameworkDisplayName="")] +namespace Castle.Services.Logging.SerilogIntegration +{ + public class SerilogFactory : Castle.Core.Logging.AbstractLoggerFactory + { + public SerilogFactory() { } + public SerilogFactory(Serilog.ILogger logger) { } + public override Castle.Core.Logging.ILogger Create(string name) { } + public override Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } + } + public class SerilogLogger : Castle.Core.Logging.ILogger + { + public SerilogLogger(Serilog.ILogger logger, Castle.Services.Logging.SerilogIntegration.SerilogFactory factory) { } + protected Castle.Services.Logging.SerilogIntegration.SerilogFactory Factory { get; set; } + public bool IsDebugEnabled { get; } + public bool IsErrorEnabled { get; } + public bool IsFatalEnabled { get; } + public bool IsInfoEnabled { get; } + public bool IsTraceEnabled { get; } + public bool IsWarnEnabled { get; } + protected Serilog.ILogger Logger { get; set; } + public Castle.Core.Logging.ILogger CreateChildLogger(string loggerName) { } + public void Debug(string message, System.Exception exception) { } + public void Debug(System.Func messageFactory) { } + public void Debug(string message) { } + public void DebugFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public void DebugFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void DebugFormat(System.Exception exception, string format, params object[] args) { } + public void DebugFormat(string format, params object[] args) { } + public void Error(string message, System.Exception exception) { } + public void Error(System.Func messageFactory) { } + public void Error(string message) { } + public void ErrorFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public void ErrorFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void ErrorFormat(System.Exception exception, string format, params object[] args) { } + public void ErrorFormat(string format, params object[] args) { } + public void Fatal(string message, System.Exception exception) { } + public void Fatal(System.Func messageFactory) { } + public void Fatal(string message) { } + public void FatalFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public void FatalFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void FatalFormat(System.Exception exception, string format, params object[] args) { } + public void FatalFormat(string format, params object[] args) { } + public void Info(string message, System.Exception exception) { } + public void Info(System.Func messageFactory) { } + public void Info(string message) { } + public void InfoFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public void InfoFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void InfoFormat(System.Exception exception, string format, params object[] args) { } + public void InfoFormat(string format, params object[] args) { } + public override string ToString() { } + public void Trace(string message, System.Exception exception) { } + public void Trace(System.Func messageFactory) { } + public void Trace(string message) { } + public void TraceFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public void TraceFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void TraceFormat(System.Exception exception, string format, params object[] args) { } + public void TraceFormat(string format, params object[] args) { } + public void Warn(string message, System.Exception exception) { } + public void Warn(System.Func messageFactory) { } + public void Warn(string message) { } + public void WarnFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public void WarnFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void WarnFormat(System.Exception exception, string format, params object[] args) { } + public void WarnFormat(string format, params object[] args) { } + } +} \ No newline at end of file diff --git a/ref/Castle.Services.Logging.log4netIntegration-netstandard2.0.cs b/ref/Castle.Services.Logging.log4netIntegration-netstandard2.0.cs new file mode 100644 index 0000000000..c122670a94 --- /dev/null +++ b/ref/Castle.Services.Logging.log4netIntegration-netstandard2.0.cs @@ -0,0 +1,114 @@ +[assembly: System.CLSCompliantAttribute(true)] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v2.0", FrameworkDisplayName="")] +namespace Castle.Services.Logging.Log4netIntegration +{ + public class ExtendedLog4netFactory : Castle.Core.Logging.AbstractExtendedLoggerFactory + { + public ExtendedLog4netFactory() { } + public ExtendedLog4netFactory(bool configuredExternally) { } + public ExtendedLog4netFactory(string configFile) { } + public ExtendedLog4netFactory(System.IO.Stream config) { } + public override Castle.Core.Logging.IExtendedLogger Create(string name) { } + public override Castle.Core.Logging.IExtendedLogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } + } + public class ExtendedLog4netLogger : Castle.Services.Logging.Log4netIntegration.Log4netLogger, Castle.Core.Logging.IExtendedLogger, Castle.Core.Logging.ILogger + { + public ExtendedLog4netLogger(log4net.ILog log, Castle.Services.Logging.Log4netIntegration.ExtendedLog4netFactory factory) { } + public ExtendedLog4netLogger(log4net.Core.ILogger logger, Castle.Services.Logging.Log4netIntegration.ExtendedLog4netFactory factory) { } + protected Castle.Services.Logging.Log4netIntegration.ExtendedLog4netFactory Factory { get; set; } + public Castle.Core.Logging.IContextProperties GlobalProperties { get; } + public Castle.Core.Logging.IContextProperties ThreadProperties { get; } + public Castle.Core.Logging.IContextStacks ThreadStacks { get; } + public override Castle.Core.Logging.ILogger CreateChildLogger(string name) { } + public Castle.Core.Logging.IExtendedLogger CreateExtendedChildLogger(string name) { } + } + public class GlobalContextProperties : Castle.Core.Logging.IContextProperties + { + public GlobalContextProperties() { } + public object this[string key] { get; set; } + } + public class Log4netFactory : Castle.Core.Logging.AbstractLoggerFactory + { + public Log4netFactory() { } + public Log4netFactory(string configFile) { } + public Log4netFactory(bool configuredExternally) { } + public Log4netFactory(System.IO.Stream config) { } + public override Castle.Core.Logging.ILogger Create(string name) { } + public override Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } + } + public class Log4netLogger : Castle.Core.Logging.ILogger + { + public Log4netLogger(log4net.Core.ILogger logger, Castle.Services.Logging.Log4netIntegration.Log4netFactory factory) { } + protected Castle.Services.Logging.Log4netIntegration.Log4netFactory Factory { get; set; } + public bool IsDebugEnabled { get; } + public bool IsErrorEnabled { get; } + public bool IsFatalEnabled { get; } + public bool IsInfoEnabled { get; } + public bool IsTraceEnabled { get; } + public bool IsWarnEnabled { get; } + protected log4net.Core.ILogger Logger { get; set; } + public virtual Castle.Core.Logging.ILogger CreateChildLogger(string name) { } + public void Debug(string message) { } + public void Debug(System.Func messageFactory) { } + public void Debug(string message, System.Exception exception) { } + public void DebugFormat(string format, params object[] args) { } + public void DebugFormat(System.Exception exception, string format, params object[] args) { } + public void DebugFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void DebugFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public void Error(string message) { } + public void Error(System.Func messageFactory) { } + public void Error(string message, System.Exception exception) { } + public void ErrorFormat(string format, params object[] args) { } + public void ErrorFormat(System.Exception exception, string format, params object[] args) { } + public void ErrorFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void ErrorFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public void Fatal(string message) { } + public void Fatal(System.Func messageFactory) { } + public void Fatal(string message, System.Exception exception) { } + public void FatalFormat(string format, params object[] args) { } + public void FatalFormat(System.Exception exception, string format, params object[] args) { } + public void FatalFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void FatalFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public void Info(string message) { } + public void Info(System.Func messageFactory) { } + public void Info(string message, System.Exception exception) { } + public void InfoFormat(string format, params object[] args) { } + public void InfoFormat(System.Exception exception, string format, params object[] args) { } + public void InfoFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void InfoFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public override string ToString() { } + public void Trace(string message) { } + public void Trace(System.Func messageFactory) { } + public void Trace(string message, System.Exception exception) { } + public void TraceFormat(string format, params object[] args) { } + public void TraceFormat(System.Exception exception, string format, params object[] args) { } + public void TraceFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void TraceFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public void Warn(string message) { } + public void Warn(System.Func messageFactory) { } + public void Warn(string message, System.Exception exception) { } + public void WarnFormat(string format, params object[] args) { } + public void WarnFormat(System.Exception exception, string format, params object[] args) { } + public void WarnFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void WarnFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + } + public class ThreadContextProperties : Castle.Core.Logging.IContextProperties + { + public ThreadContextProperties() { } + public object this[string key] { get; set; } + } + public class ThreadContextStack : Castle.Core.Logging.IContextStack + { + public ThreadContextStack(log4net.Util.ThreadContextStack log4netStack) { } + public int Count { get; } + public void Clear() { } + public string Pop() { } + public System.IDisposable Push(string message) { } + } + public class ThreadContextStacks : Castle.Core.Logging.IContextStacks + { + public ThreadContextStacks() { } + public Castle.Core.Logging.IContextStack this[string key] { get; } + } +} \ No newline at end of file diff --git a/ref/Castle.Services.Logging.log4netIntegration-netstandard2.1.cs b/ref/Castle.Services.Logging.log4netIntegration-netstandard2.1.cs new file mode 100644 index 0000000000..5390f234f9 --- /dev/null +++ b/ref/Castle.Services.Logging.log4netIntegration-netstandard2.1.cs @@ -0,0 +1,114 @@ +[assembly: System.CLSCompliantAttribute(true)] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v2.1", FrameworkDisplayName="")] +namespace Castle.Services.Logging.Log4netIntegration +{ + public class ExtendedLog4netFactory : Castle.Core.Logging.AbstractExtendedLoggerFactory + { + public ExtendedLog4netFactory() { } + public ExtendedLog4netFactory(bool configuredExternally) { } + public ExtendedLog4netFactory(string configFile) { } + public ExtendedLog4netFactory(System.IO.Stream config) { } + public override Castle.Core.Logging.IExtendedLogger Create(string name) { } + public override Castle.Core.Logging.IExtendedLogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } + } + public class ExtendedLog4netLogger : Castle.Services.Logging.Log4netIntegration.Log4netLogger, Castle.Core.Logging.IExtendedLogger, Castle.Core.Logging.ILogger + { + public ExtendedLog4netLogger(log4net.ILog log, Castle.Services.Logging.Log4netIntegration.ExtendedLog4netFactory factory) { } + public ExtendedLog4netLogger(log4net.Core.ILogger logger, Castle.Services.Logging.Log4netIntegration.ExtendedLog4netFactory factory) { } + protected Castle.Services.Logging.Log4netIntegration.ExtendedLog4netFactory Factory { get; set; } + public Castle.Core.Logging.IContextProperties GlobalProperties { get; } + public Castle.Core.Logging.IContextProperties ThreadProperties { get; } + public Castle.Core.Logging.IContextStacks ThreadStacks { get; } + public override Castle.Core.Logging.ILogger CreateChildLogger(string name) { } + public Castle.Core.Logging.IExtendedLogger CreateExtendedChildLogger(string name) { } + } + public class GlobalContextProperties : Castle.Core.Logging.IContextProperties + { + public GlobalContextProperties() { } + public object this[string key] { get; set; } + } + public class Log4netFactory : Castle.Core.Logging.AbstractLoggerFactory + { + public Log4netFactory() { } + public Log4netFactory(string configFile) { } + public Log4netFactory(bool configuredExternally) { } + public Log4netFactory(System.IO.Stream config) { } + public override Castle.Core.Logging.ILogger Create(string name) { } + public override Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } + } + public class Log4netLogger : Castle.Core.Logging.ILogger + { + public Log4netLogger(log4net.Core.ILogger logger, Castle.Services.Logging.Log4netIntegration.Log4netFactory factory) { } + protected Castle.Services.Logging.Log4netIntegration.Log4netFactory Factory { get; set; } + public bool IsDebugEnabled { get; } + public bool IsErrorEnabled { get; } + public bool IsFatalEnabled { get; } + public bool IsInfoEnabled { get; } + public bool IsTraceEnabled { get; } + public bool IsWarnEnabled { get; } + protected log4net.Core.ILogger Logger { get; set; } + public virtual Castle.Core.Logging.ILogger CreateChildLogger(string name) { } + public void Debug(string message) { } + public void Debug(System.Func messageFactory) { } + public void Debug(string message, System.Exception exception) { } + public void DebugFormat(string format, params object[] args) { } + public void DebugFormat(System.Exception exception, string format, params object[] args) { } + public void DebugFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void DebugFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public void Error(string message) { } + public void Error(System.Func messageFactory) { } + public void Error(string message, System.Exception exception) { } + public void ErrorFormat(string format, params object[] args) { } + public void ErrorFormat(System.Exception exception, string format, params object[] args) { } + public void ErrorFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void ErrorFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public void Fatal(string message) { } + public void Fatal(System.Func messageFactory) { } + public void Fatal(string message, System.Exception exception) { } + public void FatalFormat(string format, params object[] args) { } + public void FatalFormat(System.Exception exception, string format, params object[] args) { } + public void FatalFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void FatalFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public void Info(string message) { } + public void Info(System.Func messageFactory) { } + public void Info(string message, System.Exception exception) { } + public void InfoFormat(string format, params object[] args) { } + public void InfoFormat(System.Exception exception, string format, params object[] args) { } + public void InfoFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void InfoFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public override string ToString() { } + public void Trace(string message) { } + public void Trace(System.Func messageFactory) { } + public void Trace(string message, System.Exception exception) { } + public void TraceFormat(string format, params object[] args) { } + public void TraceFormat(System.Exception exception, string format, params object[] args) { } + public void TraceFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void TraceFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + public void Warn(string message) { } + public void Warn(System.Func messageFactory) { } + public void Warn(string message, System.Exception exception) { } + public void WarnFormat(string format, params object[] args) { } + public void WarnFormat(System.Exception exception, string format, params object[] args) { } + public void WarnFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } + public void WarnFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } + } + public class ThreadContextProperties : Castle.Core.Logging.IContextProperties + { + public ThreadContextProperties() { } + public object this[string key] { get; set; } + } + public class ThreadContextStack : Castle.Core.Logging.IContextStack + { + public ThreadContextStack(log4net.Util.ThreadContextStack log4netStack) { } + public int Count { get; } + public void Clear() { } + public string Pop() { } + public System.IDisposable Push(string message) { } + } + public class ThreadContextStacks : Castle.Core.Logging.IContextStacks + { + public ThreadContextStacks() { } + public Castle.Core.Logging.IContextStack this[string key] { get; } + } +} \ No newline at end of file From 82763e198e859e582e950024087b5bd72fb1f763 Mon Sep 17 00:00:00 2001 From: stakx Date: Wed, 13 May 2020 19:07:27 +0200 Subject: [PATCH 09/16] Remove `netstandard1.5` target --- buildscripts/common.props | 17 ----------------- src/Castle.Core/Castle.Core.csproj | 14 +------------- ...stle.Services.Logging.NLogIntegration.csproj | 8 +------- ...e.Services.Logging.SerilogIntegration.csproj | 8 +------- ...e.Services.Logging.log4netIntegration.csproj | 8 +------- 5 files changed, 4 insertions(+), 51 deletions(-) diff --git a/buildscripts/common.props b/buildscripts/common.props index cf2c4378d9..2e74dd5fe3 100644 --- a/buildscripts/common.props +++ b/buildscripts/common.props @@ -43,7 +43,6 @@ DEBUG - TRACE;FEATURE_NETCORE_REFLECTION_API;FEATURE_TEST_SERILOGINTEGRATION TRACE;FEATURE_BINDINGLIST;FEATURE_DICTIONARYADAPTER_XML;FEATURE_GAC;FEATURE_IDATAERRORINFO;FEATURE_ISUPPORTINITIALIZE;FEATURE_LISTSORT;FEATURE_SMTP;FEATURE_TARGETEXCEPTION;FEATURE_TEST_DATASET;FEATURE_TEST_SERILOGINTEGRATION;FEATURE_NETSTANDARD2_COMPATIBILITY TRACE;FEATURE_BINDINGLIST;FEATURE_DICTIONARYADAPTER_XML;FEATURE_GAC;FEATURE_IDATAERRORINFO;FEATURE_ISUPPORTINITIALIZE;FEATURE_LISTSORT;FEATURE_SMTP;FEATURE_TARGETEXCEPTION;FEATURE_TEST_DATASET;FEATURE_TEST_SERILOGINTEGRATION;FEATURE_NETSTANDARD2_COMPATIBILITY TRACE;FEATURE_APPDOMAIN;FEATURE_ASSEMBLYBUILDER_SAVE;FEATURE_BINDINGLIST;FEATURE_DICTIONARYADAPTER_XML;FEATURE_EVENTLOG;FEATURE_GAC;FEATURE_GET_REFERENCED_ASSEMBLIES;FEATURE_IDATAERRORINFO;FEATURE_ISUPPORTINITIALIZE;FEATURE_LISTSORT;FEATURE_REMOTING;FEATURE_SECURITY_PERMISSIONS;FEATURE_SERIALIZATION;FEATURE_SMTP;FEATURE_SYSTEM_CONFIGURATION;FEATURE_TARGETEXCEPTION;FEATURE_TEST_COM;FEATURE_TEST_DATASET;FEATURE_TEST_SERILOGINTEGRATION @@ -67,14 +66,6 @@ $(DesktopClrConstants);DOTNET45 - - $(DiagnosticsConstants);$(NetStandard15Constants) - - - - $(NetStandard15Constants) - - $(DiagnosticsConstants);$(NetStandard20Constants) @@ -91,14 +82,6 @@ $(NetStandard21Constants) - - $(DiagnosticsConstants);$(NetStandard15Constants) - - - - $(NetStandard15Constants) - - $(DiagnosticsConstants);$(NetStandard20Constants) diff --git a/src/Castle.Core/Castle.Core.csproj b/src/Castle.Core/Castle.Core.csproj index 893786ce51..f53b1a0c54 100644 --- a/src/Castle.Core/Castle.Core.csproj +++ b/src/Castle.Core/Castle.Core.csproj @@ -3,7 +3,7 @@ - net45;netstandard1.5;netstandard2.0;netstandard2.1 + net45;netstandard2.0;netstandard2.1 @@ -32,18 +32,6 @@ - - - - - - - - - - - - diff --git a/src/Castle.Services.Logging.NLogIntegration/Castle.Services.Logging.NLogIntegration.csproj b/src/Castle.Services.Logging.NLogIntegration/Castle.Services.Logging.NLogIntegration.csproj index 6c713e8ee7..ecd678ba93 100644 --- a/src/Castle.Services.Logging.NLogIntegration/Castle.Services.Logging.NLogIntegration.csproj +++ b/src/Castle.Services.Logging.NLogIntegration/Castle.Services.Logging.NLogIntegration.csproj @@ -3,7 +3,7 @@ - net45;netstandard1.5;netstandard2.0;netstandard2.1 + net45;netstandard2.0;netstandard2.1 @@ -20,12 +20,6 @@ castle logging NLog - - - - - - diff --git a/src/Castle.Services.Logging.SerilogIntegration/Castle.Services.Logging.SerilogIntegration.csproj b/src/Castle.Services.Logging.SerilogIntegration/Castle.Services.Logging.SerilogIntegration.csproj index a8b2714165..7a5c5bce0b 100644 --- a/src/Castle.Services.Logging.SerilogIntegration/Castle.Services.Logging.SerilogIntegration.csproj +++ b/src/Castle.Services.Logging.SerilogIntegration/Castle.Services.Logging.SerilogIntegration.csproj @@ -3,7 +3,7 @@ - net45;netstandard1.5;netstandard2.0;netstandard2.1 + net45;netstandard2.0;netstandard2.1 @@ -20,12 +20,6 @@ castle logging serilog - - - - - - diff --git a/src/Castle.Services.Logging.log4netIntegration/Castle.Services.Logging.log4netIntegration.csproj b/src/Castle.Services.Logging.log4netIntegration/Castle.Services.Logging.log4netIntegration.csproj index 39b9ea735c..28f06b615a 100644 --- a/src/Castle.Services.Logging.log4netIntegration/Castle.Services.Logging.log4netIntegration.csproj +++ b/src/Castle.Services.Logging.log4netIntegration/Castle.Services.Logging.log4netIntegration.csproj @@ -3,7 +3,7 @@ - net45;netstandard1.5;netstandard2.0;netstandard2.1 + net45;netstandard2.0;netstandard2.1 @@ -20,12 +20,6 @@ castle logging log4net - - - - - - From 5c8c352d13063a51d9b125c257a759528ef0c913 Mon Sep 17 00:00:00 2001 From: stakx Date: Wed, 13 May 2020 19:08:45 +0200 Subject: [PATCH 10/16] Update `ref/` contracts --- ref/Castle.Core-netstandard1.5.cs | 2705 ----------------- ....Logging.NLogIntegration-netstandard1.5.cs | 113 - ...gging.SerilogIntegration-netstandard1.5.cs | 67 - ...gging.log4netIntegration-netstandard1.5.cs | 114 - 4 files changed, 2999 deletions(-) delete mode 100644 ref/Castle.Core-netstandard1.5.cs delete mode 100644 ref/Castle.Services.Logging.NLogIntegration-netstandard1.5.cs delete mode 100644 ref/Castle.Services.Logging.SerilogIntegration-netstandard1.5.cs delete mode 100644 ref/Castle.Services.Logging.log4netIntegration-netstandard1.5.cs diff --git a/ref/Castle.Core-netstandard1.5.cs b/ref/Castle.Core-netstandard1.5.cs deleted file mode 100644 index d1d37bbfd0..0000000000 --- a/ref/Castle.Core-netstandard1.5.cs +++ /dev/null @@ -1,2705 +0,0 @@ -[assembly: System.CLSCompliantAttribute(true)] -[assembly: System.Runtime.CompilerServices.InternalsVisibleToAttribute(@"Castle.Core.Tests, PublicKey=002400000480000094000000060200000024000052534131000400000100010077f5e87030dadccce6902c6adab7a987bd69cb5819991531f560785eacfc89b6fcddf6bb2a00743a7194e454c0273447fc6eec36474ba8e5a3823147d214298e4f9a631b1afee1a51ffeae4672d498f14b000e3d321453cdd8ac064de7e1cf4d222b7e81f54d4fd46725370d702a05b48738cc29d09228f1aa722ae1a9ca02fb")] -[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v1.5", FrameworkDisplayName="")] -namespace Castle.Components.DictionaryAdapter -{ - public abstract class AbstractDictionaryAdapter : System.Collections.ICollection, System.Collections.IDictionary, System.Collections.IEnumerable - { - protected AbstractDictionaryAdapter() { } - public int Count { get; } - public bool IsFixedSize { get; } - public abstract bool IsReadOnly { get; } - public virtual bool IsSynchronized { get; } - public abstract object this[object key] { get; set; } - public System.Collections.ICollection Keys { get; } - public virtual object SyncRoot { get; } - public System.Collections.ICollection Values { get; } - public void Add(object key, object value) { } - public void Clear() { } - public abstract bool Contains(object key); - public void CopyTo(System.Array array, int index) { } - public System.Collections.IDictionaryEnumerator GetEnumerator() { } - public void Remove(object key) { } - } - public abstract class AbstractDictionaryAdapterVisitor : Castle.Components.DictionaryAdapter.IDictionaryAdapterVisitor - { - protected AbstractDictionaryAdapterVisitor() { } - protected AbstractDictionaryAdapterVisitor(Castle.Components.DictionaryAdapter.AbstractDictionaryAdapterVisitor parent) { } - protected bool Cancelled { get; set; } - protected virtual void VisitCollection(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, Castle.Components.DictionaryAdapter.PropertyDescriptor property, System.Type collectionItemType, object state) { } - public virtual bool VisitDictionaryAdapter(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, object state) { } - public virtual bool VisitDictionaryAdapter(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, System.Func selector, object state) { } - protected virtual void VisitInterface(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, Castle.Components.DictionaryAdapter.PropertyDescriptor property, object state) { } - protected virtual void VisitProperty(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, Castle.Components.DictionaryAdapter.PropertyDescriptor property, object state) { } - } - public class CascadingDictionaryAdapter : Castle.Components.DictionaryAdapter.AbstractDictionaryAdapter - { - public CascadingDictionaryAdapter(System.Collections.IDictionary primary, System.Collections.IDictionary secondary) { } - public override bool IsReadOnly { get; } - public override object this[object key] { get; set; } - public System.Collections.IDictionary Primary { get; } - public System.Collections.IDictionary Secondary { get; } - public override bool Contains(object key) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.All, AllowMultiple=false, Inherited=true)] - public class ComponentAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryKeyBuilder, Castle.Components.DictionaryAdapter.IDictionaryPropertyGetter, Castle.Components.DictionaryAdapter.IDictionaryPropertySetter - { - public ComponentAttribute() { } - public bool NoPrefix { get; set; } - public string Prefix { get; set; } - public bool SetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, ref object value, Castle.Components.DictionaryAdapter.PropertyDescriptor property) { } - } - public class DefaultPropertyGetter : Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryPropertyGetter - { - public DefaultPropertyGetter(System.ComponentModel.TypeConverter converter) { } - public int ExecutionOrder { get; } - public Castle.Components.DictionaryAdapter.IDictionaryBehavior Copy() { } - public object GetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, object storedValue, Castle.Components.DictionaryAdapter.PropertyDescriptor property, bool ifExists) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.All, AllowMultiple=false, Inherited=false)] - public class DictionaryAdapterAttribute : System.Attribute - { - public DictionaryAdapterAttribute(System.Type interfaceType) { } - public System.Type InterfaceType { get; } - } - public abstract class DictionaryAdapterBase : Castle.Components.DictionaryAdapter.IDictionaryAdapter, Castle.Components.DictionaryAdapter.IDictionaryCreate, Castle.Components.DictionaryAdapter.IDictionaryEdit, Castle.Components.DictionaryAdapter.IDictionaryNotify, Castle.Components.DictionaryAdapter.IDictionaryValidate, System.ComponentModel.IChangeTracking, System.ComponentModel.IEditableObject, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.IRevertibleChangeTracking - { - public DictionaryAdapterBase(Castle.Components.DictionaryAdapter.DictionaryAdapterInstance instance) { } - public bool CanEdit { get; set; } - public bool CanNotify { get; set; } - public bool CanValidate { get; set; } - public bool IsChanged { get; } - public bool IsEditing { get; } - public bool IsValid { get; } - public abstract Castle.Components.DictionaryAdapter.DictionaryAdapterMeta Meta { get; } - public bool ShouldNotify { get; } - public bool SupportsMultiLevelEdit { get; set; } - public Castle.Components.DictionaryAdapter.DictionaryAdapterInstance This { get; } - public System.Collections.Generic.IEnumerable Validators { get; } - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; - public void AcceptChanges() { } - protected void AddEditDependency(System.ComponentModel.IEditableObject editDependency) { } - public void AddValidator(Castle.Components.DictionaryAdapter.IDictionaryValidator validator) { } - public void BeginEdit() { } - public void CancelEdit() { } - protected bool ClearEditProperty(Castle.Components.DictionaryAdapter.PropertyDescriptor property, string key) { } - public void ClearProperty(Castle.Components.DictionaryAdapter.PropertyDescriptor property, string key) { } - public T Coerce() - where T : class { } - public object Coerce(System.Type type) { } - public void CopyTo(Castle.Components.DictionaryAdapter.IDictionaryAdapter other) { } - public void CopyTo(Castle.Components.DictionaryAdapter.IDictionaryAdapter other, System.Func selector) { } - public T Create() { } - public object Create(System.Type type) { } - public T Create(System.Collections.IDictionary dictionary) { } - public object Create(System.Type type, System.Collections.IDictionary dictionary) { } - public T Create(System.Action init) { } - public T Create(System.Collections.IDictionary dictionary, System.Action init) { } - protected bool EditProperty(Castle.Components.DictionaryAdapter.PropertyDescriptor property, string key, object propertyValue) { } - public void EndEdit() { } - public override bool Equals(object obj) { } - protected bool GetEditedProperty(string propertyName, out object propertyValue) { } - public override int GetHashCode() { } - public string GetKey(string propertyName) { } - public virtual object GetProperty(string propertyName, bool ifExists) { } - public T GetPropertyOfType(string propertyName) { } - protected void Initialize() { } - protected void Invalidate() { } - protected void NotifyPropertyChanged(Castle.Components.DictionaryAdapter.PropertyDescriptor property, object oldValue, object newValue) { } - protected void NotifyPropertyChanged(string propertyName) { } - protected bool NotifyPropertyChanging(Castle.Components.DictionaryAdapter.PropertyDescriptor property, object oldValue, object newValue) { } - public object ReadProperty(string key) { } - public void RejectChanges() { } - public void ResumeEditing() { } - public void ResumeNotifications() { } - public virtual bool SetProperty(string propertyName, ref object value) { } - public bool ShouldClearProperty(Castle.Components.DictionaryAdapter.PropertyDescriptor property, object value) { } - public void StoreProperty(Castle.Components.DictionaryAdapter.PropertyDescriptor property, string key, object value) { } - public void SuppressEditing() { } - public System.IDisposable SuppressEditingBlock() { } - public void SuppressNotifications() { } - public System.IDisposable SuppressNotificationsBlock() { } - protected Castle.Components.DictionaryAdapter.DictionaryAdapterBase.TrackPropertyChangeScope TrackPropertyChange(Castle.Components.DictionaryAdapter.PropertyDescriptor property, object oldValue, object newValue) { } - protected Castle.Components.DictionaryAdapter.DictionaryAdapterBase.TrackPropertyChangeScope TrackReadonlyPropertyChanges() { } - public Castle.Components.DictionaryAdapter.DictionaryValidateGroup ValidateGroups(params object[] groups) { } - public class TrackPropertyChangeScope : System.IDisposable - { - public TrackPropertyChangeScope(Castle.Components.DictionaryAdapter.DictionaryAdapterBase adapter) { } - public TrackPropertyChangeScope(Castle.Components.DictionaryAdapter.DictionaryAdapterBase adapter, Castle.Components.DictionaryAdapter.PropertyDescriptor property, object existingValue) { } - public void Dispose() { } - public bool Notify() { } - } - } - public class static DictionaryAdapterExtensions - { - public static Castle.Components.DictionaryAdapter.IVirtual AsVirtual(this Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter) { } - } - public class DictionaryAdapterFactory : Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory - { - public DictionaryAdapterFactory() { } - public T GetAdapter(System.Collections.IDictionary dictionary) { } - public object GetAdapter(System.Type type, System.Collections.IDictionary dictionary) { } - public object GetAdapter(System.Type type, System.Collections.IDictionary dictionary, Castle.Components.DictionaryAdapter.PropertyDescriptor descriptor) { } - public T GetAdapter(System.Collections.Generic.IDictionary dictionary) { } - public object GetAdapter(System.Type type, System.Collections.Generic.IDictionary dictionary) { } - public T GetAdapter(System.Collections.Specialized.NameValueCollection nameValues) { } - public object GetAdapter(System.Type type, System.Collections.Specialized.NameValueCollection nameValues) { } - public Castle.Components.DictionaryAdapter.DictionaryAdapterMeta GetAdapterMeta(System.Type type) { } - public Castle.Components.DictionaryAdapter.DictionaryAdapterMeta GetAdapterMeta(System.Type type, Castle.Components.DictionaryAdapter.PropertyDescriptor descriptor) { } - public Castle.Components.DictionaryAdapter.DictionaryAdapterMeta GetAdapterMeta(System.Type type, Castle.Components.DictionaryAdapter.DictionaryAdapterMeta other) { } - } - public class DictionaryAdapterInstance - { - public DictionaryAdapterInstance(System.Collections.IDictionary dictionary, Castle.Components.DictionaryAdapter.DictionaryAdapterMeta meta, Castle.Components.DictionaryAdapter.PropertyDescriptor descriptor, Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory factory) { } - public Castle.Components.DictionaryAdapter.IDictionaryCoerceStrategy CoerceStrategy { get; set; } - public System.Collections.Generic.IEnumerable CopyStrategies { get; } - public Castle.Components.DictionaryAdapter.IDictionaryCreateStrategy CreateStrategy { get; set; } - public Castle.Components.DictionaryAdapter.PropertyDescriptor Descriptor { get; } - public System.Collections.IDictionary Dictionary { get; } - public Castle.Components.DictionaryAdapter.IDictionaryEqualityHashCodeStrategy EqualityHashCodeStrategy { get; set; } - public System.Collections.IDictionary ExtendedProperties { get; } - public Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory Factory { get; } - public Castle.Components.DictionaryAdapter.IDictionaryInitializer[] Initializers { get; } - public System.Collections.Generic.IDictionary Properties { get; } - public void AddCopyStrategy(Castle.Components.DictionaryAdapter.IDictionaryCopyStrategy copyStrategy) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("Type: {Type.FullName,nq}")] - public class DictionaryAdapterMeta - { - public DictionaryAdapterMeta(System.Type type, System.Type implementation, object[] behaviors, Castle.Components.DictionaryAdapter.IDictionaryMetaInitializer[] metaInitializers, Castle.Components.DictionaryAdapter.IDictionaryInitializer[] initializers, System.Collections.Generic.IDictionary properties, Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory factory, System.Func creator) { } - public object[] Behaviors { get; } - public System.Collections.IDictionary ExtendedProperties { get; } - public Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory Factory { get; } - public System.Type Implementation { get; } - public Castle.Components.DictionaryAdapter.IDictionaryInitializer[] Initializers { get; } - public Castle.Components.DictionaryAdapter.IDictionaryMetaInitializer[] MetaInitializers { get; } - public System.Collections.Generic.IDictionary Properties { get; } - public System.Type Type { get; } - public Castle.Components.DictionaryAdapter.PropertyDescriptor CreateDescriptor() { } - public object CreateInstance(System.Collections.IDictionary dictionary, Castle.Components.DictionaryAdapter.PropertyDescriptor descriptor) { } - public Castle.Components.DictionaryAdapter.DictionaryAdapterMeta GetAdapterMeta(System.Type type) { } - } - public abstract class DictionaryBehaviorAttribute : System.Attribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior - { - public const int DefaultExecutionOrder = 1073741823; - public const int FirstExecutionOrder = 0; - public const int LastExecutionOrder = 2147483647; - public DictionaryBehaviorAttribute() { } - public int ExecutionOrder { get; set; } - public virtual Castle.Components.DictionaryAdapter.IDictionaryBehavior Copy() { } - } - public class DictionaryValidateGroup : Castle.Components.DictionaryAdapter.IDictionaryValidate, System.ComponentModel.INotifyPropertyChanged, System.IDisposable - { - public DictionaryValidateGroup(object[] groups, Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter) { } - public bool CanValidate { get; set; } - public bool IsValid { get; } - public System.Collections.Generic.IEnumerable Validators { get; } - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - public void AddValidator(Castle.Components.DictionaryAdapter.IDictionaryValidator validator) { } - public void Dispose() { } - public Castle.Components.DictionaryAdapter.DictionaryValidateGroup ValidateGroups(params object[] groups) { } - } - public class DynamicDictionary : System.Dynamic.DynamicObject - { - public DynamicDictionary(System.Collections.IDictionary dictionary) { } - public override System.Collections.Generic.IEnumerable GetDynamicMemberNames() { } - public override bool TryGetMember(System.Dynamic.GetMemberBinder binder, out object result) { } - public override bool TrySetMember(System.Dynamic.SetMemberBinder binder, object value) { } - } - public class DynamicValueDelegate : Castle.Components.DictionaryAdapter.DynamicValue - { - public DynamicValueDelegate(System.Func dynamicDelegate) { } - public override T Value { get; } - } - public abstract class DynamicValue : Castle.Components.DictionaryAdapter.IDynamicValue, Castle.Components.DictionaryAdapter.IDynamicValue - { - protected DynamicValue() { } - public abstract T Value { get; } - public override string ToString() { } - } - public class EditableList : Castle.Components.DictionaryAdapter.EditableList, System.Collections.ICollection, System.Collections.IEnumerable, System.Collections.IList - { - public EditableList() { } - public EditableList(System.Collections.Generic.IEnumerable collection) { } - } - public class EditableList : System.Collections.Generic.List, System.ComponentModel.IChangeTracking, System.ComponentModel.IEditableObject, System.ComponentModel.IRevertibleChangeTracking - { - public EditableList() { } - public EditableList(System.Collections.Generic.IEnumerable collection) { } - public bool IsChanged { get; } - public void AcceptChanges() { } - public void BeginEdit() { } - public void CancelEdit() { } - public void EndEdit() { } - public void RejectChanges() { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=false)] - public class FetchAttribute : System.Attribute - { - public FetchAttribute() { } - public FetchAttribute(bool fetch) { } - public bool Fetch { get; } - } - public class static GenericDictionaryAdapter - { - public static Castle.Components.DictionaryAdapter.GenericDictionaryAdapter ForDictionaryAdapter(this System.Collections.Generic.IDictionary dictionary) { } - } - public class GenericDictionaryAdapter : Castle.Components.DictionaryAdapter.AbstractDictionaryAdapter - { - public GenericDictionaryAdapter(System.Collections.Generic.IDictionary dictionary) { } - public override bool IsReadOnly { get; } - public override object this[object key] { get; set; } - public override bool Contains(object key) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.All, AllowMultiple=true)] - public class GroupAttribute : System.Attribute - { - public GroupAttribute(object group) { } - public GroupAttribute(params object[] group) { } - public object[] Group { get; } - } - public interface IBindingList : System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.Generic.IList, System.Collections.IEnumerable - { - bool AllowEdit { get; } - bool AllowNew { get; } - bool AllowRemove { get; } - bool IsSorted { get; } - System.ComponentModel.PropertyDescriptor SortProperty { get; } - bool SupportsChangeNotification { get; } - bool SupportsSearching { get; } - bool SupportsSorting { get; } - void AddIndex(System.ComponentModel.PropertyDescriptor property); - T AddNew(); - int Find(System.ComponentModel.PropertyDescriptor property, object key); - void RemoveIndex(System.ComponentModel.PropertyDescriptor property); - void RemoveSort(); - } - public interface ICollectionAdapterObserver - { - void OnInserted(T newValue, int index); - bool OnInserting(T newValue); - void OnRemoved(T oldValue, int index); - void OnRemoving(T oldValue); - void OnReplaced(T oldValue, T newValue, int index); - bool OnReplacing(T oldValue, T newValue); - } - public interface ICollectionAdapter - { - System.Collections.Generic.IEqualityComparer Comparer { get; } - int Count { get; } - bool HasSnapshot { get; } - T this[int index] { get; set; } - int SnapshotCount { get; } - bool Add(T value); - T AddNew(); - void Clear(); - void ClearReferences(); - void DropSnapshot(); - T GetCurrentItem(int index); - T GetSnapshotItem(int index); - void Initialize(Castle.Components.DictionaryAdapter.ICollectionAdapterObserver advisor); - bool Insert(int index, T value); - void LoadSnapshot(); - void Remove(int index); - void SaveSnapshot(); - } - public interface ICollectionProjection : System.Collections.ICollection, System.Collections.IEnumerable - { - void Clear(); - void ClearReferences(); - void Replace(System.Collections.IEnumerable source); - } - public interface ICondition - { - bool SatisfiedBy(object value); - } - public interface IDictionaryAdapter : Castle.Components.DictionaryAdapter.IDictionaryCreate, Castle.Components.DictionaryAdapter.IDictionaryEdit, Castle.Components.DictionaryAdapter.IDictionaryNotify, Castle.Components.DictionaryAdapter.IDictionaryValidate, System.ComponentModel.IChangeTracking, System.ComponentModel.IEditableObject, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.IRevertibleChangeTracking - { - Castle.Components.DictionaryAdapter.DictionaryAdapterMeta Meta { get; } - Castle.Components.DictionaryAdapter.DictionaryAdapterInstance This { get; } - void ClearProperty(Castle.Components.DictionaryAdapter.PropertyDescriptor property, string key); - T Coerce() - where T : class; - object Coerce(System.Type type); - void CopyTo(Castle.Components.DictionaryAdapter.IDictionaryAdapter other); - void CopyTo(Castle.Components.DictionaryAdapter.IDictionaryAdapter other, System.Func selector); - string GetKey(string propertyName); - object GetProperty(string propertyName, bool ifExists); - T GetPropertyOfType(string propertyName); - object ReadProperty(string key); - bool SetProperty(string propertyName, ref object value); - bool ShouldClearProperty(Castle.Components.DictionaryAdapter.PropertyDescriptor property, object value); - void StoreProperty(Castle.Components.DictionaryAdapter.PropertyDescriptor property, string key, object value); - } - public interface IDictionaryAdapterFactory - { - T GetAdapter(System.Collections.IDictionary dictionary); - object GetAdapter(System.Type type, System.Collections.IDictionary dictionary); - object GetAdapter(System.Type type, System.Collections.IDictionary dictionary, Castle.Components.DictionaryAdapter.PropertyDescriptor descriptor); - T GetAdapter(System.Collections.Specialized.NameValueCollection nameValues); - object GetAdapter(System.Type type, System.Collections.Specialized.NameValueCollection nameValues); - Castle.Components.DictionaryAdapter.DictionaryAdapterMeta GetAdapterMeta(System.Type type); - Castle.Components.DictionaryAdapter.DictionaryAdapterMeta GetAdapterMeta(System.Type type, Castle.Components.DictionaryAdapter.PropertyDescriptor descriptor); - Castle.Components.DictionaryAdapter.DictionaryAdapterMeta GetAdapterMeta(System.Type type, Castle.Components.DictionaryAdapter.DictionaryAdapterMeta other); - } - public interface IDictionaryAdapterVisitor - { - void VisitCollection(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, Castle.Components.DictionaryAdapter.PropertyDescriptor property, System.Type collectionItemType, object state); - bool VisitDictionaryAdapter(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, object state); - bool VisitDictionaryAdapter(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, System.Func selector, object state); - void VisitInterface(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, Castle.Components.DictionaryAdapter.PropertyDescriptor property, object state); - void VisitProperty(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, Castle.Components.DictionaryAdapter.PropertyDescriptor property, object state); - } - public interface IDictionaryBehavior - { - int ExecutionOrder { get; } - Castle.Components.DictionaryAdapter.IDictionaryBehavior Copy(); - } - public interface IDictionaryBehaviorBuilder - { - object[] BuildBehaviors(); - } - public interface IDictionaryCoerceStrategy - { - object Coerce(Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter, System.Type type); - } - public interface IDictionaryCopyStrategy - { - bool Copy(Castle.Components.DictionaryAdapter.IDictionaryAdapter source, Castle.Components.DictionaryAdapter.IDictionaryAdapter target, ref System.Func selector); - } - public interface IDictionaryCreate - { - T Create(); - object Create(System.Type type); - T Create(System.Collections.IDictionary dictionary); - object Create(System.Type type, System.Collections.IDictionary dictionary); - T Create(System.Action init); - T Create(System.Collections.IDictionary dictionary, System.Action init); - } - public interface IDictionaryCreateStrategy - { - object Create(Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter, System.Type type, System.Collections.IDictionary dictionary); - } - public interface IDictionaryEdit : System.ComponentModel.IChangeTracking, System.ComponentModel.IEditableObject, System.ComponentModel.IRevertibleChangeTracking - { - bool CanEdit { get; } - bool IsEditing { get; } - bool SupportsMultiLevelEdit { get; set; } - void ResumeEditing(); - void SuppressEditing(); - System.IDisposable SuppressEditingBlock(); - } - public interface IDictionaryEqualityHashCodeStrategy - { - bool Equals(Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter1, Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter2); - bool GetHashCode(Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter, out int hashCode); - } - public interface IDictionaryInitializer : Castle.Components.DictionaryAdapter.IDictionaryBehavior - { - void Initialize(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, object[] behaviors); - } - public interface IDictionaryKeyBuilder : Castle.Components.DictionaryAdapter.IDictionaryBehavior - { - string GetKey(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, Castle.Components.DictionaryAdapter.PropertyDescriptor property); - } - public interface IDictionaryMetaInitializer : Castle.Components.DictionaryAdapter.IDictionaryBehavior - { - void Initialize(Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory factory, Castle.Components.DictionaryAdapter.DictionaryAdapterMeta dictionaryMeta); - bool ShouldHaveBehavior(object behavior); - } - public interface IDictionaryNotify : System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging - { - bool CanNotify { get; } - bool ShouldNotify { get; } - void ResumeNotifications(); - void SuppressNotifications(); - System.IDisposable SuppressNotificationsBlock(); - } - public interface IDictionaryPropertyGetter : Castle.Components.DictionaryAdapter.IDictionaryBehavior - { - object GetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, object storedValue, Castle.Components.DictionaryAdapter.PropertyDescriptor property, bool ifExists); - } - public interface IDictionaryPropertySetter : Castle.Components.DictionaryAdapter.IDictionaryBehavior - { - bool SetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, ref object value, Castle.Components.DictionaryAdapter.PropertyDescriptor property); - } - public interface IDictionaryReferenceManager - { - void AddReference(object keyObject, object relatedObject, bool isInGraph); - bool IsReferenceProperty(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string propertyName); - bool TryGetReference(object keyObject, out object inGraphObject); - } - public interface IDictionaryValidate - { - bool CanValidate { get; set; } - bool IsValid { get; } - System.Collections.Generic.IEnumerable Validators { get; } - void AddValidator(Castle.Components.DictionaryAdapter.IDictionaryValidator validator); - Castle.Components.DictionaryAdapter.DictionaryValidateGroup ValidateGroups(params object[] groups); - } - public interface IDictionaryValidator - { - void Invalidate(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter); - bool IsValid(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter); - string Validate(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter); - string Validate(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, Castle.Components.DictionaryAdapter.PropertyDescriptor property); - } - public interface IDynamicValue - { - object GetValue(); - } - public interface IDynamicValue : Castle.Components.DictionaryAdapter.IDynamicValue - { - T Value { get; } - } - public interface IPropertyDescriptorInitializer : Castle.Components.DictionaryAdapter.IDictionaryBehavior - { - void Initialize(Castle.Components.DictionaryAdapter.PropertyDescriptor propertyDescriptor, object[] behaviors); - } - public interface IValueInitializer - { - void Initialize(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, object value); - } - public interface IVirtual - { - bool IsReal { get; } - public event System.EventHandler Realized; - void Realize(); - } - public interface IVirtualSite - { - void OnRealizing(T node); - } - public interface IVirtualTarget - { - void OnRealizing(TNode node, TMember member); - } - public interface IVirtual : Castle.Components.DictionaryAdapter.IVirtual - { - void AddSite(Castle.Components.DictionaryAdapter.IVirtualSite site); - T Realize(); - void RemoveSite(Castle.Components.DictionaryAdapter.IVirtualSite site); - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.All, AllowMultiple=false)] - public class IfExistsAttribute : System.Attribute - { - public IfExistsAttribute() { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.All, AllowMultiple=false, Inherited=true)] - public class KeyAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryKeyBuilder - { - public KeyAttribute(string key) { } - public KeyAttribute(string[] keys) { } - public string Key { get; } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=false, Inherited=false)] - public class KeyPrefixAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryKeyBuilder - { - public KeyPrefixAttribute() { } - public KeyPrefixAttribute(string keyPrefix) { } - public string KeyPrefix { get; set; } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=true, Inherited=true)] - public class KeySubstitutionAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryKeyBuilder - { - public KeySubstitutionAttribute(string oldValue, string newValue) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("Count = {Count}, Adapter = {Adapter}")] - [System.Diagnostics.DebuggerTypeProxyAttribute(typeof(Castle.Components.DictionaryAdapter.ListProjectionDebugView))] - public class ListProjection : Castle.Components.DictionaryAdapter.IBindingList, Castle.Components.DictionaryAdapter.ICollectionAdapterObserver, Castle.Components.DictionaryAdapter.ICollectionProjection, System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.Generic.IList, System.Collections.ICollection, System.Collections.IEnumerable, System.Collections.IList, System.ComponentModel.IChangeTracking, System.ComponentModel.IEditableObject, System.ComponentModel.IRevertibleChangeTracking - { - public ListProjection(Castle.Components.DictionaryAdapter.ICollectionAdapter adapter) { } - public Castle.Components.DictionaryAdapter.ICollectionAdapter Adapter { get; } - public System.Collections.Generic.IEqualityComparer Comparer { get; } - public int Count { get; } - public bool EventsEnabled { get; } - public bool IsChanged { get; } - public T this[int index] { get; set; } - public void AcceptChanges() { } - public virtual bool Add(T item) { } - public virtual T AddNew() { } - public void BeginEdit() { } - public void CancelEdit() { } - public virtual void CancelNew(int index) { } - public virtual void Clear() { } - public virtual bool Contains(T item) { } - public void CopyTo(T[] array, int index) { } - public void EndEdit() { } - public virtual void EndNew(int index) { } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - public int IndexOf(T item) { } - public void Insert(int index, T item) { } - public bool IsNew(int index) { } - [System.Diagnostics.ConditionalAttribute("NOP")] - protected void NotifyListChanged(Castle.Components.DictionaryAdapter.ListProjection.ListChangedType type, int index) { } - [System.Diagnostics.ConditionalAttribute("NOP")] - protected void NotifyListReset() { } - protected virtual void OnInserted(T newValue, int index) { } - protected virtual bool OnInserting(T value) { } - protected virtual void OnRemoved(T oldValue, int index) { } - protected virtual void OnRemoving(T oldValue) { } - protected virtual void OnReplaced(T oldValue, T newValue, int index) { } - protected virtual bool OnReplacing(T oldValue, T newValue) { } - public void RejectChanges() { } - public virtual bool Remove(T item) { } - public virtual void RemoveAt(int index) { } - public void Replace(System.Collections.Generic.IEnumerable items) { } - public bool ResumeEvents() { } - public void SuspendEvents() { } - protected enum ListChangedType - { - ItemAdded = 0, - ItemChanged = 1, - ItemDeleted = 2, - } - } - public class MemberwiseEqualityHashCodeStrategy : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryEqualityHashCodeStrategy, Castle.Components.DictionaryAdapter.IDictionaryInitializer, System.Collections.Generic.IEqualityComparer - { - public MemberwiseEqualityHashCodeStrategy() { } - public bool Equals(Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter1, Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter2) { } - public int GetHashCode(Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter) { } - public bool GetHashCode(Castle.Components.DictionaryAdapter.IDictionaryAdapter adapter, out int hashCode) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=false)] - public class MultiLevelEditAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryInitializer - { - public MultiLevelEditAttribute() { } - public void Initialize(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, object[] behaviors) { } - } - public class NameValueCollectionAdapter : Castle.Components.DictionaryAdapter.AbstractDictionaryAdapter - { - public NameValueCollectionAdapter(System.Collections.Specialized.NameValueCollection nameValues) { } - public override bool IsReadOnly { get; } - public override object this[object key] { get; set; } - public static Castle.Components.DictionaryAdapter.NameValueCollectionAdapter Adapt(System.Collections.Specialized.NameValueCollection nameValues) { } - public override bool Contains(object key) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=false)] - public class NewGuidAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryPropertyGetter - { - public NewGuidAttribute() { } - public object GetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, object storedValue, Castle.Components.DictionaryAdapter.PropertyDescriptor property, bool ifExists) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=false)] - public class OnDemandAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryPropertyGetter - { - public OnDemandAttribute() { } - public OnDemandAttribute(System.Type type) { } - public OnDemandAttribute(object value) { } - public System.Type Type { get; } - public object Value { get; } - public object GetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, object storedValue, Castle.Components.DictionaryAdapter.PropertyDescriptor property, bool ifExists) { } - } - public class PropertyChangedEventArgsEx : System.ComponentModel.PropertyChangedEventArgs - { - public PropertyChangedEventArgsEx(string propertyName, object oldValue, object newValue) { } - public object NewValue { get; } - public object OldValue { get; } - } - public class PropertyChangingEventArgsEx : System.ComponentModel.PropertyChangingEventArgs - { - public PropertyChangingEventArgsEx(string propertyName, object oldValue, object newValue) { } - public bool Cancel { get; set; } - public object NewValue { get; } - public object OldValue { get; } - } - [System.Diagnostics.DebuggerDisplayAttribute("{Property.DeclaringType.FullName,nq}.{PropertyName,nq}")] - public class PropertyDescriptor : Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryKeyBuilder, Castle.Components.DictionaryAdapter.IDictionaryPropertyGetter, Castle.Components.DictionaryAdapter.IDictionaryPropertySetter - { - protected System.Collections.Generic.List dictionaryBehaviors; - public PropertyDescriptor() { } - public PropertyDescriptor(System.Reflection.PropertyInfo property, object[] annotations) { } - public PropertyDescriptor(object[] annotations) { } - public PropertyDescriptor(Castle.Components.DictionaryAdapter.PropertyDescriptor source, bool copyBehaviors) { } - public object[] Annotations { get; } - public System.Collections.Generic.IEnumerable Behaviors { get; } - public int ExecutionOrder { get; } - public System.Collections.IDictionary ExtendedProperties { get; } - public bool Fetch { get; set; } - public System.Collections.Generic.IEnumerable Getters { get; } - public bool IfExists { get; set; } - public System.Collections.Generic.IEnumerable Initializers { get; } - public bool IsDynamicProperty { get; } - public System.Collections.Generic.IEnumerable KeyBuilders { get; } - public System.Collections.Generic.IEnumerable MetaInitializers { get; } - public System.Reflection.PropertyInfo Property { get; } - public string PropertyName { get; } - public System.Type PropertyType { get; } - public System.Collections.Generic.IEnumerable Setters { get; } - public System.Collections.IDictionary State { get; } - public bool SuppressNotifications { get; set; } - public System.ComponentModel.TypeConverter TypeConverter { get; } - public Castle.Components.DictionaryAdapter.PropertyDescriptor AddBehavior(Castle.Components.DictionaryAdapter.IDictionaryBehavior behavior) { } - public Castle.Components.DictionaryAdapter.PropertyDescriptor AddBehaviors(params Castle.Components.DictionaryAdapter.IDictionaryBehavior[] behaviors) { } - public Castle.Components.DictionaryAdapter.PropertyDescriptor AddBehaviors(System.Collections.Generic.IEnumerable behaviors) { } - public Castle.Components.DictionaryAdapter.IDictionaryBehavior Copy() { } - public Castle.Components.DictionaryAdapter.PropertyDescriptor CopyBehaviors(Castle.Components.DictionaryAdapter.PropertyDescriptor other) { } - public string GetKey(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, Castle.Components.DictionaryAdapter.PropertyDescriptor descriptor) { } - public object GetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, object storedValue, Castle.Components.DictionaryAdapter.PropertyDescriptor descriptor, bool ifExists) { } - public static void MergeBehavior(ref System.Collections.Generic.List dictionaryBehaviors, T behavior) - where T : class, Castle.Components.DictionaryAdapter.IDictionaryBehavior { } - public bool SetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, ref object value, Castle.Components.DictionaryAdapter.PropertyDescriptor descriptor) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All)] - public class ReferenceAttribute : System.Attribute - { - public ReferenceAttribute() { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=true)] - public class RemoveIfAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryPropertySetter - { - public RemoveIfAttribute() { } - public RemoveIfAttribute(params object[] values) { } - public RemoveIfAttribute(object[] values, System.Type comparerType) { } - protected RemoveIfAttribute(Castle.Components.DictionaryAdapter.ICondition condition) { } - public System.Type Condition { set; } - } - public class RemoveIfEmptyAttribute : Castle.Components.DictionaryAdapter.RemoveIfAttribute - { - public RemoveIfEmptyAttribute() { } - } - public class SetProjection : Castle.Components.DictionaryAdapter.ListProjection, System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.Generic.ISet, System.Collections.IEnumerable - { - public SetProjection(Castle.Components.DictionaryAdapter.ICollectionAdapter adapter) { } - public override bool Add(T item) { } - public override void Clear() { } - public override bool Contains(T item) { } - public override void EndNew(int index) { } - public void ExceptWith(System.Collections.Generic.IEnumerable other) { } - public void IntersectWith(System.Collections.Generic.IEnumerable other) { } - public bool IsProperSubsetOf(System.Collections.Generic.IEnumerable other) { } - public bool IsProperSupersetOf(System.Collections.Generic.IEnumerable other) { } - public bool IsSubsetOf(System.Collections.Generic.IEnumerable other) { } - public bool IsSupersetOf(System.Collections.Generic.IEnumerable other) { } - protected override bool OnInserting(T value) { } - protected override bool OnReplacing(T oldValue, T newValue) { } - public bool Overlaps(System.Collections.Generic.IEnumerable other) { } - public override bool Remove(T item) { } - public override void RemoveAt(int index) { } - public bool SetEquals(System.Collections.Generic.IEnumerable other) { } - public void SymmetricExceptWith(System.Collections.Generic.IEnumerable other) { } - public void UnionWith(System.Collections.Generic.IEnumerable other) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.All, AllowMultiple=false, Inherited=false)] - public class StringFormatAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryPropertyGetter - { - public StringFormatAttribute(string format, string properties) { } - public string Format { get; } - public string Properties { get; } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.All, AllowMultiple=false, Inherited=true)] - public class StringListAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryPropertyGetter, Castle.Components.DictionaryAdapter.IDictionaryPropertySetter - { - public StringListAttribute() { } - public char Separator { get; set; } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=false)] - public class StringStorageAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryPropertySetter - { - public StringStorageAttribute() { } - public bool SetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter dictionaryAdapter, string key, ref object value, Castle.Components.DictionaryAdapter.PropertyDescriptor property) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=false, Inherited=true)] - public class StringValuesAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryPropertySetter - { - public StringValuesAttribute() { } - public string Format { get; set; } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.All, AllowMultiple=false)] - public class SuppressNotificationsAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IPropertyDescriptorInitializer - { - public SuppressNotificationsAttribute() { } - public void Initialize(Castle.Components.DictionaryAdapter.PropertyDescriptor propertyDescriptor, object[] behaviors) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=false, Inherited=true)] - public class TypeKeyPrefixAttribute : Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute, Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryKeyBuilder - { - public TypeKeyPrefixAttribute() { } - } - public abstract class VirtualObject : Castle.Components.DictionaryAdapter.IVirtual, Castle.Components.DictionaryAdapter.IVirtual - { - protected VirtualObject() { } - protected VirtualObject(Castle.Components.DictionaryAdapter.IVirtualSite site) { } - public abstract bool IsReal { get; } - public event System.EventHandler Realized; - protected void AddSite(Castle.Components.DictionaryAdapter.IVirtualSite site) { } - protected virtual void OnRealized() { } - public TNode Realize() { } - protected void RemoveSite(Castle.Components.DictionaryAdapter.IVirtualSite site) { } - protected abstract bool TryRealize(out TNode node); - } - public sealed class VirtualSite : Castle.Components.DictionaryAdapter.IVirtualSite, System.IEquatable> - { - public VirtualSite(Castle.Components.DictionaryAdapter.IVirtualTarget target, TMember member) { } - public TMember Member { get; } - public Castle.Components.DictionaryAdapter.IVirtualTarget Target { get; } - public override bool Equals(object obj) { } - public bool Equals(Castle.Components.DictionaryAdapter.VirtualSite other) { } - public override int GetHashCode() { } - public void OnRealizing(TNode node) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=false)] - public class VolatileAttribute : System.Attribute - { - public VolatileAttribute() { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Interface | System.AttributeTargets.All)] - public class XmlDefaultsAttribute : System.Attribute - { - public XmlDefaultsAttribute() { } - public bool IsNullable { get; set; } - public bool Qualified { get; set; } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Property | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=true)] - public class XmlNamespaceAttribute : System.Attribute - { - public XmlNamespaceAttribute(string namespaceUri, string prefix) { } - public bool Default { get; set; } - public string NamespaceUri { get; } - public string Prefix { get; } - public bool Root { get; set; } - } -} -namespace Castle.Core.Configuration -{ - public abstract class AbstractConfiguration : Castle.Core.Configuration.IConfiguration - { - protected AbstractConfiguration() { } - public virtual Castle.Core.Configuration.ConfigurationAttributeCollection Attributes { get; } - public virtual Castle.Core.Configuration.ConfigurationCollection Children { get; } - public string Name { get; set; } - public string Value { get; set; } - public virtual object GetValue(System.Type type, object defaultValue) { } - } - public class ConfigurationAttributeCollection : System.Collections.Specialized.NameValueCollection - { - public ConfigurationAttributeCollection() { } - } - public class ConfigurationCollection : System.Collections.Generic.List - { - public ConfigurationCollection() { } - public ConfigurationCollection(System.Collections.Generic.IEnumerable value) { } - public Castle.Core.Configuration.IConfiguration this[string name] { get; } - } - public interface IConfiguration - { - Castle.Core.Configuration.ConfigurationAttributeCollection Attributes { get; } - Castle.Core.Configuration.ConfigurationCollection Children { get; } - string Name { get; } - string Value { get; } - object GetValue(System.Type type, object defaultValue); - } - public class MutableConfiguration : Castle.Core.Configuration.AbstractConfiguration - { - public MutableConfiguration(string name) { } - public MutableConfiguration(string name, string value) { } - public new string Value { get; set; } - public Castle.Core.Configuration.MutableConfiguration Attribute(string name, string value) { } - public static Castle.Core.Configuration.MutableConfiguration Create(string name) { } - public Castle.Core.Configuration.MutableConfiguration CreateChild(string name) { } - public Castle.Core.Configuration.MutableConfiguration CreateChild(string name, string value) { } - } -} -namespace Castle.Core.Configuration.Xml -{ - public class XmlConfigurationDeserializer - { - public XmlConfigurationDeserializer() { } - public Castle.Core.Configuration.IConfiguration Deserialize(System.Xml.XmlNode node) { } - public static string GetConfigValue(string value) { } - public static Castle.Core.Configuration.IConfiguration GetDeserializedNode(System.Xml.XmlNode node) { } - public static bool IsTextNode(System.Xml.XmlNode node) { } - } -} -namespace Castle.Core -{ - public interface IServiceEnabledComponent - { - void Service(System.IServiceProvider provider); - } - public interface IServiceProviderEx : System.IServiceProvider - { - T GetService() - where T : class; - } - public interface IServiceProviderExAccessor - { - Castle.Core.IServiceProviderEx ServiceProvider { get; } - } - public class Pair : System.IEquatable> - { - public Pair(TFirst first, TSecond second) { } - public TFirst First { get; } - public TSecond Second { get; } - public bool Equals(Castle.Core.Pair other) { } - public override bool Equals(object obj) { } - public override int GetHashCode() { } - public override string ToString() { } - } - public class static ProxyServices - { - public static bool IsDynamicProxy(System.Type type) { } - } - public class ReferenceEqualityComparer : System.Collections.Generic.IEqualityComparer, System.Collections.IEqualityComparer - { - public static Castle.Core.ReferenceEqualityComparer Instance { get; } - public int GetHashCode(object obj) { } - } - public sealed class ReflectionBasedDictionaryAdapter : System.Collections.ICollection, System.Collections.IDictionary, System.Collections.IEnumerable - { - public ReflectionBasedDictionaryAdapter(object target) { } - public int Count { get; } - public bool IsReadOnly { get; } - public bool IsSynchronized { get; } - public object this[object key] { get; set; } - public System.Collections.ICollection Keys { get; } - public object SyncRoot { get; } - public System.Collections.ICollection Values { get; } - public void Add(object key, object value) { } - public void Clear() { } - public bool Contains(object key) { } - public System.Collections.IEnumerator GetEnumerator() { } - public static void Read(System.Collections.IDictionary targetDictionary, object valuesAsAnonymousObject) { } - public void Remove(object key) { } - } - public sealed class StringObjectDictionaryAdapter : System.Collections.Generic.ICollection>, System.Collections.Generic.IDictionary, System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable - { - public StringObjectDictionaryAdapter(System.Collections.IDictionary dictionary) { } - public int Count { get; } - public bool IsFixedSize { get; } - public bool IsReadOnly { get; } - public bool IsSynchronized { get; } - public object this[object key] { get; set; } - public System.Collections.ICollection Keys { get; } - public object SyncRoot { get; } - public System.Collections.ICollection Values { get; } - public void Add(object key, object value) { } - public void Clear() { } - public bool Contains(object key) { } - public void CopyTo(System.Array array, int index) { } - public System.Collections.IEnumerator GetEnumerator() { } - public void Remove(object key) { } - } -} -namespace Castle.Core.Internal -{ - public class static AttributesUtil - { - public static T GetAttribute(this System.Type type) - where T : System.Attribute { } - public static T GetAttribute(this System.Reflection.MemberInfo member) - where T : System.Attribute { } - public static System.AttributeUsageAttribute GetAttributeUsage(this System.Type attributeType) { } - public static System.Collections.Generic.IEnumerable GetAttributes(this System.Type type) - where T : System.Attribute { } - public static System.Collections.Generic.IEnumerable GetAttributes(this System.Reflection.MemberInfo member) - where T : System.Attribute { } - public static T GetTypeAttribute(this System.Type type) - where T : System.Attribute { } - public static T[] GetTypeAttributes(System.Type type) - where T : System.Attribute { } - public static System.Type GetTypeConverter(System.Reflection.MemberInfo member) { } - } - public class static CollectionExtensions - { - public static bool AreEquivalent(System.Collections.Generic.IList listA, System.Collections.Generic.IList listB) { } - public static T Find(this T[] items, System.Predicate predicate) { } - public static T[] FindAll(this T[] items, System.Predicate predicate) { } - public static int GetContentsHashCode(System.Collections.Generic.IList list) { } - public static bool IsNullOrEmpty(this System.Collections.IEnumerable @this) { } - } - [System.ObsoleteAttribute("Consider using `System.Threading.ReaderWriterLockSlim` instead of `Lock` and rela" + - "ted types.")] - public interface ILockHolder : System.IDisposable - { - bool LockAcquired { get; } - } - [System.ObsoleteAttribute("Consider using `System.Threading.ReaderWriterLockSlim` instead of `Lock` and rela" + - "ted types.")] - public interface IUpgradeableLockHolder : Castle.Core.Internal.ILockHolder, System.IDisposable - { - Castle.Core.Internal.ILockHolder Upgrade(); - Castle.Core.Internal.ILockHolder Upgrade(bool waitForLock); - } - public class InternalsVisible - { - public const string ToCastleCore = @"Castle.Core, PublicKey=002400000480000094000000060200000024000052534131000400000100010077F5E87030DADCCCE6902C6ADAB7A987BD69CB5819991531F560785EACFC89B6FCDDF6BB2A00743A7194E454C0273447FC6EEC36474BA8E5A3823147D214298E4F9A631B1AFEE1A51FFEAE4672D498F14B000E3D321453CDD8AC064DE7E1CF4D222B7E81F54D4FD46725370D702A05B48738CC29D09228F1AA722AE1A9CA02FB"; - public const string ToDynamicProxyGenAssembly2 = @"DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7"; - public InternalsVisible() { } - } - [System.ObsoleteAttribute("Consider using `System.Threading.ReaderWriterLockSlim` instead of `Lock` and rela" + - "ted types.")] - public abstract class Lock - { - protected Lock() { } - public static Castle.Core.Internal.Lock Create() { } - public abstract Castle.Core.Internal.ILockHolder ForReading(); - public abstract Castle.Core.Internal.ILockHolder ForReading(bool waitForLock); - public abstract Castle.Core.Internal.IUpgradeableLockHolder ForReadingUpgradeable(); - public abstract Castle.Core.Internal.IUpgradeableLockHolder ForReadingUpgradeable(bool waitForLock); - public abstract Castle.Core.Internal.ILockHolder ForWriting(); - public abstract Castle.Core.Internal.ILockHolder ForWriting(bool waitForLock); - } -} -namespace Castle.Core.Logging -{ - public abstract class AbstractExtendedLoggerFactory : Castle.Core.Logging.IExtendedLoggerFactory, Castle.Core.Logging.ILoggerFactory - { - protected AbstractExtendedLoggerFactory() { } - public virtual Castle.Core.Logging.IExtendedLogger Create(System.Type type) { } - public abstract Castle.Core.Logging.IExtendedLogger Create(string name); - public virtual Castle.Core.Logging.IExtendedLogger Create(System.Type type, Castle.Core.Logging.LoggerLevel level) { } - public abstract Castle.Core.Logging.IExtendedLogger Create(string name, Castle.Core.Logging.LoggerLevel level); - protected static System.IO.FileInfo GetConfigFile(string fileName) { } - } - public abstract class AbstractLoggerFactory : Castle.Core.Logging.ILoggerFactory - { - protected AbstractLoggerFactory() { } - public virtual Castle.Core.Logging.ILogger Create(System.Type type) { } - public virtual Castle.Core.Logging.ILogger Create(System.Type type, Castle.Core.Logging.LoggerLevel level) { } - public abstract Castle.Core.Logging.ILogger Create(string name); - public abstract Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level); - protected static System.IO.FileInfo GetConfigFile(string fileName) { } - } - public class ConsoleFactory : Castle.Core.Logging.ILoggerFactory - { - public ConsoleFactory() { } - public ConsoleFactory(Castle.Core.Logging.LoggerLevel level) { } - public Castle.Core.Logging.ILogger Create(System.Type type) { } - public Castle.Core.Logging.ILogger Create(string name) { } - public Castle.Core.Logging.ILogger Create(System.Type type, Castle.Core.Logging.LoggerLevel level) { } - public Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } - } - public class ConsoleLogger : Castle.Core.Logging.LevelFilteredLogger - { - public ConsoleLogger() { } - public ConsoleLogger(Castle.Core.Logging.LoggerLevel logLevel) { } - public ConsoleLogger(string name) { } - public ConsoleLogger(string name, Castle.Core.Logging.LoggerLevel logLevel) { } - public override Castle.Core.Logging.ILogger CreateChildLogger(string loggerName) { } - protected override void Log(Castle.Core.Logging.LoggerLevel loggerLevel, string loggerName, string message, System.Exception exception) { } - } - public interface IContextProperties - { - object this[string key] { get; set; } - } - public interface IContextStack - { - int Count { get; } - void Clear(); - string Pop(); - System.IDisposable Push(string message); - } - public interface IContextStacks - { - Castle.Core.Logging.IContextStack this[string key] { get; } - } - public interface IExtendedLogger : Castle.Core.Logging.ILogger - { - Castle.Core.Logging.IContextProperties GlobalProperties { get; } - Castle.Core.Logging.IContextProperties ThreadProperties { get; } - Castle.Core.Logging.IContextStacks ThreadStacks { get; } - } - public interface IExtendedLoggerFactory : Castle.Core.Logging.ILoggerFactory - { - Castle.Core.Logging.IExtendedLogger Create(System.Type type); - Castle.Core.Logging.IExtendedLogger Create(string name); - Castle.Core.Logging.IExtendedLogger Create(System.Type type, Castle.Core.Logging.LoggerLevel level); - Castle.Core.Logging.IExtendedLogger Create(string name, Castle.Core.Logging.LoggerLevel level); - } - public interface ILogger - { - bool IsDebugEnabled { get; } - bool IsErrorEnabled { get; } - bool IsFatalEnabled { get; } - bool IsInfoEnabled { get; } - bool IsTraceEnabled { get; } - bool IsWarnEnabled { get; } - Castle.Core.Logging.ILogger CreateChildLogger(string loggerName); - void Debug(string message); - void Debug(System.Func messageFactory); - void Debug(string message, System.Exception exception); - void DebugFormat(string format, params object[] args); - void DebugFormat(System.Exception exception, string format, params object[] args); - void DebugFormat(System.IFormatProvider formatProvider, string format, params object[] args); - void DebugFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args); - void Error(string message); - void Error(System.Func messageFactory); - void Error(string message, System.Exception exception); - void ErrorFormat(string format, params object[] args); - void ErrorFormat(System.Exception exception, string format, params object[] args); - void ErrorFormat(System.IFormatProvider formatProvider, string format, params object[] args); - void ErrorFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args); - void Fatal(string message); - void Fatal(System.Func messageFactory); - void Fatal(string message, System.Exception exception); - void FatalFormat(string format, params object[] args); - void FatalFormat(System.Exception exception, string format, params object[] args); - void FatalFormat(System.IFormatProvider formatProvider, string format, params object[] args); - void FatalFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args); - void Info(string message); - void Info(System.Func messageFactory); - void Info(string message, System.Exception exception); - void InfoFormat(string format, params object[] args); - void InfoFormat(System.Exception exception, string format, params object[] args); - void InfoFormat(System.IFormatProvider formatProvider, string format, params object[] args); - void InfoFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args); - void Trace(string message); - void Trace(System.Func messageFactory); - void Trace(string message, System.Exception exception); - void TraceFormat(string format, params object[] args); - void TraceFormat(System.Exception exception, string format, params object[] args); - void TraceFormat(System.IFormatProvider formatProvider, string format, params object[] args); - void TraceFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args); - void Warn(string message); - void Warn(System.Func messageFactory); - void Warn(string message, System.Exception exception); - void WarnFormat(string format, params object[] args); - void WarnFormat(System.Exception exception, string format, params object[] args); - void WarnFormat(System.IFormatProvider formatProvider, string format, params object[] args); - void WarnFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args); - } - public interface ILoggerFactory - { - Castle.Core.Logging.ILogger Create(System.Type type); - Castle.Core.Logging.ILogger Create(string name); - Castle.Core.Logging.ILogger Create(System.Type type, Castle.Core.Logging.LoggerLevel level); - Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level); - } - public abstract class LevelFilteredLogger : Castle.Core.Logging.ILogger - { - protected LevelFilteredLogger() { } - protected LevelFilteredLogger(string name) { } - protected LevelFilteredLogger(Castle.Core.Logging.LoggerLevel loggerLevel) { } - protected LevelFilteredLogger(string loggerName, Castle.Core.Logging.LoggerLevel loggerLevel) { } - public bool IsDebugEnabled { get; } - public bool IsErrorEnabled { get; } - public bool IsFatalEnabled { get; } - public bool IsInfoEnabled { get; } - public bool IsTraceEnabled { get; } - public bool IsWarnEnabled { get; } - public Castle.Core.Logging.LoggerLevel Level { get; set; } - public string Name { get; } - protected void ChangeName(string newName) { } - public abstract Castle.Core.Logging.ILogger CreateChildLogger(string loggerName); - public void Debug(string message) { } - public void Debug(System.Func messageFactory) { } - public void Debug(string message, System.Exception exception) { } - public void DebugFormat(string format, params object[] args) { } - public void DebugFormat(System.Exception exception, string format, params object[] args) { } - public void DebugFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void DebugFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Error(string message) { } - public void Error(System.Func messageFactory) { } - public void Error(string message, System.Exception exception) { } - public void ErrorFormat(string format, params object[] args) { } - public void ErrorFormat(System.Exception exception, string format, params object[] args) { } - public void ErrorFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void ErrorFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Fatal(string message) { } - public void Fatal(System.Func messageFactory) { } - public void Fatal(string message, System.Exception exception) { } - public void FatalFormat(string format, params object[] args) { } - public void FatalFormat(System.Exception exception, string format, params object[] args) { } - public void FatalFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void FatalFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Info(string message) { } - public void Info(System.Func messageFactory) { } - public void Info(string message, System.Exception exception) { } - public void InfoFormat(string format, params object[] args) { } - public void InfoFormat(System.Exception exception, string format, params object[] args) { } - public void InfoFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void InfoFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - protected abstract void Log(Castle.Core.Logging.LoggerLevel loggerLevel, string loggerName, string message, System.Exception exception); - public void Trace(string message) { } - public void Trace(System.Func messageFactory) { } - public void Trace(string message, System.Exception exception) { } - public void TraceFormat(string format, params object[] args) { } - public void TraceFormat(System.Exception exception, string format, params object[] args) { } - public void TraceFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void TraceFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Warn(string message) { } - public void Warn(System.Func messageFactory) { } - public void Warn(string message, System.Exception exception) { } - public void WarnFormat(string format, params object[] args) { } - public void WarnFormat(System.Exception exception, string format, params object[] args) { } - public void WarnFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void WarnFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - } - public class LoggerException : System.Exception - { - public LoggerException() { } - public LoggerException(string message) { } - public LoggerException(string message, System.Exception innerException) { } - } - public enum LoggerLevel - { - Off = 0, - Fatal = 1, - Error = 2, - Warn = 3, - Info = 4, - Debug = 5, - Trace = 6, - } - public class NullLogFactory : Castle.Core.Logging.AbstractLoggerFactory - { - public NullLogFactory() { } - public override Castle.Core.Logging.ILogger Create(string name) { } - public override Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } - } - public class NullLogger : Castle.Core.Logging.IExtendedLogger, Castle.Core.Logging.ILogger - { - public static readonly Castle.Core.Logging.NullLogger Instance; - public NullLogger() { } - public Castle.Core.Logging.IContextProperties GlobalProperties { get; } - public bool IsDebugEnabled { get; } - public bool IsErrorEnabled { get; } - public bool IsFatalEnabled { get; } - public bool IsInfoEnabled { get; } - public bool IsTraceEnabled { get; } - public bool IsWarnEnabled { get; } - public Castle.Core.Logging.IContextProperties ThreadProperties { get; } - public Castle.Core.Logging.IContextStacks ThreadStacks { get; } - public Castle.Core.Logging.ILogger CreateChildLogger(string loggerName) { } - public void Debug(string message) { } - public void Debug(System.Func messageFactory) { } - public void Debug(string message, System.Exception exception) { } - public void DebugFormat(string format, params object[] args) { } - public void DebugFormat(System.Exception exception, string format, params object[] args) { } - public void DebugFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void DebugFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Error(string message) { } - public void Error(System.Func messageFactory) { } - public void Error(string message, System.Exception exception) { } - public void ErrorFormat(string format, params object[] args) { } - public void ErrorFormat(System.Exception exception, string format, params object[] args) { } - public void ErrorFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void ErrorFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Fatal(string message) { } - public void Fatal(System.Func messageFactory) { } - public void Fatal(string message, System.Exception exception) { } - public void FatalFormat(string format, params object[] args) { } - public void FatalFormat(System.Exception exception, string format, params object[] args) { } - public void FatalFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void FatalFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Info(string message) { } - public void Info(System.Func messageFactory) { } - public void Info(string message, System.Exception exception) { } - public void InfoFormat(string format, params object[] args) { } - public void InfoFormat(System.Exception exception, string format, params object[] args) { } - public void InfoFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void InfoFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Trace(string message) { } - public void Trace(System.Func messageFactory) { } - public void Trace(string message, System.Exception exception) { } - public void TraceFormat(string format, params object[] args) { } - public void TraceFormat(System.Exception exception, string format, params object[] args) { } - public void TraceFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void TraceFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Warn(string message) { } - public void Warn(System.Func messageFactory) { } - public void Warn(string message, System.Exception exception) { } - public void WarnFormat(string format, params object[] args) { } - public void WarnFormat(System.Exception exception, string format, params object[] args) { } - public void WarnFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void WarnFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - } - public class StreamLogger : Castle.Core.Logging.LevelFilteredLogger, System.IDisposable - { - public StreamLogger(string name, System.IO.Stream stream) { } - public StreamLogger(string name, System.IO.Stream stream, System.Text.Encoding encoding) { } - public StreamLogger(string name, System.IO.Stream stream, System.Text.Encoding encoding, int bufferSize) { } - protected StreamLogger(string name, System.IO.StreamWriter writer) { } - public override Castle.Core.Logging.ILogger CreateChildLogger(string loggerName) { } - public void Dispose() { } - protected virtual void Dispose(bool disposing) { } - protected override void Finalize() { } - protected override void Log(Castle.Core.Logging.LoggerLevel loggerLevel, string loggerName, string message, System.Exception exception) { } - } - public class StreamLoggerFactory : Castle.Core.Logging.AbstractLoggerFactory - { - public StreamLoggerFactory() { } - public override Castle.Core.Logging.ILogger Create(string name) { } - public override Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } - } - public class TraceLogger : Castle.Core.Logging.LevelFilteredLogger - { - public TraceLogger(string name) { } - public TraceLogger(string name, Castle.Core.Logging.LoggerLevel level) { } - public override Castle.Core.Logging.ILogger CreateChildLogger(string loggerName) { } - protected override void Log(Castle.Core.Logging.LoggerLevel loggerLevel, string loggerName, string message, System.Exception exception) { } - } - public class TraceLoggerFactory : Castle.Core.Logging.AbstractLoggerFactory - { - public TraceLoggerFactory() { } - public TraceLoggerFactory(Castle.Core.Logging.LoggerLevel level) { } - public override Castle.Core.Logging.ILogger Create(string name) { } - public override Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } - } -} -namespace Castle.Core.Resource -{ - public abstract class AbstractResource : Castle.Core.Resource.IResource, System.IDisposable - { - protected static readonly string DefaultBasePath; - protected AbstractResource() { } - public virtual string FileBasePath { get; } - public abstract Castle.Core.Resource.IResource CreateRelative(string relativePath); - public void Dispose() { } - protected virtual void Dispose(bool disposing) { } - public abstract System.IO.TextReader GetStreamReader(); - public abstract System.IO.TextReader GetStreamReader(System.Text.Encoding encoding); - } - public abstract class AbstractStreamResource : Castle.Core.Resource.AbstractResource - { - protected AbstractStreamResource() { } - public Castle.Core.Resource.StreamFactory CreateStream { get; set; } - protected override void Finalize() { } - public override System.IO.TextReader GetStreamReader() { } - public override System.IO.TextReader GetStreamReader(System.Text.Encoding encoding) { } - } - public class AssemblyBundleResource : Castle.Core.Resource.AbstractResource - { - public AssemblyBundleResource(Castle.Core.Resource.CustomUri resource) { } - public override Castle.Core.Resource.IResource CreateRelative(string relativePath) { } - public override System.IO.TextReader GetStreamReader() { } - public override System.IO.TextReader GetStreamReader(System.Text.Encoding encoding) { } - } - public class AssemblyResource : Castle.Core.Resource.AbstractStreamResource - { - public AssemblyResource(Castle.Core.Resource.CustomUri resource) { } - public AssemblyResource(Castle.Core.Resource.CustomUri resource, string basePath) { } - public AssemblyResource(string resource) { } - public override Castle.Core.Resource.IResource CreateRelative(string relativePath) { } - public override string ToString() { } - } - public class AssemblyResourceFactory : Castle.Core.Resource.IResourceFactory - { - public AssemblyResourceFactory() { } - public bool Accept(Castle.Core.Resource.CustomUri uri) { } - public Castle.Core.Resource.IResource Create(Castle.Core.Resource.CustomUri uri) { } - public Castle.Core.Resource.IResource Create(Castle.Core.Resource.CustomUri uri, string basePath) { } - } - public sealed class CustomUri - { - public static readonly string SchemeDelimiter; - public static readonly string UriSchemeAssembly; - public static readonly string UriSchemeFile; - public CustomUri(string resourceIdentifier) { } - public string Host { get; } - public bool IsAssembly { get; } - public bool IsFile { get; } - public bool IsUnc { get; } - public string Path { get; } - public string Scheme { get; } - } - public class FileResource : Castle.Core.Resource.AbstractStreamResource - { - public FileResource(Castle.Core.Resource.CustomUri resource) { } - public FileResource(Castle.Core.Resource.CustomUri resource, string basePath) { } - public FileResource(string resourceName) { } - public FileResource(string resourceName, string basePath) { } - public override string FileBasePath { get; } - public override Castle.Core.Resource.IResource CreateRelative(string relativePath) { } - public override string ToString() { } - } - public class FileResourceFactory : Castle.Core.Resource.IResourceFactory - { - public FileResourceFactory() { } - public bool Accept(Castle.Core.Resource.CustomUri uri) { } - public Castle.Core.Resource.IResource Create(Castle.Core.Resource.CustomUri uri) { } - public Castle.Core.Resource.IResource Create(Castle.Core.Resource.CustomUri uri, string basePath) { } - } - public interface IResource : System.IDisposable - { - string FileBasePath { get; } - Castle.Core.Resource.IResource CreateRelative(string relativePath); - System.IO.TextReader GetStreamReader(); - System.IO.TextReader GetStreamReader(System.Text.Encoding encoding); - } - public interface IResourceFactory - { - bool Accept(Castle.Core.Resource.CustomUri uri); - Castle.Core.Resource.IResource Create(Castle.Core.Resource.CustomUri uri); - Castle.Core.Resource.IResource Create(Castle.Core.Resource.CustomUri uri, string basePath); - } - public class ResourceException : System.Exception - { - public ResourceException() { } - public ResourceException(string message) { } - public ResourceException(string message, System.Exception innerException) { } - } - public class StaticContentResource : Castle.Core.Resource.AbstractResource - { - public StaticContentResource(string contents) { } - public override Castle.Core.Resource.IResource CreateRelative(string relativePath) { } - public override System.IO.TextReader GetStreamReader() { } - public override System.IO.TextReader GetStreamReader(System.Text.Encoding encoding) { } - } - public delegate System.IO.Stream StreamFactory(); - public class UncResource : Castle.Core.Resource.AbstractStreamResource - { - public UncResource(Castle.Core.Resource.CustomUri resource) { } - public UncResource(Castle.Core.Resource.CustomUri resource, string basePath) { } - public UncResource(string resourceName) { } - public UncResource(string resourceName, string basePath) { } - public override string FileBasePath { get; } - public override Castle.Core.Resource.IResource CreateRelative(string relativePath) { } - public override string ToString() { } - } - public class UncResourceFactory : Castle.Core.Resource.IResourceFactory - { - public UncResourceFactory() { } - public bool Accept(Castle.Core.Resource.CustomUri uri) { } - public Castle.Core.Resource.IResource Create(Castle.Core.Resource.CustomUri uri) { } - public Castle.Core.Resource.IResource Create(Castle.Core.Resource.CustomUri uri, string basePath) { } - } -} -namespace Castle.DynamicProxy -{ - public abstract class AbstractInvocation : Castle.DynamicProxy.IInvocation - { - protected readonly object proxyObject; - protected AbstractInvocation(object proxy, Castle.DynamicProxy.IInterceptor[] interceptors, System.Reflection.MethodInfo proxiedMethod, object[] arguments) { } - public object[] Arguments { get; } - public System.Type[] GenericArguments { get; } - public abstract object InvocationTarget { get; } - public System.Reflection.MethodInfo Method { get; } - public abstract System.Reflection.MethodInfo MethodInvocationTarget { get; } - public object Proxy { get; } - public object ReturnValue { get; set; } - public abstract System.Type TargetType { get; } - public Castle.DynamicProxy.IInvocationProceedInfo CaptureProceedInfo() { } - public object GetArgumentValue(int index) { } - public System.Reflection.MethodInfo GetConcreteMethod() { } - public System.Reflection.MethodInfo GetConcreteMethodInvocationTarget() { } - protected abstract void InvokeMethodOnTarget(); - public void Proceed() { } - public void SetArgumentValue(int index, object value) { } - public void SetGenericMethodArguments(System.Type[] arguments) { } - protected void ThrowOnNoTarget() { } - } - public class AllMethodsHook : Castle.DynamicProxy.IProxyGenerationHook - { - protected static readonly System.Collections.Generic.ICollection SkippedTypes; - public AllMethodsHook() { } - public override bool Equals(object obj) { } - public override int GetHashCode() { } - public virtual void MethodsInspected() { } - public virtual void NonProxyableMemberNotification(System.Type type, System.Reflection.MemberInfo memberInfo) { } - public virtual bool ShouldInterceptMethod(System.Type type, System.Reflection.MethodInfo methodInfo) { } - } - public class CustomAttributeInfo : System.IEquatable - { - public CustomAttributeInfo(System.Reflection.ConstructorInfo constructor, object[] constructorArgs, System.Reflection.PropertyInfo[] namedProperties, object[] propertyValues, System.Reflection.FieldInfo[] namedFields, object[] fieldValues) { } - public CustomAttributeInfo(System.Reflection.ConstructorInfo constructor, object[] constructorArgs, System.Reflection.PropertyInfo[] namedProperties, object[] propertyValues) { } - public CustomAttributeInfo(System.Reflection.ConstructorInfo constructor, object[] constructorArgs, System.Reflection.FieldInfo[] namedFields, object[] fieldValues) { } - public CustomAttributeInfo(System.Reflection.ConstructorInfo constructor, object[] constructorArgs) { } - public bool Equals(Castle.DynamicProxy.CustomAttributeInfo other) { } - public override bool Equals(object obj) { } - public static Castle.DynamicProxy.CustomAttributeInfo FromExpression(System.Linq.Expressions.Expression> expression) { } - public override int GetHashCode() { } - } - public class DefaultProxyBuilder : Castle.DynamicProxy.IProxyBuilder - { - public DefaultProxyBuilder() { } - public DefaultProxyBuilder(Castle.DynamicProxy.ModuleScope scope) { } - public Castle.Core.Logging.ILogger Logger { get; set; } - public Castle.DynamicProxy.ModuleScope ModuleScope { get; } - public System.Type CreateClassProxyType(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options) { } - public System.Type CreateClassProxyTypeWithTarget(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options) { } - public System.Type CreateInterfaceProxyTypeWithTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, System.Type targetType, Castle.DynamicProxy.ProxyGenerationOptions options) { } - public System.Type CreateInterfaceProxyTypeWithTargetInterface(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options) { } - public System.Type CreateInterfaceProxyTypeWithoutTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options) { } - } - public interface IChangeProxyTarget - { - void ChangeInvocationTarget(object target); - [System.ObsoleteAttribute("Use ((IProxyTargetAccessor)invocation.Proxy).DynProxySetTarget(target) instead.")] - void ChangeProxyTarget(object target); - } - public interface IInterceptor - { - void Intercept(Castle.DynamicProxy.IInvocation invocation); - } - public interface IInterceptorSelector - { - Castle.DynamicProxy.IInterceptor[] SelectInterceptors(System.Type type, System.Reflection.MethodInfo method, Castle.DynamicProxy.IInterceptor[] interceptors); - } - public interface IInvocation - { - object[] Arguments { get; } - System.Type[] GenericArguments { get; } - object InvocationTarget { get; } - System.Reflection.MethodInfo Method { get; } - System.Reflection.MethodInfo MethodInvocationTarget { get; } - object Proxy { get; } - object ReturnValue { get; set; } - System.Type TargetType { get; } - Castle.DynamicProxy.IInvocationProceedInfo CaptureProceedInfo(); - object GetArgumentValue(int index); - System.Reflection.MethodInfo GetConcreteMethod(); - System.Reflection.MethodInfo GetConcreteMethodInvocationTarget(); - void Proceed(); - void SetArgumentValue(int index, object value); - } - public interface IInvocationProceedInfo - { - void Invoke(); - } - public interface IProxyBuilder - { - Castle.Core.Logging.ILogger Logger { get; set; } - Castle.DynamicProxy.ModuleScope ModuleScope { get; } - System.Type CreateClassProxyType(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options); - System.Type CreateClassProxyTypeWithTarget(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options); - System.Type CreateInterfaceProxyTypeWithTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, System.Type targetType, Castle.DynamicProxy.ProxyGenerationOptions options); - System.Type CreateInterfaceProxyTypeWithTargetInterface(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options); - System.Type CreateInterfaceProxyTypeWithoutTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options); - } - public interface IProxyGenerationHook - { - void MethodsInspected(); - void NonProxyableMemberNotification(System.Type type, System.Reflection.MemberInfo memberInfo); - bool ShouldInterceptMethod(System.Type type, System.Reflection.MethodInfo methodInfo); - } - [System.CLSCompliantAttribute(true)] - public interface IProxyGenerator - { - Castle.Core.Logging.ILogger Logger { get; set; } - Castle.DynamicProxy.IProxyBuilder ProxyBuilder { get; } - TClass CreateClassProxy(params Castle.DynamicProxy.IInterceptor[] interceptors) - where TClass : class; - TClass CreateClassProxy(Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TClass : class; - object CreateClassProxy(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxy(System.Type classToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxy(System.Type classToProxy, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxy(System.Type classToProxy, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxy(System.Type classToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxy(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxy(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors); - TClass CreateClassProxyWithTarget(TClass target, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TClass : class; - TClass CreateClassProxyWithTarget(TClass target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TClass : class; - object CreateClassProxyWithTarget(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxyWithTarget(System.Type classToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxyWithTarget(System.Type classToProxy, object target, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxyWithTarget(System.Type classToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxyWithTarget(System.Type classToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxyWithTarget(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateClassProxyWithTarget(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors); - TInterface CreateInterfaceProxyWithTarget(TInterface target, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class; - TInterface CreateInterfaceProxyWithTarget(TInterface target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class; - object CreateInterfaceProxyWithTarget(System.Type interfaceToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateInterfaceProxyWithTarget(System.Type interfaceToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateInterfaceProxyWithTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateInterfaceProxyWithTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateInterfaceProxyWithTargetInterface(System.Type interfaceToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors); - TInterface CreateInterfaceProxyWithTargetInterface(TInterface target, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class; - TInterface CreateInterfaceProxyWithTargetInterface(TInterface target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class; - object CreateInterfaceProxyWithTargetInterface(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateInterfaceProxyWithTargetInterface(System.Type interfaceToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateInterfaceProxyWithTargetInterface(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - TInterface CreateInterfaceProxyWithoutTarget(Castle.DynamicProxy.IInterceptor interceptor) - where TInterface : class; - TInterface CreateInterfaceProxyWithoutTarget(params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class; - TInterface CreateInterfaceProxyWithoutTarget(Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class; - object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, Castle.DynamicProxy.IInterceptor interceptor); - object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors); - } - public interface IProxyTargetAccessor - { - object DynProxyGetTarget(); - void DynProxySetTarget(object target); - Castle.DynamicProxy.IInterceptor[] GetInterceptors(); - } - public class InvalidMixinConfigurationException : System.Exception - { - public InvalidMixinConfigurationException(string message) { } - public InvalidMixinConfigurationException(string message, System.Exception innerException) { } - } - public class InvalidProxyConstructorArgumentsException : System.ArgumentException - { - public InvalidProxyConstructorArgumentsException(string message, System.Type proxyType, System.Type classToProxy) { } - public System.Type ClassToProxy { get; } - public System.Type ProxyType { get; } - } - public class MixinData - { - public MixinData(System.Collections.Generic.IEnumerable mixinInstances) { } - public System.Collections.Generic.IEnumerable MixinInterfaces { get; } - public System.Collections.Generic.IEnumerable Mixins { get; } - public bool ContainsMixin(System.Type mixinInterfaceType) { } - public override bool Equals(object obj) { } - public override int GetHashCode() { } - public object GetMixinInstance(System.Type mixinInterfaceType) { } - public int GetMixinPosition(System.Type mixinInterfaceType) { } - } - public class ModuleScope - { - public static readonly string DEFAULT_ASSEMBLY_NAME; - public static readonly string DEFAULT_FILE_NAME; - public ModuleScope() { } - public ModuleScope(bool savePhysicalAssembly) { } - public ModuleScope(bool savePhysicalAssembly, bool disableSignedModule) { } - public ModuleScope(bool savePhysicalAssembly, bool disableSignedModule, string strongAssemblyName, string strongModulePath, string weakAssemblyName, string weakModulePath) { } - public ModuleScope(bool savePhysicalAssembly, bool disableSignedModule, Castle.DynamicProxy.Generators.INamingScope namingScope, string strongAssemblyName, string strongModulePath, string weakAssemblyName, string weakModulePath) { } - [System.ObsoleteAttribute("Exposes a component that is intended for internal use only.")] - public Castle.Core.Internal.Lock Lock { get; } - public Castle.DynamicProxy.Generators.INamingScope NamingScope { get; } - public System.Reflection.Emit.ModuleBuilder StrongNamedModule { get; } - public string StrongNamedModuleName { get; } - public System.Reflection.Emit.ModuleBuilder WeakNamedModule { get; } - public string WeakNamedModuleName { get; } - [System.ObsoleteAttribute("Exposes a component that is intended for internal use only.")] - public System.Reflection.Emit.TypeBuilder DefineType(bool inSignedModulePreferably, string name, System.Reflection.TypeAttributes flags) { } - [System.ObsoleteAttribute("Exposes a component that is intended for internal use only.")] - public System.Type GetFromCache(Castle.DynamicProxy.Generators.CacheKey key) { } - public static byte[] GetKeyPair() { } - public System.Reflection.Emit.ModuleBuilder ObtainDynamicModule(bool isStrongNamed) { } - public System.Reflection.Emit.ModuleBuilder ObtainDynamicModuleWithStrongName() { } - public System.Reflection.Emit.ModuleBuilder ObtainDynamicModuleWithWeakName() { } - [System.ObsoleteAttribute("Exposes a component that is intended for internal use only.")] - public void RegisterInCache(Castle.DynamicProxy.Generators.CacheKey key, System.Type type) { } - } - public class ProxyGenerationException : System.Exception - { - public ProxyGenerationException(string message) { } - public ProxyGenerationException(string message, System.Exception innerException) { } - } - public class ProxyGenerationOptions - { - public static readonly Castle.DynamicProxy.ProxyGenerationOptions Default; - public ProxyGenerationOptions(Castle.DynamicProxy.IProxyGenerationHook hook) { } - public ProxyGenerationOptions() { } - public System.Collections.Generic.IList AdditionalAttributes { get; } - public System.Type BaseTypeForInterfaceProxy { get; set; } - public bool HasMixins { get; } - public Castle.DynamicProxy.IProxyGenerationHook Hook { get; set; } - public Castle.DynamicProxy.MixinData MixinData { get; } - public Castle.DynamicProxy.IInterceptorSelector Selector { get; set; } - public void AddDelegateMixin(System.Delegate @delegate) { } - public void AddDelegateTypeMixin(System.Type delegateType) { } - public void AddMixinInstance(object instance) { } - public override bool Equals(object obj) { } - public override int GetHashCode() { } - public void Initialize() { } - public object[] MixinsAsArray() { } - } - [System.CLSCompliantAttribute(true)] - public class ProxyGenerator : Castle.DynamicProxy.IProxyGenerator - { - public ProxyGenerator(Castle.DynamicProxy.IProxyBuilder builder) { } - public ProxyGenerator() { } - public ProxyGenerator(bool disableSignedModule) { } - public Castle.Core.Logging.ILogger Logger { get; set; } - public Castle.DynamicProxy.IProxyBuilder ProxyBuilder { get; } - protected System.Collections.Generic.List BuildArgumentListForClassProxy(Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.IInterceptor[] interceptors) { } - protected System.Collections.Generic.List BuildArgumentListForClassProxyWithTarget(object target, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.IInterceptor[] interceptors) { } - protected void CheckNotGenericTypeDefinition(System.Type type, string argumentName) { } - protected void CheckNotGenericTypeDefinitions(System.Collections.Generic.IEnumerable types, string argumentName) { } - public TClass CreateClassProxy(params Castle.DynamicProxy.IInterceptor[] interceptors) - where TClass : class { } - public TClass CreateClassProxy(Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TClass : class { } - public object CreateClassProxy(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxy(System.Type classToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxy(System.Type classToProxy, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxy(System.Type classToProxy, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxy(System.Type classToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxy(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public virtual object CreateClassProxy(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - protected object CreateClassProxyInstance(System.Type proxyType, System.Collections.Generic.List proxyArguments, System.Type classToProxy, object[] constructorArguments) { } - protected System.Type CreateClassProxyType(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected System.Type CreateClassProxyTypeWithTarget(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options) { } - public TClass CreateClassProxyWithTarget(TClass target, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TClass : class { } - public TClass CreateClassProxyWithTarget(TClass target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TClass : class { } - public object CreateClassProxyWithTarget(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxyWithTarget(System.Type classToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxyWithTarget(System.Type classToProxy, object target, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxyWithTarget(System.Type classToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxyWithTarget(System.Type classToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateClassProxyWithTarget(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public virtual object CreateClassProxyWithTarget(System.Type classToProxy, System.Type[] additionalInterfacesToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, object[] constructorArguments, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - protected System.Type CreateInterfaceProxyTypeWithTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, System.Type targetType, Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected System.Type CreateInterfaceProxyTypeWithTargetInterface(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected System.Type CreateInterfaceProxyTypeWithoutTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options) { } - public TInterface CreateInterfaceProxyWithTarget(TInterface target, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class { } - public TInterface CreateInterfaceProxyWithTarget(TInterface target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class { } - public object CreateInterfaceProxyWithTarget(System.Type interfaceToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateInterfaceProxyWithTarget(System.Type interfaceToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateInterfaceProxyWithTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public virtual object CreateInterfaceProxyWithTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateInterfaceProxyWithTargetInterface(System.Type interfaceToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public TInterface CreateInterfaceProxyWithTargetInterface(TInterface target, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class { } - public TInterface CreateInterfaceProxyWithTargetInterface(TInterface target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class { } - public object CreateInterfaceProxyWithTargetInterface(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, object target, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateInterfaceProxyWithTargetInterface(System.Type interfaceToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public virtual object CreateInterfaceProxyWithTargetInterface(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, object target, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public TInterface CreateInterfaceProxyWithoutTarget(Castle.DynamicProxy.IInterceptor interceptor) - where TInterface : class { } - public TInterface CreateInterfaceProxyWithoutTarget(params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class { } - public TInterface CreateInterfaceProxyWithoutTarget(Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) - where TInterface : class { } - public object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, Castle.DynamicProxy.IInterceptor interceptor) { } - public object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - public virtual object CreateInterfaceProxyWithoutTarget(System.Type interfaceToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options, params Castle.DynamicProxy.IInterceptor[] interceptors) { } - protected System.Collections.Generic.List GetConstructorArguments(object target, Castle.DynamicProxy.IInterceptor[] interceptors, Castle.DynamicProxy.ProxyGenerationOptions options) { } - } - public class static ProxyUtil - { - public static TDelegate CreateDelegateToMixin(object proxy) { } - public static System.Delegate CreateDelegateToMixin(object proxy, System.Type delegateType) { } - public static object GetUnproxiedInstance(object instance) { } - public static System.Type GetUnproxiedType(object instance) { } - public static bool IsAccessible(System.Reflection.MethodBase method) { } - public static bool IsAccessible(System.Reflection.MethodBase method, out string message) { } - public static bool IsAccessible(System.Type type) { } - public static bool IsProxy(object instance) { } - public static bool IsProxyType(System.Type type) { } - } - public class StandardInterceptor : Castle.DynamicProxy.IInterceptor - { - public StandardInterceptor() { } - public void Intercept(Castle.DynamicProxy.IInvocation invocation) { } - protected virtual void PerformProceed(Castle.DynamicProxy.IInvocation invocation) { } - protected virtual void PostProceed(Castle.DynamicProxy.IInvocation invocation) { } - protected virtual void PreProceed(Castle.DynamicProxy.IInvocation invocation) { } - } -} -namespace Castle.DynamicProxy.Contributors -{ - public class ClassMembersCollector : Castle.DynamicProxy.Contributors.MembersCollector - { - public ClassMembersCollector(System.Type targetType) { } - protected override Castle.DynamicProxy.Generators.MetaMethod GetMethodToGenerate(System.Reflection.MethodInfo method, Castle.DynamicProxy.IProxyGenerationHook hook, bool isStandalone) { } - } - public class ClassProxyInstanceContributor : Castle.DynamicProxy.Contributors.ProxyInstanceContributor - { - public ClassProxyInstanceContributor(System.Type targetType, System.Collections.Generic.IList methodsToSkip, System.Type[] interfaces, string typeId) { } - public override void Generate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected override Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference GetTargetReference(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter) { } - } - public class ClassProxyTargetContributor : Castle.DynamicProxy.Contributors.CompositeTypeContributor - { - public ClassProxyTargetContributor(System.Type targetType, System.Collections.Generic.IList methodsToSkip, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected override System.Collections.Generic.IEnumerable CollectElementsToProxyInternal(Castle.DynamicProxy.IProxyGenerationHook hook) { } - protected override Castle.DynamicProxy.Generators.MethodGenerator GetMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod) { } - } - public class ClassProxyWithTargetTargetContributor : Castle.DynamicProxy.Contributors.CompositeTypeContributor - { - public ClassProxyWithTargetTargetContributor(System.Type targetType, System.Collections.Generic.IList methodsToSkip, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected override System.Collections.Generic.IEnumerable CollectElementsToProxyInternal(Castle.DynamicProxy.IProxyGenerationHook hook) { } - protected override Castle.DynamicProxy.Generators.MethodGenerator GetMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod) { } - } - public abstract class CompositeTypeContributor : Castle.DynamicProxy.Contributors.ITypeContributor - { - protected readonly System.Collections.Generic.ICollection interfaces; - protected readonly Castle.DynamicProxy.Generators.INamingScope namingScope; - protected CompositeTypeContributor(Castle.DynamicProxy.Generators.INamingScope namingScope) { } - public Castle.Core.Logging.ILogger Logger { get; set; } - public void AddInterfaceToProxy(System.Type @interface) { } - public void CollectElementsToProxy(Castle.DynamicProxy.IProxyGenerationHook hook, Castle.DynamicProxy.Generators.MetaType model) { } - protected abstract System.Collections.Generic.IEnumerable CollectElementsToProxyInternal(Castle.DynamicProxy.IProxyGenerationHook hook); - public virtual void Generate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected abstract Castle.DynamicProxy.Generators.MethodGenerator GetMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod); - } - public class DelegateProxyTargetContributor : Castle.DynamicProxy.Contributors.CompositeTypeContributor - { - public DelegateProxyTargetContributor(System.Type targetType, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected override System.Collections.Generic.IEnumerable CollectElementsToProxyInternal(Castle.DynamicProxy.IProxyGenerationHook hook) { } - protected override Castle.DynamicProxy.Generators.MethodGenerator GetMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod) { } - } - public class DelegateTypeGenerator : Castle.DynamicProxy.Generators.IGenerator - { - public DelegateTypeGenerator(Castle.DynamicProxy.Generators.MetaMethod method, System.Type targetType) { } - public Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter Generate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public class FieldReferenceComparer : System.Collections.Generic.IComparer - { - public FieldReferenceComparer() { } - public int Compare(System.Type x, System.Type y) { } - } - public class ForwardingMethodGenerator : Castle.DynamicProxy.Generators.MethodGenerator - { - public ForwardingMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod, Castle.DynamicProxy.Contributors.GetTargetReferenceDelegate getTargetReference) { } - protected override Castle.DynamicProxy.Generators.Emitters.MethodEmitter BuildProxiedMethodBody(Castle.DynamicProxy.Generators.Emitters.MethodEmitter emitter, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public delegate Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression GetTargetExpressionDelegate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, System.Reflection.MethodInfo method); - public delegate Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference GetTargetReferenceDelegate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, System.Reflection.MethodInfo method); - public interface ITypeContributor - { - void CollectElementsToProxy(Castle.DynamicProxy.IProxyGenerationHook hook, Castle.DynamicProxy.Generators.MetaType model); - void Generate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options); - } - public class InterfaceMembersCollector : Castle.DynamicProxy.Contributors.MembersCollector - { - public InterfaceMembersCollector(System.Type @interface) { } - protected override Castle.DynamicProxy.Generators.MetaMethod GetMethodToGenerate(System.Reflection.MethodInfo method, Castle.DynamicProxy.IProxyGenerationHook hook, bool isStandalone) { } - } - public class InterfaceMembersOnClassCollector : Castle.DynamicProxy.Contributors.MembersCollector - { - public InterfaceMembersOnClassCollector(System.Type type, bool onlyProxyVirtual, System.Reflection.InterfaceMapping map) { } - protected override Castle.DynamicProxy.Generators.MetaMethod GetMethodToGenerate(System.Reflection.MethodInfo method, Castle.DynamicProxy.IProxyGenerationHook hook, bool isStandalone) { } - } - public class InterfaceProxyInstanceContributor : Castle.DynamicProxy.Contributors.ProxyInstanceContributor - { - public InterfaceProxyInstanceContributor(System.Type targetType, string proxyGeneratorId, System.Type[] interfaces) { } - protected override Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference GetTargetReference(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter) { } - } - public class InterfaceProxyTargetContributor : Castle.DynamicProxy.Contributors.CompositeTypeContributor - { - public InterfaceProxyTargetContributor(System.Type proxyTargetType, bool canChangeTarget, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected override System.Collections.Generic.IEnumerable CollectElementsToProxyInternal(Castle.DynamicProxy.IProxyGenerationHook hook) { } - protected virtual Castle.DynamicProxy.Contributors.MembersCollector GetCollectorForInterface(System.Type @interface) { } - protected override Castle.DynamicProxy.Generators.MethodGenerator GetMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod) { } - } - public class InterfaceProxyWithOptionalTargetContributor : Castle.DynamicProxy.Contributors.InterfaceProxyWithoutTargetContributor - { - public InterfaceProxyWithOptionalTargetContributor(Castle.DynamicProxy.Generators.INamingScope namingScope, Castle.DynamicProxy.Contributors.GetTargetExpressionDelegate getTarget, Castle.DynamicProxy.Contributors.GetTargetReferenceDelegate getTargetReference) { } - protected override Castle.DynamicProxy.Generators.MethodGenerator GetMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod) { } - } - public class InterfaceProxyWithTargetInterfaceTargetContributor : Castle.DynamicProxy.Contributors.InterfaceProxyTargetContributor - { - public InterfaceProxyWithTargetInterfaceTargetContributor(System.Type proxyTargetType, bool allowChangeTarget, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected override Castle.DynamicProxy.Contributors.MembersCollector GetCollectorForInterface(System.Type @interface) { } - } - public class InterfaceProxyWithoutTargetContributor : Castle.DynamicProxy.Contributors.CompositeTypeContributor - { - protected bool canChangeTarget; - public InterfaceProxyWithoutTargetContributor(Castle.DynamicProxy.Generators.INamingScope namingScope, Castle.DynamicProxy.Contributors.GetTargetExpressionDelegate getTarget) { } - protected override System.Collections.Generic.IEnumerable CollectElementsToProxyInternal(Castle.DynamicProxy.IProxyGenerationHook hook) { } - protected override Castle.DynamicProxy.Generators.MethodGenerator GetMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod) { } - } - public class InvocationWithDelegateContributor : Castle.DynamicProxy.Generators.IInvocationCreationContributor - { - public InvocationWithDelegateContributor(System.Type delegateType, System.Type targetType, Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - public Castle.DynamicProxy.Generators.Emitters.ConstructorEmitter CreateConstructor(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] baseCtorArguments, Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter invocation) { } - public System.Reflection.MethodInfo GetCallbackMethod() { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.MethodInvocationExpression GetCallbackMethodInvocation(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter invocation, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference targetField, Castle.DynamicProxy.Generators.Emitters.MethodEmitter invokeMethodOnTarget) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] GetConstructorInvocationArguments(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] arguments, Castle.DynamicProxy.Generators.Emitters.ClassEmitter proxy) { } - } - public class InvocationWithGenericDelegateContributor : Castle.DynamicProxy.Generators.IInvocationCreationContributor - { - public InvocationWithGenericDelegateContributor(System.Type delegateType, Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference targetReference) { } - public Castle.DynamicProxy.Generators.Emitters.ConstructorEmitter CreateConstructor(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] baseCtorArguments, Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter invocation) { } - public System.Reflection.MethodInfo GetCallbackMethod() { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.MethodInvocationExpression GetCallbackMethodInvocation(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter invocation, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference targetField, Castle.DynamicProxy.Generators.Emitters.MethodEmitter invokeMethodOnTarget) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] GetConstructorInvocationArguments(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] arguments, Castle.DynamicProxy.Generators.Emitters.ClassEmitter proxy) { } - } - public abstract class MembersCollector - { - protected readonly System.Type type; - protected MembersCollector(System.Type type) { } - public System.Collections.Generic.IEnumerable Events { get; } - public Castle.Core.Logging.ILogger Logger { get; set; } - public System.Collections.Generic.IEnumerable Methods { get; } - public System.Collections.Generic.IEnumerable Properties { get; } - protected bool AcceptMethod(System.Reflection.MethodInfo method, bool onlyVirtuals, Castle.DynamicProxy.IProxyGenerationHook hook) { } - public virtual void CollectMembersToProxy(Castle.DynamicProxy.IProxyGenerationHook hook) { } - protected abstract Castle.DynamicProxy.Generators.MetaMethod GetMethodToGenerate(System.Reflection.MethodInfo method, Castle.DynamicProxy.IProxyGenerationHook hook, bool isStandalone); - } - public class MinimialisticMethodGenerator : Castle.DynamicProxy.Generators.MethodGenerator - { - public MinimialisticMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod) { } - protected override Castle.DynamicProxy.Generators.Emitters.MethodEmitter BuildProxiedMethodBody(Castle.DynamicProxy.Generators.Emitters.MethodEmitter emitter, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public class MixinContributor : Castle.DynamicProxy.Contributors.CompositeTypeContributor - { - public MixinContributor(Castle.DynamicProxy.Generators.INamingScope namingScope, bool canChangeTarget) { } - public System.Collections.Generic.IEnumerable Fields { get; } - public void AddEmptyInterface(System.Type @interface) { } - protected override System.Collections.Generic.IEnumerable CollectElementsToProxyInternal(Castle.DynamicProxy.IProxyGenerationHook hook) { } - public override void Generate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected override Castle.DynamicProxy.Generators.MethodGenerator GetMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod) { } - } - public class OptionallyForwardingMethodGenerator : Castle.DynamicProxy.Generators.MethodGenerator - { - public OptionallyForwardingMethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod, Castle.DynamicProxy.Contributors.GetTargetReferenceDelegate getTargetReference) { } - protected override Castle.DynamicProxy.Generators.Emitters.MethodEmitter BuildProxiedMethodBody(Castle.DynamicProxy.Generators.Emitters.MethodEmitter emitter, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public delegate Castle.DynamicProxy.Generators.Emitters.MethodEmitter OverrideMethodDelegate(string name, System.Reflection.MethodAttributes attributes, System.Reflection.MethodInfo methodToOverride); - public abstract class ProxyInstanceContributor : Castle.DynamicProxy.Contributors.ITypeContributor - { - protected readonly System.Type targetType; - protected ProxyInstanceContributor(System.Type targetType, System.Type[] interfaces, string proxyTypeId) { } - public void CollectElementsToProxy(Castle.DynamicProxy.IProxyGenerationHook hook, Castle.DynamicProxy.Generators.MetaType model) { } - public virtual void Generate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected abstract Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference GetTargetReference(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter); - protected void ImplementProxyTargetAccessor(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter, Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference interceptorsField) { } - } - public class WrappedClassMembersCollector : Castle.DynamicProxy.Contributors.ClassMembersCollector - { - public WrappedClassMembersCollector(System.Type type) { } - public override void CollectMembersToProxy(Castle.DynamicProxy.IProxyGenerationHook hook) { } - protected override Castle.DynamicProxy.Generators.MetaMethod GetMethodToGenerate(System.Reflection.MethodInfo method, Castle.DynamicProxy.IProxyGenerationHook hook, bool isStandalone) { } - protected bool IsGeneratedByTheCompiler(System.Reflection.FieldInfo field) { } - protected virtual bool IsOKToBeOnProxy(System.Reflection.FieldInfo field) { } - } -} -namespace Castle.DynamicProxy.Generators -{ - public class static AttributesToAvoidReplicating - { - public static void Add(System.Type attribute) { } - public static void Add() { } - public static bool Contains(System.Type attribute) { } - } - public abstract class BaseProxyGenerator - { - protected readonly System.Type targetType; - protected BaseProxyGenerator(Castle.DynamicProxy.ModuleScope scope, System.Type targetType) { } - public Castle.Core.Logging.ILogger Logger { get; set; } - protected Castle.DynamicProxy.ProxyGenerationOptions ProxyGenerationOptions { get; set; } - protected Castle.DynamicProxy.ModuleScope Scope { get; } - protected void AddMapping(System.Type @interface, Castle.DynamicProxy.Contributors.ITypeContributor implementer, System.Collections.Generic.IDictionary mapping) { } - protected void AddMappingNoCheck(System.Type @interface, Castle.DynamicProxy.Contributors.ITypeContributor implementer, System.Collections.Generic.IDictionary mapping) { } - [System.ObsoleteAttribute("Exposes a component that is intended for internal use only.")] - protected void AddToCache(Castle.DynamicProxy.Generators.CacheKey key, System.Type type) { } - protected virtual Castle.DynamicProxy.Generators.Emitters.ClassEmitter BuildClassEmitter(string typeName, System.Type parentType, System.Collections.Generic.IEnumerable interfaces) { } - protected void CheckNotGenericTypeDefinition(System.Type type, string argumentName) { } - protected void CheckNotGenericTypeDefinitions(System.Collections.Generic.IEnumerable types, string argumentName) { } - protected void CompleteInitCacheMethod(Castle.DynamicProxy.Generators.Emitters.CodeBuilders.ConstructorCodeBuilder constCodeBuilder) { } - protected virtual void CreateFields(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter) { } - protected void CreateInterceptorsField(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter) { } - protected Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference CreateOptionsField(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter) { } - protected void CreateSelectorField(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter) { } - protected virtual void CreateTypeAttributes(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter) { } - protected void EnsureOptionsOverrideEqualsAndGetHashCode(Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected void GenerateConstructor(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter, System.Reflection.ConstructorInfo baseConstructor, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference[] fields) { } - protected void GenerateConstructors(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter, System.Type baseType, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference[] fields) { } - protected void GenerateParameterlessConstructor(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter, System.Type baseClass, Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference interceptorField) { } - protected Castle.DynamicProxy.Generators.Emitters.ConstructorEmitter GenerateStaticConstructor(Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter) { } - [System.ObsoleteAttribute("Exposes a component that is intended for internal use only.")] - protected System.Type GetFromCache(Castle.DynamicProxy.Generators.CacheKey key) { } - protected void HandleExplicitlyPassedProxyTargetAccessor(System.Collections.Generic.ICollection targetInterfaces, System.Collections.Generic.ICollection additionalInterfaces) { } - protected void InitializeStaticFields(System.Type builtType) { } - [System.ObsoleteAttribute("Exposes a component that is intended for internal use only.")] - protected System.Type ObtainProxyType(Castle.DynamicProxy.Generators.CacheKey cacheKey, System.Func factory) { } - } - [System.ObsoleteAttribute("Intended for internal use only.")] - public class CacheKey - { - public CacheKey(System.Reflection.MemberInfo target, System.Type type, System.Type[] interfaces, Castle.DynamicProxy.ProxyGenerationOptions options) { } - public CacheKey(System.Type target, System.Type[] interfaces, Castle.DynamicProxy.ProxyGenerationOptions options) { } - public override bool Equals(object obj) { } - public override int GetHashCode() { } - } - public class ClassProxyGenerator : Castle.DynamicProxy.Generators.BaseProxyGenerator - { - public ClassProxyGenerator(Castle.DynamicProxy.ModuleScope scope, System.Type targetType) { } - public System.Type GenerateCode(System.Type[] interfaces, Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected virtual System.Type GenerateType(string name, System.Type[] interfaces, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected virtual System.Collections.Generic.IEnumerable GetTypeImplementerMapping(System.Type[] interfaces, out System.Collections.Generic.IEnumerable contributors, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public class ClassProxyWithTargetGenerator : Castle.DynamicProxy.Generators.BaseProxyGenerator - { - public ClassProxyWithTargetGenerator(Castle.DynamicProxy.ModuleScope scope, System.Type classToProxy, System.Type[] additionalInterfacesToProxy, Castle.DynamicProxy.ProxyGenerationOptions options) { } - public System.Type GetGeneratedType() { } - protected virtual System.Collections.Generic.IEnumerable GetTypeImplementerMapping(out System.Collections.Generic.IEnumerable contributors, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public class CompositionInvocationTypeGenerator : Castle.DynamicProxy.Generators.InvocationTypeGenerator - { - public static readonly System.Type BaseType; - public CompositionInvocationTypeGenerator(System.Type target, Castle.DynamicProxy.Generators.MetaMethod method, System.Reflection.MethodInfo callback, bool canChangeTarget, Castle.DynamicProxy.Generators.IInvocationCreationContributor contributor) { } - protected override Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] GetBaseCtorArguments(System.Type targetFieldType, Castle.DynamicProxy.ProxyGenerationOptions proxyGenerationOptions, out System.Reflection.ConstructorInfo baseConstructor) { } - protected override System.Type GetBaseType() { } - protected override Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference GetTargetReference() { } - protected override void ImplementInvokeMethodOnTarget(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter invocation, System.Reflection.ParameterInfo[] parameters, Castle.DynamicProxy.Generators.Emitters.MethodEmitter invokeMethodOnTarget, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference targetField) { } - } - public class DelegateMembersCollector : Castle.DynamicProxy.Contributors.MembersCollector - { - public DelegateMembersCollector(System.Type type) { } - protected override Castle.DynamicProxy.Generators.MetaMethod GetMethodToGenerate(System.Reflection.MethodInfo method, Castle.DynamicProxy.IProxyGenerationHook hook, bool isStandalone) { } - } - public class DelegateProxyGenerationHook : Castle.DynamicProxy.IProxyGenerationHook - { - public DelegateProxyGenerationHook() { } - public override bool Equals(object obj) { } - public override int GetHashCode() { } - public void MethodsInspected() { } - public void NonProxyableMemberNotification(System.Type type, System.Reflection.MemberInfo memberInfo) { } - public bool ShouldInterceptMethod(System.Type type, System.Reflection.MethodInfo methodInfo) { } - } - public class DelegateProxyGenerator : Castle.DynamicProxy.Generators.BaseProxyGenerator - { - public DelegateProxyGenerator(Castle.DynamicProxy.ModuleScope scope, System.Type delegateType) { } - public System.Type GetProxyType() { } - protected virtual System.Collections.Generic.IEnumerable GetTypeImplementerMapping(out System.Collections.Generic.IEnumerable contributors, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public class GeneratorException : System.Exception - { - public GeneratorException(string message) { } - public GeneratorException(string message, System.Exception innerException) { } - } - public class static GeneratorUtil - { - public static void CopyOutAndRefParameters(Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference[] dereferencedArguments, Castle.DynamicProxy.Generators.Emitters.SimpleAST.LocalReference invocation, System.Reflection.MethodInfo method, Castle.DynamicProxy.Generators.Emitters.MethodEmitter emitter) { } - } - public interface IGenerator - { - T Generate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Generators.INamingScope namingScope); - } - public interface IInvocationCreationContributor - { - Castle.DynamicProxy.Generators.Emitters.ConstructorEmitter CreateConstructor(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] baseCtorArguments, Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter invocation); - System.Reflection.MethodInfo GetCallbackMethod(); - Castle.DynamicProxy.Generators.Emitters.SimpleAST.MethodInvocationExpression GetCallbackMethodInvocation(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter invocation, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference targetField, Castle.DynamicProxy.Generators.Emitters.MethodEmitter invokeMethodOnTarget); - Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] GetConstructorInvocationArguments(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] arguments, Castle.DynamicProxy.Generators.Emitters.ClassEmitter proxy); - } - public interface INamingScope - { - Castle.DynamicProxy.Generators.INamingScope ParentScope { get; } - string GetUniqueName(string suggestedName); - Castle.DynamicProxy.Generators.INamingScope SafeSubScope(); - } - public class InheritanceInvocationTypeGenerator : Castle.DynamicProxy.Generators.InvocationTypeGenerator - { - public static readonly System.Type BaseType; - public InheritanceInvocationTypeGenerator(System.Type targetType, Castle.DynamicProxy.Generators.MetaMethod method, System.Reflection.MethodInfo callback, Castle.DynamicProxy.Generators.IInvocationCreationContributor contributor) { } - protected override Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] GetBaseCtorArguments(System.Type targetFieldType, Castle.DynamicProxy.ProxyGenerationOptions proxyGenerationOptions, out System.Reflection.ConstructorInfo baseConstructor) { } - protected override System.Type GetBaseType() { } - protected override Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference GetTargetReference() { } - } - public class InterfaceProxyWithTargetGenerator : Castle.DynamicProxy.Generators.BaseProxyGenerator - { - protected Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference targetField; - public InterfaceProxyWithTargetGenerator(Castle.DynamicProxy.ModuleScope scope, System.Type @interface) { } - protected virtual bool AllowChangeTarget { get; } - protected virtual string GeneratorType { get; } - protected virtual Castle.DynamicProxy.Contributors.ITypeContributor AddMappingForTargetType(System.Collections.Generic.IDictionary typeImplementerMapping, System.Type proxyTargetType, System.Collections.Generic.ICollection targetInterfaces, System.Collections.Generic.ICollection additionalInterfaces, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - public System.Type GenerateCode(System.Type proxyTargetType, System.Type[] interfaces, Castle.DynamicProxy.ProxyGenerationOptions options) { } - protected virtual System.Type GenerateType(string typeName, System.Type proxyTargetType, System.Type[] interfaces, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected virtual Castle.DynamicProxy.Contributors.InterfaceProxyWithoutTargetContributor GetContributorForAdditionalInterfaces(Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected virtual System.Collections.Generic.IEnumerable GetTypeImplementerMapping(System.Type[] interfaces, System.Type proxyTargetType, out System.Collections.Generic.IEnumerable contributors, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected virtual System.Type Init(string typeName, out Castle.DynamicProxy.Generators.Emitters.ClassEmitter emitter, System.Type proxyTargetType, out Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference interceptorsField, System.Collections.Generic.IEnumerable interfaces) { } - } - public class InterfaceProxyWithTargetInterfaceGenerator : Castle.DynamicProxy.Generators.InterfaceProxyWithTargetGenerator - { - public InterfaceProxyWithTargetInterfaceGenerator(Castle.DynamicProxy.ModuleScope scope, System.Type @interface) { } - protected override bool AllowChangeTarget { get; } - protected override string GeneratorType { get; } - protected override Castle.DynamicProxy.Contributors.ITypeContributor AddMappingForTargetType(System.Collections.Generic.IDictionary typeImplementerMapping, System.Type proxyTargetType, System.Collections.Generic.ICollection targetInterfaces, System.Collections.Generic.ICollection additionalInterfaces, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected override Castle.DynamicProxy.Contributors.InterfaceProxyWithoutTargetContributor GetContributorForAdditionalInterfaces(Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public class InterfaceProxyWithoutTargetGenerator : Castle.DynamicProxy.Generators.InterfaceProxyWithTargetGenerator - { - public InterfaceProxyWithoutTargetGenerator(Castle.DynamicProxy.ModuleScope scope, System.Type @interface) { } - protected override string GeneratorType { get; } - protected override Castle.DynamicProxy.Contributors.ITypeContributor AddMappingForTargetType(System.Collections.Generic.IDictionary interfaceTypeImplementerMapping, System.Type proxyTargetType, System.Collections.Generic.ICollection targetInterfaces, System.Collections.Generic.ICollection additionalInterfaces, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected override System.Type GenerateType(string typeName, System.Type proxyTargetType, System.Type[] interfaces, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public abstract class InvocationTypeGenerator : Castle.DynamicProxy.Generators.IGenerator - { - protected readonly Castle.DynamicProxy.Generators.MetaMethod method; - protected readonly System.Type targetType; - protected InvocationTypeGenerator(System.Type targetType, Castle.DynamicProxy.Generators.MetaMethod method, System.Reflection.MethodInfo callback, bool canChangeTarget, Castle.DynamicProxy.Generators.IInvocationCreationContributor contributor) { } - public Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter Generate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected abstract Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] GetBaseCtorArguments(System.Type targetFieldType, Castle.DynamicProxy.ProxyGenerationOptions proxyGenerationOptions, out System.Reflection.ConstructorInfo baseConstructor); - protected abstract System.Type GetBaseType(); - protected virtual Castle.DynamicProxy.Generators.Emitters.SimpleAST.MethodInvocationExpression GetCallbackMethodInvocation(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter invocation, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args, System.Reflection.MethodInfo callbackMethod, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference targetField, Castle.DynamicProxy.Generators.Emitters.MethodEmitter invokeMethodOnTarget) { } - protected abstract Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference GetTargetReference(); - protected virtual void ImplementInvokeMethodOnTarget(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter invocation, System.Reflection.ParameterInfo[] parameters, Castle.DynamicProxy.Generators.Emitters.MethodEmitter invokeMethodOnTarget, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference targetField) { } - } - public class MetaEvent : Castle.DynamicProxy.Generators.MetaTypeElement, System.IEquatable - { - public MetaEvent(string name, System.Type declaringType, System.Type eventDelegateType, Castle.DynamicProxy.Generators.MetaMethod adder, Castle.DynamicProxy.Generators.MetaMethod remover, System.Reflection.EventAttributes attributes) { } - public Castle.DynamicProxy.Generators.MetaMethod Adder { get; } - public System.Reflection.EventAttributes Attributes { get; } - public Castle.DynamicProxy.Generators.Emitters.EventEmitter Emitter { get; } - public Castle.DynamicProxy.Generators.MetaMethod Remover { get; } - public void BuildEventEmitter(Castle.DynamicProxy.Generators.Emitters.ClassEmitter classEmitter) { } - public override bool Equals(object obj) { } - public bool Equals(Castle.DynamicProxy.Generators.MetaEvent other) { } - public override int GetHashCode() { } - } - [System.Diagnostics.DebuggerDisplayAttribute("{Method}")] - public class MetaMethod : Castle.DynamicProxy.Generators.MetaTypeElement, System.IEquatable - { - public MetaMethod(System.Reflection.MethodInfo method, System.Reflection.MethodInfo methodOnTarget, bool standalone, bool proxyable, bool hasTarget) { } - public System.Reflection.MethodAttributes Attributes { get; } - public bool HasTarget { get; } - public System.Reflection.MethodInfo Method { get; } - public System.Reflection.MethodInfo MethodOnTarget { get; } - public string Name { get; } - public bool Proxyable { get; } - public bool Standalone { get; } - public bool Equals(Castle.DynamicProxy.Generators.MetaMethod other) { } - } - public class MetaProperty : Castle.DynamicProxy.Generators.MetaTypeElement, System.IEquatable - { - public MetaProperty(string name, System.Type propertyType, System.Type declaringType, Castle.DynamicProxy.Generators.MetaMethod getter, Castle.DynamicProxy.Generators.MetaMethod setter, System.Collections.Generic.IEnumerable customAttributes, System.Type[] arguments) { } - public System.Type[] Arguments { get; } - public bool CanRead { get; } - public bool CanWrite { get; } - public Castle.DynamicProxy.Generators.Emitters.PropertyEmitter Emitter { get; } - public System.Reflection.MethodInfo GetMethod { get; } - public Castle.DynamicProxy.Generators.MetaMethod Getter { get; } - public System.Reflection.MethodInfo SetMethod { get; } - public Castle.DynamicProxy.Generators.MetaMethod Setter { get; } - public void BuildPropertyEmitter(Castle.DynamicProxy.Generators.Emitters.ClassEmitter classEmitter) { } - public override bool Equals(object obj) { } - public bool Equals(Castle.DynamicProxy.Generators.MetaProperty other) { } - public override int GetHashCode() { } - } - public class MetaType - { - public MetaType() { } - public System.Collections.Generic.IEnumerable Events { get; } - public System.Collections.Generic.IEnumerable Methods { get; } - public System.Collections.Generic.IEnumerable Properties { get; } - public void AddEvent(Castle.DynamicProxy.Generators.MetaEvent @event) { } - public void AddMethod(Castle.DynamicProxy.Generators.MetaMethod method) { } - public void AddProperty(Castle.DynamicProxy.Generators.MetaProperty property) { } - } - public abstract class MetaTypeElement - { - protected readonly System.Type sourceType; - protected MetaTypeElement(System.Type sourceType) { } - } - public class MethodFinder - { - public MethodFinder() { } - public static System.Reflection.MethodInfo[] GetAllInstanceMethods(System.Type type, System.Reflection.BindingFlags flags) { } - } - public abstract class MethodGenerator : Castle.DynamicProxy.Generators.IGenerator - { - protected MethodGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Contributors.OverrideMethodDelegate overrideMethod) { } - protected System.Reflection.MethodInfo MethodOnTarget { get; } - protected System.Reflection.MethodInfo MethodToOverride { get; } - protected abstract Castle.DynamicProxy.Generators.Emitters.MethodEmitter BuildProxiedMethodBody(Castle.DynamicProxy.Generators.Emitters.MethodEmitter emitter, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Generators.INamingScope namingScope); - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter Generate(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public class MethodSignatureComparer : System.Collections.Generic.IEqualityComparer - { - public static readonly Castle.DynamicProxy.Generators.MethodSignatureComparer Instance; - public MethodSignatureComparer() { } - public bool EqualGenericParameters(System.Reflection.MethodInfo x, System.Reflection.MethodInfo y) { } - public bool EqualParameters(System.Reflection.MethodInfo x, System.Reflection.MethodInfo y) { } - public bool EqualSignatureTypes(System.Type x, System.Type y) { } - public bool Equals(System.Reflection.MethodInfo x, System.Reflection.MethodInfo y) { } - public int GetHashCode(System.Reflection.MethodInfo obj) { } - } - public class MethodWithInvocationGenerator : Castle.DynamicProxy.Generators.MethodGenerator - { - public MethodWithInvocationGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference interceptors, System.Type invocation, Castle.DynamicProxy.Contributors.GetTargetExpressionDelegate getTargetExpression, Castle.DynamicProxy.Contributors.OverrideMethodDelegate createMethod, Castle.DynamicProxy.Generators.IInvocationCreationContributor contributor) { } - public MethodWithInvocationGenerator(Castle.DynamicProxy.Generators.MetaMethod method, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference interceptors, System.Type invocation, Castle.DynamicProxy.Contributors.GetTargetExpressionDelegate getTargetExpression, Castle.DynamicProxy.Contributors.GetTargetExpressionDelegate getTargetTypeExpression, Castle.DynamicProxy.Contributors.OverrideMethodDelegate createMethod, Castle.DynamicProxy.Generators.IInvocationCreationContributor contributor) { } - protected Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference BuildMethodInterceptorsField(Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, System.Reflection.MethodInfo method, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - protected override Castle.DynamicProxy.Generators.Emitters.MethodEmitter BuildProxiedMethodBody(Castle.DynamicProxy.Generators.Emitters.MethodEmitter emitter, Castle.DynamicProxy.Generators.Emitters.ClassEmitter @class, Castle.DynamicProxy.ProxyGenerationOptions options, Castle.DynamicProxy.Generators.INamingScope namingScope) { } - } - public class NamingScope : Castle.DynamicProxy.Generators.INamingScope - { - public NamingScope() { } - public Castle.DynamicProxy.Generators.INamingScope ParentScope { get; } - public string GetUniqueName(string suggestedName) { } - public Castle.DynamicProxy.Generators.INamingScope SafeSubScope() { } - } - public class TypeElementCollection : System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - where TElement : Castle.DynamicProxy.Generators.MetaTypeElement, System.IEquatable - { - public TypeElementCollection() { } - public int Count { get; } - public void Add(TElement item) { } - public bool Contains(TElement item) { } - public System.Collections.Generic.IEnumerator GetEnumerator() { } - } -} -namespace Castle.DynamicProxy.Generators.Emitters -{ - public abstract class AbstractTypeEmitter - { - protected AbstractTypeEmitter(System.Reflection.Emit.TypeBuilder typeBuilder) { } - public System.Type BaseType { get; } - public Castle.DynamicProxy.Generators.Emitters.TypeConstructorEmitter ClassConstructor { get; } - public Castle.DynamicProxy.Generators.Emitters.ConstructorCollection Constructors { get; } - public System.Reflection.Emit.GenericTypeParameterBuilder[] GenericTypeParams { get; } - public Castle.DynamicProxy.Generators.Emitters.NestedClassCollection Nested { get; } - public System.Reflection.Emit.TypeBuilder TypeBuilder { get; } - public void AddCustomAttributes(Castle.DynamicProxy.ProxyGenerationOptions proxyGenerationOptions) { } - public virtual System.Type BuildType() { } - public void CopyGenericParametersFromMethod(System.Reflection.MethodInfo methodToCopyGenericsFrom) { } - public Castle.DynamicProxy.Generators.Emitters.ConstructorEmitter CreateConstructor(params Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] arguments) { } - public void CreateDefaultConstructor() { } - public Castle.DynamicProxy.Generators.Emitters.EventEmitter CreateEvent(string name, System.Reflection.EventAttributes atts, System.Type type) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference CreateField(string name, System.Type fieldType) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference CreateField(string name, System.Type fieldType, bool serializable) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference CreateField(string name, System.Type fieldType, System.Reflection.FieldAttributes atts) { } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateMethod(string name, System.Reflection.MethodAttributes attrs, System.Type returnType, params System.Type[] argumentTypes) { } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateMethod(string name, System.Type returnType, params System.Type[] parameterTypes) { } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateMethod(string name, System.Reflection.MethodInfo methodToUseAsATemplate) { } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateMethod(string name, System.Reflection.MethodAttributes attributes, System.Reflection.MethodInfo methodToUseAsATemplate) { } - public Castle.DynamicProxy.Generators.Emitters.PropertyEmitter CreateProperty(string name, System.Reflection.PropertyAttributes attributes, System.Type propertyType, System.Type[] arguments) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference CreateStaticField(string name, System.Type fieldType) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference CreateStaticField(string name, System.Type fieldType, System.Reflection.FieldAttributes atts) { } - protected System.Type CreateType(System.Reflection.Emit.TypeBuilder type) { } - public Castle.DynamicProxy.Generators.Emitters.ConstructorEmitter CreateTypeConstructor() { } - public void DefineCustomAttribute(System.Reflection.Emit.CustomAttributeBuilder attribute) { } - public void DefineCustomAttribute(object[] constructorArguments) - where TAttribute : System.Attribute { } - public void DefineCustomAttribute() - where TAttribute : System.Attribute, new () { } - public void DefineCustomAttributeFor(Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference field) - where TAttribute : System.Attribute, new () { } - protected virtual void EnsureBuildersAreInAValidState() { } - public System.Collections.Generic.IEnumerable GetAllFields() { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference GetField(string name) { } - public System.Type GetGenericArgument(string genericArgumentName) { } - public System.Type[] GetGenericArgumentsFor(System.Type genericType) { } - public System.Type[] GetGenericArgumentsFor(System.Reflection.MethodInfo genericMethod) { } - public void SetGenericTypeParameters(System.Reflection.Emit.GenericTypeParameterBuilder[] genericTypeParameterBuilders) { } - } - public abstract class ArgumentsUtil - { - protected ArgumentsUtil() { } - public static Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] ConvertArgumentReferenceToExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] args) { } - public static Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] ConvertToArgumentReference(System.Type[] args) { } - public static Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] ConvertToArgumentReference(System.Reflection.ParameterInfo[] args) { } - public static Castle.DynamicProxy.Generators.Emitters.SimpleAST.ReferenceExpression[] ConvertToArgumentReferenceExpression(System.Reflection.ParameterInfo[] args) { } - public static void EmitLoadOwnerAndReference(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference reference, System.Reflection.Emit.ILGenerator il) { } - public static System.Type[] GetTypes(System.Reflection.ParameterInfo[] parameters) { } - public static System.Type[] InitializeAndConvert(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] args) { } - public static void InitializeArgumentsByPosition(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] args, bool isStatic) { } - [System.ObsoleteAttribute()] - public static bool IsAnyByRef(System.Reflection.ParameterInfo[] parameters) { } - } - public class ClassEmitter : Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter - { - public ClassEmitter(Castle.DynamicProxy.ModuleScope modulescope, string name, System.Type baseType, System.Collections.Generic.IEnumerable interfaces) { } - public ClassEmitter(Castle.DynamicProxy.ModuleScope modulescope, string name, System.Type baseType, System.Collections.Generic.IEnumerable interfaces, System.Reflection.TypeAttributes flags) { } - public ClassEmitter(Castle.DynamicProxy.ModuleScope modulescope, string name, System.Type baseType, System.Collections.Generic.IEnumerable interfaces, System.Reflection.TypeAttributes flags, bool forceUnsigned) { } - public ClassEmitter(System.Reflection.Emit.TypeBuilder typeBuilder) { } - public Castle.DynamicProxy.ModuleScope ModuleScope { get; } - protected virtual System.Collections.Generic.IEnumerable InitializeGenericArgumentsFromBases(ref System.Type baseType, System.Collections.Generic.IEnumerable interfaces) { } - } - public class ConstructorCollection : System.Collections.ObjectModel.Collection - { - public ConstructorCollection() { } - } - public class ConstructorEmitter : Castle.DynamicProxy.Generators.Emitters.IMemberEmitter - { - protected ConstructorEmitter(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter maintype, System.Reflection.Emit.ConstructorBuilder builder) { } - public virtual Castle.DynamicProxy.Generators.Emitters.CodeBuilders.ConstructorCodeBuilder CodeBuilder { get; } - public System.Reflection.Emit.ConstructorBuilder ConstructorBuilder { get; } - public System.Reflection.MemberInfo Member { get; } - public System.Type ReturnType { get; } - public virtual void EnsureValidCodeBlock() { } - public virtual void Generate() { } - } - public class EventCollection : System.Collections.ObjectModel.Collection - { - public EventCollection() { } - } - public class EventEmitter : Castle.DynamicProxy.Generators.Emitters.IMemberEmitter - { - public EventEmitter(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter typeEmitter, string name, System.Reflection.EventAttributes attributes, System.Type type) { } - public System.Reflection.MemberInfo Member { get; } - public System.Type ReturnType { get; } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateAddMethod(string addMethodName, System.Reflection.MethodAttributes attributes, System.Reflection.MethodInfo methodToOverride) { } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateRemoveMethod(string removeMethodName, System.Reflection.MethodAttributes attributes, System.Reflection.MethodInfo methodToOverride) { } - public void EnsureValidCodeBlock() { } - public void Generate() { } - } - public interface IMemberEmitter - { - System.Reflection.MemberInfo Member { get; } - System.Type ReturnType { get; } - void EnsureValidCodeBlock(); - void Generate(); - } - public sealed class LdcOpCodesDictionary : System.Collections.Generic.Dictionary - { - public static System.Reflection.Emit.OpCode EmptyOpCode { get; } - public static Castle.DynamicProxy.Generators.Emitters.LdcOpCodesDictionary Instance { get; } - public System.Reflection.Emit.OpCode this[System.Type type] { get; } - } - public sealed class LdindOpCodesDictionary : System.Collections.Generic.Dictionary - { - public static System.Reflection.Emit.OpCode EmptyOpCode { get; } - public static Castle.DynamicProxy.Generators.Emitters.LdindOpCodesDictionary Instance { get; } - public System.Reflection.Emit.OpCode this[System.Type type] { get; } - } - public class MethodCollection : System.Collections.ObjectModel.Collection - { - public MethodCollection() { } - } - [System.Diagnostics.DebuggerDisplayAttribute("{builder.Name}")] - public class MethodEmitter : Castle.DynamicProxy.Generators.Emitters.IMemberEmitter - { - protected MethodEmitter(System.Reflection.Emit.MethodBuilder builder) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] Arguments { get; } - public virtual Castle.DynamicProxy.Generators.Emitters.CodeBuilders.MethodCodeBuilder CodeBuilder { get; } - public System.Reflection.Emit.GenericTypeParameterBuilder[] GenericTypeParams { get; } - public System.Reflection.MemberInfo Member { get; } - public System.Reflection.Emit.MethodBuilder MethodBuilder { get; } - public System.Type ReturnType { get; } - public void DefineCustomAttribute(System.Reflection.Emit.CustomAttributeBuilder attribute) { } - public virtual void EnsureValidCodeBlock() { } - public virtual void Generate() { } - public void SetParameters(System.Type[] paramTypes) { } - } - public class NestedClassCollection : System.Collections.ObjectModel.Collection - { - public NestedClassCollection() { } - } - public class NestedClassEmitter : Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter - { - public NestedClassEmitter(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter maintype, string name, System.Type baseType, System.Type[] interfaces) { } - public NestedClassEmitter(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter maintype, string name, System.Reflection.TypeAttributes attributes, System.Type baseType, System.Type[] interfaces) { } - public NestedClassEmitter(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter maintype, System.Reflection.Emit.TypeBuilder typeBuilder) { } - } - public class PropertiesCollection : System.Collections.ObjectModel.Collection - { - public PropertiesCollection() { } - } - public class PropertyEmitter : Castle.DynamicProxy.Generators.Emitters.IMemberEmitter - { - public PropertyEmitter(Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter parentTypeEmitter, string name, System.Reflection.PropertyAttributes attributes, System.Type propertyType, System.Type[] arguments) { } - public System.Reflection.MemberInfo Member { get; } - public System.Type ReturnType { get; } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateGetMethod(string name, System.Reflection.MethodAttributes attrs, System.Reflection.MethodInfo methodToOverride, params System.Type[] parameters) { } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateGetMethod(string name, System.Reflection.MethodAttributes attributes, System.Reflection.MethodInfo methodToOverride) { } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateSetMethod(string name, System.Reflection.MethodAttributes attrs, System.Reflection.MethodInfo methodToOverride, params System.Type[] parameters) { } - public Castle.DynamicProxy.Generators.Emitters.MethodEmitter CreateSetMethod(string name, System.Reflection.MethodAttributes attributes, System.Reflection.MethodInfo methodToOverride) { } - public void DefineCustomAttribute(System.Reflection.Emit.CustomAttributeBuilder attribute) { } - public void EnsureValidCodeBlock() { } - public void Generate() { } - } - public sealed class StindOpCodesDictionary : System.Collections.Generic.Dictionary - { - public static System.Reflection.Emit.OpCode EmptyOpCode { get; } - public static Castle.DynamicProxy.Generators.Emitters.StindOpCodesDictionary Instance { get; } - public System.Reflection.Emit.OpCode this[System.Type type] { get; } - } - public class static StrongNameUtil - { - public static bool CanStrongNameAssembly { get; set; } - public static bool IsAnyTypeFromUnsignedAssembly(System.Collections.Generic.IEnumerable types) { } - public static bool IsAnyTypeFromUnsignedAssembly(System.Type baseType, System.Collections.Generic.IEnumerable interfaces) { } - public static bool IsAssemblySigned(this System.Reflection.Assembly assembly) { } - } - public class TypeConstructorEmitter : Castle.DynamicProxy.Generators.Emitters.ConstructorEmitter - { - public override void EnsureValidCodeBlock() { } - } -} -namespace Castle.DynamicProxy.Generators.Emitters.CodeBuilders -{ - public abstract class AbstractCodeBuilder - { - protected AbstractCodeBuilder(System.Reflection.Emit.ILGenerator generator) { } - public System.Reflection.Emit.ILGenerator Generator { get; } - public Castle.DynamicProxy.Generators.Emitters.CodeBuilders.AbstractCodeBuilder AddExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression expression) { } - public Castle.DynamicProxy.Generators.Emitters.CodeBuilders.AbstractCodeBuilder AddStatement(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement stmt) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.LocalReference DeclareLocal(System.Type type) { } - public void SetNonEmpty() { } - } - public class ConstructorCodeBuilder : Castle.DynamicProxy.Generators.Emitters.CodeBuilders.AbstractCodeBuilder - { - public ConstructorCodeBuilder(System.Type baseType, System.Reflection.Emit.ILGenerator generator) { } - public void InvokeBaseConstructor() { } - public void InvokeBaseConstructor(System.Reflection.ConstructorInfo constructor) { } - public void InvokeBaseConstructor(System.Reflection.ConstructorInfo constructor, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference[] arguments) { } - } - public class MethodCodeBuilder : Castle.DynamicProxy.Generators.Emitters.CodeBuilders.AbstractCodeBuilder - { - public MethodCodeBuilder(System.Reflection.Emit.ILGenerator generator) { } - } -} -namespace Castle.DynamicProxy.Generators.Emitters.SimpleAST -{ - public class AddressOfReferenceExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public AddressOfReferenceExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference reference) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("argument {Type}")] - public class ArgumentReference : Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference - { - public ArgumentReference(System.Type argumentType) { } - public ArgumentReference(System.Type argumentType, int position) { } - public override void LoadAddressOfReference(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadReference(System.Reflection.Emit.ILGenerator gen) { } - public override void StoreReference(System.Reflection.Emit.ILGenerator gen) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("{reference} as {type}")] - public class AsTypeReference : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference - { - public AsTypeReference(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference reference, System.Type type) { } - public override void LoadAddressOfReference(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadReference(System.Reflection.Emit.ILGenerator gen) { } - public override void StoreReference(System.Reflection.Emit.ILGenerator gen) { } - } - public class AssignArgumentStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public AssignArgumentStatement(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ArgumentReference argument, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression expression) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class AssignArrayStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public AssignArrayStatement(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference targetArray, int targetPosition, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression value) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator il) { } - } - public class AssignStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public AssignStatement(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference target, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression expression) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class BindDelegateExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public BindDelegateExpression(System.Type @delegate, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression owner, System.Reflection.MethodInfo methodToBindTo, System.Reflection.Emit.GenericTypeParameterBuilder[] genericTypeParams) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("&{localReference}")] - public class ByRefReference : Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference - { - public ByRefReference(Castle.DynamicProxy.Generators.Emitters.SimpleAST.LocalReference localReference) { } - public override void LoadAddressOfReference(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadReference(System.Reflection.Emit.ILGenerator gen) { } - public override void StoreReference(System.Reflection.Emit.ILGenerator gen) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("{value}")] - public class ConstReference : Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference - { - public ConstReference(object value) { } - public override void Generate(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadAddressOfReference(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadReference(System.Reflection.Emit.ILGenerator gen) { } - public override void StoreReference(System.Reflection.Emit.ILGenerator gen) { } - } - public class ConstructorInvocationStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public ConstructorInvocationStatement(System.Reflection.ConstructorInfo method, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class ConvertExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public ConvertExpression(System.Type targetType, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression right) { } - public ConvertExpression(System.Type targetType, System.Type fromType, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression right) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class DefaultValueExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public DefaultValueExpression(System.Type type) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class EndExceptionBlockStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public EndExceptionBlockStatement() { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public abstract class Expression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.IILEmitter - { - protected Expression() { } - public abstract void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen); - } - public class ExpressionStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public ExpressionStatement(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression expression) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("{fieldbuilder.Name} ({fieldbuilder.FieldType})")] - public class FieldReference : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference - { - public FieldReference(System.Reflection.FieldInfo field) { } - public FieldReference(System.Reflection.Emit.FieldBuilder fieldbuilder) { } - public System.Reflection.Emit.FieldBuilder Fieldbuilder { get; } - public System.Reflection.FieldInfo Reference { get; } - public override void LoadAddressOfReference(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadReference(System.Reflection.Emit.ILGenerator gen) { } - public override void StoreReference(System.Reflection.Emit.ILGenerator gen) { } - } - public class FinallyStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public FinallyStatement() { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public interface IILEmitter - { - void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen); - } - public class IfNullExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public IfNullExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference reference, Castle.DynamicProxy.Generators.Emitters.SimpleAST.IILEmitter ifNull, Castle.DynamicProxy.Generators.Emitters.SimpleAST.IILEmitter ifNotNull = null) { } - public IfNullExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression expression, Castle.DynamicProxy.Generators.Emitters.SimpleAST.IILEmitter ifNull, Castle.DynamicProxy.Generators.Emitters.SimpleAST.IILEmitter ifNotNull = null) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("&{OwnerReference}")] - public class IndirectReference : Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference - { - public IndirectReference(Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference byRefReference) { } - public override void LoadAddressOfReference(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadReference(System.Reflection.Emit.ILGenerator gen) { } - public override void StoreReference(System.Reflection.Emit.ILGenerator gen) { } - public static Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference WrapIfByRef(Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference reference) { } - public static Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference[] WrapIfByRef(Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference[] references) { } - } - public class LiteralIntExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public LiteralIntExpression(int value) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class LoadArrayElementExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public LoadArrayElementExpression(int index, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference arrayReference, System.Type returnType) { } - public LoadArrayElementExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ConstReference index, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference arrayReference, System.Type returnType) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class LoadRefArrayElementExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public LoadRefArrayElementExpression(int index, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference arrayReference) { } - public LoadRefArrayElementExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.ConstReference index, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference arrayReference) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("local {Type}")] - public class LocalReference : Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference - { - public LocalReference(System.Type type) { } - public override void Generate(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadAddressOfReference(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadReference(System.Reflection.Emit.ILGenerator gen) { } - public override void StoreReference(System.Reflection.Emit.ILGenerator gen) { } - } - public class MethodInvocationExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - protected readonly Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args; - protected readonly System.Reflection.MethodInfo method; - protected readonly Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference owner; - public MethodInvocationExpression(System.Reflection.MethodInfo method, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args) { } - public MethodInvocationExpression(Castle.DynamicProxy.Generators.Emitters.MethodEmitter method, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args) { } - public MethodInvocationExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference owner, Castle.DynamicProxy.Generators.Emitters.MethodEmitter method, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args) { } - public MethodInvocationExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference owner, System.Reflection.MethodInfo method, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args) { } - public bool VirtualCall { get; set; } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class MethodTokenExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public MethodTokenExpression(System.Reflection.MethodInfo method) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class MultiStatementExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public MultiStatementExpression() { } - public void AddExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression expression) { } - public void AddStatement(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement statement) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class NewArrayExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public NewArrayExpression(int size, System.Type arrayType) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class NewInstanceExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public NewInstanceExpression(System.Reflection.ConstructorInfo constructor, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args) { } - public NewInstanceExpression(System.Type target, System.Type[] constructor_args, params Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression[] args) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class NopStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public NopStatement() { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class NullCoalescingOperatorExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public NullCoalescingOperatorExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression expression, Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression @default) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class NullExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public static readonly Castle.DynamicProxy.Generators.Emitters.SimpleAST.NullExpression Instance; - protected NullExpression() { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public abstract class Reference - { - protected Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference owner; - protected Reference() { } - protected Reference(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference owner) { } - public Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference OwnerReference { get; set; } - public virtual void Generate(System.Reflection.Emit.ILGenerator gen) { } - public abstract void LoadAddressOfReference(System.Reflection.Emit.ILGenerator gen); - public abstract void LoadReference(System.Reflection.Emit.ILGenerator gen); - public abstract void StoreReference(System.Reflection.Emit.ILGenerator gen); - public virtual Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression ToAddressOfExpression() { } - public virtual Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression ToExpression() { } - } - public class ReferenceExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public ReferenceExpression(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference reference) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class ReferencesToObjectArrayExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public ReferencesToObjectArrayExpression(params Castle.DynamicProxy.Generators.Emitters.SimpleAST.TypeReference[] args) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class ReturnStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public ReturnStatement() { } - public ReturnStatement(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference reference) { } - public ReturnStatement(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression expression) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - [System.Diagnostics.DebuggerDisplayAttribute("this")] - public class SelfReference : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference - { - public static readonly Castle.DynamicProxy.Generators.Emitters.SimpleAST.SelfReference Self; - protected SelfReference() { } - public override void LoadAddressOfReference(System.Reflection.Emit.ILGenerator gen) { } - public override void LoadReference(System.Reflection.Emit.ILGenerator gen) { } - public override void StoreReference(System.Reflection.Emit.ILGenerator gen) { } - } - public abstract class Statement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.IILEmitter - { - protected Statement() { } - public abstract void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen); - } - public class ThrowStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public ThrowStatement(System.Type exceptionType, string errorMessage) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public class TryStatement : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Statement - { - public TryStatement() { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } - public abstract class TypeReference : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference - { - protected TypeReference(System.Type argumentType) { } - protected TypeReference(Castle.DynamicProxy.Generators.Emitters.SimpleAST.Reference owner, System.Type type) { } - public System.Type Type { get; } - } - public class TypeTokenExpression : Castle.DynamicProxy.Generators.Emitters.SimpleAST.Expression - { - public TypeTokenExpression(System.Type type) { } - public override void Emit(Castle.DynamicProxy.Generators.Emitters.IMemberEmitter member, System.Reflection.Emit.ILGenerator gen) { } - } -} -namespace Castle.DynamicProxy.Internal -{ - public class static AttributeUtil - { - public static Castle.DynamicProxy.CustomAttributeInfo CreateInfo(System.Reflection.CustomAttributeData attribute) { } - public static Castle.DynamicProxy.CustomAttributeInfo CreateInfo() - where TAttribute : System.Attribute, new () { } - public static Castle.DynamicProxy.CustomAttributeInfo CreateInfo(System.Type attribute, object[] constructorArguments) { } - public static System.Collections.Generic.IEnumerable GetNonInheritableAttributes(this System.Reflection.MemberInfo member) { } - public static System.Collections.Generic.IEnumerable GetNonInheritableAttributes(this System.Reflection.ParameterInfo parameter) { } - } - public abstract class CompositionInvocation : Castle.DynamicProxy.AbstractInvocation - { - protected object target; - protected CompositionInvocation(object target, object proxy, Castle.DynamicProxy.IInterceptor[] interceptors, System.Reflection.MethodInfo proxiedMethod, object[] arguments) { } - public override object InvocationTarget { get; } - public override System.Reflection.MethodInfo MethodInvocationTarget { get; } - public override System.Type TargetType { get; } - protected void EnsureValidProxyTarget(object newTarget) { } - protected void EnsureValidTarget() { } - } - public abstract class InheritanceInvocation : Castle.DynamicProxy.AbstractInvocation - { - protected InheritanceInvocation(System.Type targetType, object proxy, Castle.DynamicProxy.IInterceptor[] interceptors, System.Reflection.MethodInfo proxiedMethod, object[] arguments) { } - public override object InvocationTarget { get; } - public override System.Reflection.MethodInfo MethodInvocationTarget { get; } - public override System.Type TargetType { get; } - protected virtual void InvokeMethodOnTarget() { } - } - public class static InternalsUtil - { - [System.ObsoleteAttribute("Use ProxyUtil.IsAccessible instead, which performs a more accurate accessibility " + - "check.")] - public static bool IsAccessible(this System.Reflection.MethodBase method) { } - [System.ObsoleteAttribute()] - public static bool IsInternal(this System.Reflection.MethodBase method) { } - [System.ObsoleteAttribute()] - public static bool IsInternalToDynamicProxy(this System.Reflection.Assembly asm) { } - } - public class static InvocationHelper - { - public static System.Reflection.MethodInfo GetMethodOnObject(object target, System.Reflection.MethodInfo proxiedMethod) { } - public static System.Reflection.MethodInfo GetMethodOnType(System.Type type, System.Reflection.MethodInfo proxiedMethod) { } - } - public class static TypeUtil - { - public static System.Type[] AsTypeArray(this System.Reflection.Emit.GenericTypeParameterBuilder[] typeInfos) { } - public static System.Reflection.FieldInfo[] GetAllFields(this System.Type type) { } - public static System.Type[] GetAllInterfaces(params System.Type[] types) { } - public static System.Type[] GetAllInterfaces(this System.Type type) { } - public static System.Type GetClosedParameterType(this Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter type, System.Type parameter) { } - public static System.Type GetTypeOrNull(object target) { } - public static bool IsFinalizer(this System.Reflection.MethodInfo methodInfo) { } - public static bool IsGetType(this System.Reflection.MethodInfo methodInfo) { } - public static bool IsMemberwiseClone(this System.Reflection.MethodInfo methodInfo) { } - public static bool IsNullableType(this System.Type type) { } - public static void SetStaticField(this System.Type type, string fieldName, System.Reflection.BindingFlags additionalFlags, object value) { } - public static System.Reflection.MemberInfo[] Sort(System.Reflection.MemberInfo[] members) { } - } -} -namespace Castle.DynamicProxy.Tokens -{ - public class static DelegateMethods - { - public static readonly System.Reflection.MethodInfo CreateDelegate; - } - public class static InterceptorSelectorMethods - { - public static readonly System.Reflection.MethodInfo SelectInterceptors; - } - public class static InvocationMethods - { - public static readonly System.Reflection.ConstructorInfo CompositionInvocationConstructor; - public static readonly System.Reflection.MethodInfo CompositionInvocationEnsureValidTarget; - public static readonly System.Reflection.FieldInfo CompositionInvocationTarget; - public static readonly System.Reflection.MethodInfo EnsureValidTarget; - public static readonly System.Reflection.MethodInfo GetArgumentValue; - public static readonly System.Reflection.MethodInfo GetArguments; - public static readonly System.Reflection.MethodInfo GetReturnValue; - public static readonly System.Reflection.ConstructorInfo InheritanceInvocationConstructor; - public static readonly System.Reflection.ConstructorInfo InheritanceInvocationConstructorWithSelector; - public static readonly System.Reflection.MethodInfo Proceed; - public static readonly System.Reflection.FieldInfo ProxyObject; - public static readonly System.Reflection.MethodInfo SetArgumentValue; - public static readonly System.Reflection.MethodInfo SetGenericMethodArguments; - public static readonly System.Reflection.MethodInfo SetReturnValue; - public static readonly System.Reflection.FieldInfo Target; - public static readonly System.Reflection.MethodInfo ThrowOnNoTarget; - } - public class static MethodBaseMethods - { - public static readonly System.Reflection.MethodInfo GetMethodFromHandle; - } - public class static TypeMethods - { - public static readonly System.Reflection.MethodInfo GetTypeFromHandle; - public static readonly System.Reflection.MethodInfo StaticGetType; - } - public class static TypeUtilMethods - { - public static readonly System.Reflection.MethodInfo GetTypeOrNull; - public static readonly System.Reflection.MethodInfo Sort; - } -} \ No newline at end of file diff --git a/ref/Castle.Services.Logging.NLogIntegration-netstandard1.5.cs b/ref/Castle.Services.Logging.NLogIntegration-netstandard1.5.cs deleted file mode 100644 index ff58bef445..0000000000 --- a/ref/Castle.Services.Logging.NLogIntegration-netstandard1.5.cs +++ /dev/null @@ -1,113 +0,0 @@ -[assembly: System.CLSCompliantAttribute(true)] -[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v1.5", FrameworkDisplayName="")] -namespace Castle.Services.Logging.NLogIntegration -{ - public class ExtendedNLogFactory : Castle.Core.Logging.AbstractExtendedLoggerFactory - { - public ExtendedNLogFactory() { } - public ExtendedNLogFactory(string configFile) { } - public ExtendedNLogFactory(bool configuredExternally) { } - public ExtendedNLogFactory(NLog.Config.LoggingConfiguration loggingConfiguration) { } - public override Castle.Core.Logging.IExtendedLogger Create(string name) { } - public override Castle.Core.Logging.IExtendedLogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } - } - public class ExtendedNLogLogger : Castle.Services.Logging.NLogIntegration.NLogLogger, Castle.Core.Logging.IExtendedLogger, Castle.Core.Logging.ILogger - { - public ExtendedNLogLogger(NLog.Logger logger, Castle.Services.Logging.NLogIntegration.ExtendedNLogFactory factory) { } - protected Castle.Services.Logging.NLogIntegration.ExtendedNLogFactory Factory { get; set; } - public Castle.Core.Logging.IContextProperties GlobalProperties { get; } - public Castle.Core.Logging.IContextProperties ThreadProperties { get; } - public Castle.Core.Logging.IContextStacks ThreadStacks { get; } - public override Castle.Core.Logging.ILogger CreateChildLogger(string name) { } - public Castle.Core.Logging.IExtendedLogger CreateExtendedChildLogger(string name) { } - } - public class GlobalContextProperties : Castle.Core.Logging.IContextProperties - { - public GlobalContextProperties() { } - public object this[string key] { get; set; } - } - public class NLogFactory : Castle.Core.Logging.AbstractLoggerFactory - { - public NLogFactory() { } - public NLogFactory(bool configuredExternally) { } - public NLogFactory(string configFile) { } - public NLogFactory(NLog.Config.LoggingConfiguration loggingConfiguration) { } - public override Castle.Core.Logging.ILogger Create(string name) { } - public override Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } - } - public class NLogLogger : Castle.Core.Logging.ILogger - { - public NLogLogger(NLog.Logger logger, Castle.Services.Logging.NLogIntegration.NLogFactory factory) { } - protected Castle.Services.Logging.NLogIntegration.NLogFactory Factory { get; set; } - public bool IsDebugEnabled { get; } - public bool IsErrorEnabled { get; } - public bool IsFatalEnabled { get; } - public bool IsInfoEnabled { get; } - public bool IsTraceEnabled { get; } - public bool IsWarnEnabled { get; } - protected NLog.Logger Logger { get; set; } - public virtual Castle.Core.Logging.ILogger CreateChildLogger(string name) { } - public void Debug(string message) { } - public void Debug(System.Func messageFactory) { } - public void Debug(string message, System.Exception exception) { } - public void DebugFormat(string format, params object[] args) { } - public void DebugFormat(System.Exception exception, string format, params object[] args) { } - public void DebugFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void DebugFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Error(string message) { } - public void Error(System.Func messageFactory) { } - public void Error(string message, System.Exception exception) { } - public void ErrorFormat(string format, params object[] args) { } - public void ErrorFormat(System.Exception exception, string format, params object[] args) { } - public void ErrorFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void ErrorFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Fatal(string message) { } - public void Fatal(System.Func messageFactory) { } - public void Fatal(string message, System.Exception exception) { } - public void FatalFormat(string format, params object[] args) { } - public void FatalFormat(System.Exception exception, string format, params object[] args) { } - public void FatalFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void FatalFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Info(string message) { } - public void Info(System.Func messageFactory) { } - public void Info(string message, System.Exception exception) { } - public void InfoFormat(string format, params object[] args) { } - public void InfoFormat(System.Exception exception, string format, params object[] args) { } - public void InfoFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void InfoFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public override string ToString() { } - public void Trace(string message) { } - public void Trace(System.Func messageFactory) { } - public void Trace(string message, System.Exception exception) { } - public void TraceFormat(string format, params object[] args) { } - public void TraceFormat(System.Exception exception, string format, params object[] args) { } - public void TraceFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void TraceFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Warn(string message) { } - public void Warn(System.Func messageFactory) { } - public void Warn(string message, System.Exception exception) { } - public void WarnFormat(string format, params object[] args) { } - public void WarnFormat(System.Exception exception, string format, params object[] args) { } - public void WarnFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void WarnFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - } - public class ThreadContextProperties : Castle.Core.Logging.IContextProperties - { - public ThreadContextProperties() { } - public object this[string key] { get; set; } - } - public class ThreadContextStack : Castle.Core.Logging.IContextStack - { - public ThreadContextStack() { } - public int Count { get; } - public void Clear() { } - public string Pop() { } - public System.IDisposable Push(string message) { } - } - public class ThreadContextStacks : Castle.Core.Logging.IContextStacks - { - public ThreadContextStacks() { } - public Castle.Core.Logging.IContextStack this[string key] { get; } - } -} \ No newline at end of file diff --git a/ref/Castle.Services.Logging.SerilogIntegration-netstandard1.5.cs b/ref/Castle.Services.Logging.SerilogIntegration-netstandard1.5.cs deleted file mode 100644 index dd45e33ee4..0000000000 --- a/ref/Castle.Services.Logging.SerilogIntegration-netstandard1.5.cs +++ /dev/null @@ -1,67 +0,0 @@ -[assembly: System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v1.5", FrameworkDisplayName="")] -namespace Castle.Services.Logging.SerilogIntegration -{ - public class SerilogFactory : Castle.Core.Logging.AbstractLoggerFactory - { - public SerilogFactory() { } - public SerilogFactory(Serilog.ILogger logger) { } - public override Castle.Core.Logging.ILogger Create(string name) { } - public override Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } - } - public class SerilogLogger : Castle.Core.Logging.ILogger - { - public SerilogLogger(Serilog.ILogger logger, Castle.Services.Logging.SerilogIntegration.SerilogFactory factory) { } - protected Castle.Services.Logging.SerilogIntegration.SerilogFactory Factory { get; set; } - public bool IsDebugEnabled { get; } - public bool IsErrorEnabled { get; } - public bool IsFatalEnabled { get; } - public bool IsInfoEnabled { get; } - public bool IsTraceEnabled { get; } - public bool IsWarnEnabled { get; } - protected Serilog.ILogger Logger { get; set; } - public Castle.Core.Logging.ILogger CreateChildLogger(string loggerName) { } - public void Debug(string message, System.Exception exception) { } - public void Debug(System.Func messageFactory) { } - public void Debug(string message) { } - public void DebugFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void DebugFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void DebugFormat(System.Exception exception, string format, params object[] args) { } - public void DebugFormat(string format, params object[] args) { } - public void Error(string message, System.Exception exception) { } - public void Error(System.Func messageFactory) { } - public void Error(string message) { } - public void ErrorFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void ErrorFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void ErrorFormat(System.Exception exception, string format, params object[] args) { } - public void ErrorFormat(string format, params object[] args) { } - public void Fatal(string message, System.Exception exception) { } - public void Fatal(System.Func messageFactory) { } - public void Fatal(string message) { } - public void FatalFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void FatalFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void FatalFormat(System.Exception exception, string format, params object[] args) { } - public void FatalFormat(string format, params object[] args) { } - public void Info(string message, System.Exception exception) { } - public void Info(System.Func messageFactory) { } - public void Info(string message) { } - public void InfoFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void InfoFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void InfoFormat(System.Exception exception, string format, params object[] args) { } - public void InfoFormat(string format, params object[] args) { } - public override string ToString() { } - public void Trace(string message, System.Exception exception) { } - public void Trace(System.Func messageFactory) { } - public void Trace(string message) { } - public void TraceFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void TraceFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void TraceFormat(System.Exception exception, string format, params object[] args) { } - public void TraceFormat(string format, params object[] args) { } - public void Warn(string message, System.Exception exception) { } - public void Warn(System.Func messageFactory) { } - public void Warn(string message) { } - public void WarnFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void WarnFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void WarnFormat(System.Exception exception, string format, params object[] args) { } - public void WarnFormat(string format, params object[] args) { } - } -} \ No newline at end of file diff --git a/ref/Castle.Services.Logging.log4netIntegration-netstandard1.5.cs b/ref/Castle.Services.Logging.log4netIntegration-netstandard1.5.cs deleted file mode 100644 index 371120d710..0000000000 --- a/ref/Castle.Services.Logging.log4netIntegration-netstandard1.5.cs +++ /dev/null @@ -1,114 +0,0 @@ -[assembly: System.CLSCompliantAttribute(true)] -[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v1.5", FrameworkDisplayName="")] -namespace Castle.Services.Logging.Log4netIntegration -{ - public class ExtendedLog4netFactory : Castle.Core.Logging.AbstractExtendedLoggerFactory - { - public ExtendedLog4netFactory() { } - public ExtendedLog4netFactory(bool configuredExternally) { } - public ExtendedLog4netFactory(string configFile) { } - public ExtendedLog4netFactory(System.IO.Stream config) { } - public override Castle.Core.Logging.IExtendedLogger Create(string name) { } - public override Castle.Core.Logging.IExtendedLogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } - } - public class ExtendedLog4netLogger : Castle.Services.Logging.Log4netIntegration.Log4netLogger, Castle.Core.Logging.IExtendedLogger, Castle.Core.Logging.ILogger - { - public ExtendedLog4netLogger(log4net.ILog log, Castle.Services.Logging.Log4netIntegration.ExtendedLog4netFactory factory) { } - public ExtendedLog4netLogger(log4net.Core.ILogger logger, Castle.Services.Logging.Log4netIntegration.ExtendedLog4netFactory factory) { } - protected Castle.Services.Logging.Log4netIntegration.ExtendedLog4netFactory Factory { get; set; } - public Castle.Core.Logging.IContextProperties GlobalProperties { get; } - public Castle.Core.Logging.IContextProperties ThreadProperties { get; } - public Castle.Core.Logging.IContextStacks ThreadStacks { get; } - public override Castle.Core.Logging.ILogger CreateChildLogger(string name) { } - public Castle.Core.Logging.IExtendedLogger CreateExtendedChildLogger(string name) { } - } - public class GlobalContextProperties : Castle.Core.Logging.IContextProperties - { - public GlobalContextProperties() { } - public object this[string key] { get; set; } - } - public class Log4netFactory : Castle.Core.Logging.AbstractLoggerFactory - { - public Log4netFactory() { } - public Log4netFactory(string configFile) { } - public Log4netFactory(bool configuredExternally) { } - public Log4netFactory(System.IO.Stream config) { } - public override Castle.Core.Logging.ILogger Create(string name) { } - public override Castle.Core.Logging.ILogger Create(string name, Castle.Core.Logging.LoggerLevel level) { } - } - public class Log4netLogger : Castle.Core.Logging.ILogger - { - public Log4netLogger(log4net.Core.ILogger logger, Castle.Services.Logging.Log4netIntegration.Log4netFactory factory) { } - protected Castle.Services.Logging.Log4netIntegration.Log4netFactory Factory { get; set; } - public bool IsDebugEnabled { get; } - public bool IsErrorEnabled { get; } - public bool IsFatalEnabled { get; } - public bool IsInfoEnabled { get; } - public bool IsTraceEnabled { get; } - public bool IsWarnEnabled { get; } - protected log4net.Core.ILogger Logger { get; set; } - public virtual Castle.Core.Logging.ILogger CreateChildLogger(string name) { } - public void Debug(string message) { } - public void Debug(System.Func messageFactory) { } - public void Debug(string message, System.Exception exception) { } - public void DebugFormat(string format, params object[] args) { } - public void DebugFormat(System.Exception exception, string format, params object[] args) { } - public void DebugFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void DebugFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Error(string message) { } - public void Error(System.Func messageFactory) { } - public void Error(string message, System.Exception exception) { } - public void ErrorFormat(string format, params object[] args) { } - public void ErrorFormat(System.Exception exception, string format, params object[] args) { } - public void ErrorFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void ErrorFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Fatal(string message) { } - public void Fatal(System.Func messageFactory) { } - public void Fatal(string message, System.Exception exception) { } - public void FatalFormat(string format, params object[] args) { } - public void FatalFormat(System.Exception exception, string format, params object[] args) { } - public void FatalFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void FatalFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Info(string message) { } - public void Info(System.Func messageFactory) { } - public void Info(string message, System.Exception exception) { } - public void InfoFormat(string format, params object[] args) { } - public void InfoFormat(System.Exception exception, string format, params object[] args) { } - public void InfoFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void InfoFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public override string ToString() { } - public void Trace(string message) { } - public void Trace(System.Func messageFactory) { } - public void Trace(string message, System.Exception exception) { } - public void TraceFormat(string format, params object[] args) { } - public void TraceFormat(System.Exception exception, string format, params object[] args) { } - public void TraceFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void TraceFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - public void Warn(string message) { } - public void Warn(System.Func messageFactory) { } - public void Warn(string message, System.Exception exception) { } - public void WarnFormat(string format, params object[] args) { } - public void WarnFormat(System.Exception exception, string format, params object[] args) { } - public void WarnFormat(System.IFormatProvider formatProvider, string format, params object[] args) { } - public void WarnFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { } - } - public class ThreadContextProperties : Castle.Core.Logging.IContextProperties - { - public ThreadContextProperties() { } - public object this[string key] { get; set; } - } - public class ThreadContextStack : Castle.Core.Logging.IContextStack - { - public ThreadContextStack(log4net.Util.ThreadContextStack log4netStack) { } - public int Count { get; } - public void Clear() { } - public string Pop() { } - public System.IDisposable Push(string message) { } - } - public class ThreadContextStacks : Castle.Core.Logging.IContextStacks - { - public ThreadContextStacks() { } - public Castle.Core.Logging.IContextStack this[string key] { get; } - } -} \ No newline at end of file From de1e80242c15f8b5b10a58add8925385dc51964b Mon Sep 17 00:00:00 2001 From: stakx Date: Wed, 13 May 2020 19:15:32 +0200 Subject: [PATCH 11/16] Update version numbers in documentation --- CHANGELOG.md | 2 +- README.md | 6 +++--- docs/dynamicproxy-introduction.md | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 51a7fd4288..f7777a52b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ Enhancements: - .NET Standard 2.0 and 2.1 support (@lg2de, #485) Deprecations: - - Removed support for the .NET Framework 3.5. + - Removed support for the .NET Framework < 4.5 and .NET Standard 1.x. (@stakx, #495, #496) ## 4.4.1 (2020-05-06) diff --git a/README.md b/README.md index 7a7049da0a..1cecfcb906 100644 --- a/README.md +++ b/README.md @@ -36,9 +36,9 @@ build.cmd Compilation requires an up-to-date .NET Core SDK and MSBuild 15+ (which should be included in the former). -Running the unit tests additionally requires the .NET Framework 4.6.1+ as well as the .NET Core 1.1 runtime to be installed. +Running the unit tests additionally requires the .NET Framework 4.6.1+ as well as the .NET Core 3.1 runtime to be installed. -Most of these requirements should be covered by Visual Studio 2017. +Most of these requirements should be covered by Visual Studio 2019. ### On Linux @@ -48,7 +48,7 @@ Most of these requirements should be covered by Visual Studio 2017. Compilation requires an up-to-date .NET Core SDK. -Running the unit tests additionally requires the .NET Core 1.1 runtime to be installed, as well as either Docker or Mono. For the latter, we recommend Mono 5.10+, though older versions (4.6.1+) might still work as well. +Running the unit tests additionally requires the .NET Core 3.1 runtime to be installed, as well as either Docker or Mono. For the latter, we recommend Mono 5.10+, though older versions (4.6.1+) might still work as well. :information_source: **Mono runtime support:** Castle Core runs with minor limitations and defects on Mono 4.0.2+ (however 4.6.1+ is highly recommended, or 5.10+ if your code uses new C# 7.x language features such as `in` parameters). diff --git a/docs/dynamicproxy-introduction.md b/docs/dynamicproxy-introduction.md index 622b91318e..3f2656b8e3 100644 --- a/docs/dynamicproxy-introduction.md +++ b/docs/dynamicproxy-introduction.md @@ -10,7 +10,8 @@ To use Castle DynamicProxy you need the following environment: * one of the following runtimes installed * .NET Framework 4.5+ - * .NET Core 1.0+ (Castle Core 4.0+) + * .NET Core 2.1+ + * any another .NET platform that supports .NET Standard 2.0+ and runtime type generation using System.Reflection.Emit * `Castle.Core.dll` (assembly where DynamicProxy lives) :information_source: **DynamicProxy assembly:** In previous versions (up to v2.2) DynamicProxy used to live in its own assembly `Castle.DynamicProxy.dll`. It was later moved to `Castle.Core.dll` and now no other assembly is required to use it. From 2986b25ebe445b5292d13c396947668eb32f1973 Mon Sep 17 00:00:00 2001 From: stakx Date: Wed, 13 May 2020 19:33:01 +0200 Subject: [PATCH 12/16] Remove redundant conditional compilation symbols Those are now defined for all target frameworks and therefore no longer needed: * `FEATURE_BINDINGLIST` * `FEATURE_DICTIONARYADAPTER_XML` * `FEATURE_GAC` * `FEATURE_GET_REFERENCED_ASSEMBLIES` * `FEATURE_IDATAERRORINFO` * `FEATURE_ISUPPORTINITIALIZE` * `FEATURE_LISTSORT` * `FEATURE_NETCORE_REFLECTION_API` * `FEATURE_NETSTANDARD2_COMPATIBILITY` along w/ `.AsType()` calls * `FEATURE_SMTP` * `FEATURE_TARGETEXCEPTION` * `FEATURE_TEST_DATASET` * `FEATURE_TEST_SERILOGINTEGRATION` And further: * some usages of `DOTNET45` where it guards `XmlConvert` (which is now also available on all targets). --- README.md | 24 --------- buildscripts/common.props | 6 +-- .../CustomAssert.cs | 2 - .../DictionaryAdapterFactoryTestCase.cs | 8 --- .../IAddress.cs | 5 +- .../IItemContainer.cs | 2 - .../IPerson.cs | 5 +- .../IPhone.cs | 5 +- .../InfrastructureStub.cs | 5 +- ...berwiseEqualityHashCodeStrategyTestCase.cs | 2 - .../Xml/XmlAdapterAcceptanceTestCase.cs | 2 - .../BaseTestCaseTestCase.cs | 2 +- .../ClassProxyConstructorsTestCase.cs | 4 -- .../ParameterDefaultValuesTestCase.cs | 2 - .../DynamicProxy.Tests/ProxyUtilTestCase.cs | 4 -- .../DynamicProxy.Tests/RhinoMocksTestCase.cs | 4 +- .../SerilogIntegration/SerilogTests.cs | 4 -- .../NetCoreReflectionExtensions.cs | 37 -------------- .../Compatibility/TypeBuilderExtensions.cs | 38 -------------- .../Attributes/OnDemandAttribute.cs | 12 ----- .../Attributes/XPathAttribute.cs | 2 - .../Attributes/XPathFunctionAttribute.cs | 2 - .../Attributes/XPathVariableAttribute.cs | 2 - .../DictionaryAdapterBase.Validate.cs | 2 - .../DictionaryAdapterBase.cs | 4 -- .../DictionaryAdapterFactory.cs | 8 +-- .../DictionaryValidateGroup.cs | 6 --- .../IDictionaryAdapterFactory.cs | 2 - .../IDictionaryValidate.cs | 5 +- .../Util/BindingList.cs | 2 - .../Util/BindingListInitializer.cs | 3 -- .../Util/EditableBindingList.cs | 2 - .../Util/IBindingList.cs | 11 +--- .../Util/IBindingListSource.cs | 2 - .../Util/ListProjection.cs | 51 ------------------- .../Xml/Core/DefaultXmlReferenceFormat.cs | 2 - .../Xml/Core/IXmlReferenceFormat.cs | 2 - .../Xml/Core/XmlAdapter.cs | 2 - .../Xml/Core/XmlMetadata.cs | 2 - .../Xml/Core/XmlMetadataBehavior.cs | 2 - .../Xml/Core/XmlReferenceManager.cs | 2 - .../Xml/Internal/Accessors/IXmlAccessor.cs | 2 - .../Accessors/IXmlBehaviorSemantics.cs | 2 - .../Accessors/IXmlCollectionAccessor.cs | 2 - .../Accessors/IXmlPropertyAccessor.cs | 2 - .../Accessors/XPathBehaviorAccessor.cs | 2 - .../Xml/Internal/Accessors/XmlAccessor.cs | 2 - .../Internal/Accessors/XmlAccessorFactory.cs | 2 - .../Accessors/XmlArrayBehaviorAccessor.cs | 2 - .../Accessors/XmlAttributeBehaviorAccessor.cs | 2 - .../Accessors/XmlDefaultBehaviorAccessor.cs | 2 - .../Accessors/XmlElementBehaviorAccessor.cs | 2 - .../Accessors/XmlIgnoreBehaviorAccessor.cs | 2 - .../Xml/Internal/Accessors/XmlNodeAccessor.cs | 2 - .../Xml/Internal/Accessors/XmlSelfAccessor.cs | 2 - .../Collections/XmlCollectionAdapter.cs | 2 - .../Internal/Collections/XmlCollectionItem.cs | 2 - .../Xml/Internal/Collections/XmlNodeList.cs | 2 - .../Xml/Internal/Collections/XmlNodeSet.cs | 2 - .../Xml/Internal/Cursors/Base/CursorFlags.cs | 2 - .../Xml/Internal/Cursors/Base/IXmlContext.cs | 2 - .../Xml/Internal/Cursors/Base/IXmlCursor.cs | 2 - .../Xml/Internal/Cursors/Base/IXmlIterator.cs | 2 - .../Cursors/Base/IXmlNamespaceSource.cs | 2 - .../Xml/Internal/Cursors/Base/IXmlNode.cs | 2 - .../Internal/Cursors/Base/IXmlNodeSource.cs | 2 - .../Xml/Internal/Cursors/Base/XmlContext.cs | 2 - .../Internal/Cursors/Base/XmlContextBase.cs | 2 - .../Internal/Cursors/Base/XmlExtensions.cs | 2 - .../Xml/Internal/Cursors/Base/XmlName.cs | 2 - .../Internal/Cursors/Base/XmlNameComparer.cs | 2 - .../Xml/Internal/Cursors/Base/XmlNodeBase.cs | 2 - .../Cursors/Base/XmlPositionComparer.cs | 2 - .../Internal/Cursors/Base/XmlSelfCursor.cs | 2 - .../Cursors/SystemXml/SysXmlCursor.cs | 2 - .../Cursors/SystemXml/SysXmlExtensions.cs | 2 - .../Internal/Cursors/SystemXml/SysXmlNode.cs | 2 - .../SystemXml/SysXmlSubtreeIterator.cs | 2 - .../Internal/Cursors/XPath/CompiledXPath.cs | 4 -- .../Cursors/XPath/CompiledXPathNode.cs | 2 - .../Cursors/XPath/CompiledXPathStep.cs | 2 - .../XPath/XPathBufferedNodeIterator.cs | 2 - .../Internal/Cursors/XPath/XPathCompiler.cs | 43 ---------------- .../Internal/Cursors/XPath/XPathContext.cs | 2 - .../Internal/Cursors/XPath/XPathExtensions.cs | 2 - .../Cursors/XPath/XPathMutableCursor.cs | 2 - .../Xml/Internal/Cursors/XPath/XPathNode.cs | 2 - .../Cursors/XPath/XPathReadOnlyCursor.cs | 2 - .../Xml/Internal/Namespaces/Wsdl.cs | 2 - .../Xml/Internal/Namespaces/XRef.cs | 2 - .../Xml/Internal/Namespaces/Xmlns.cs | 2 - .../Xml/Internal/Namespaces/Xsd.cs | 2 - .../Xml/Internal/Namespaces/Xsi.cs | 2 - .../Serializers/XmlArraySerializer.cs | 2 - .../Serializers/XmlCollectionSerializer.cs | 2 - .../Serializers/XmlComponentSerializer.cs | 2 - .../Serializers/XmlCustomSerializer.cs | 2 - .../Serializers/XmlDefaultSerializer.cs | 2 - .../Serializers/XmlDynamicSerializer.cs | 2 - .../Serializers/XmlEnumerationSerializer.cs | 2 - .../Internal/Serializers/XmlListSerializer.cs | 2 - .../Internal/Serializers/XmlSetSerializer.cs | 2 - .../Serializers/XmlSimpleSerializer.cs | 2 - .../Serializers/XmlStringSerializer.cs | 2 - .../Xml/Internal/Serializers/XmlTypeKind.cs | 2 - .../Internal/Serializers/XmlTypeSerializer.cs | 2 - .../Serializers/XmlTypeSerializerCache.cs | 2 - .../Serializers/XmlXmlNodeSerializer.cs | 2 - .../Xml/Internal/Types/IXmlIdentity.cs | 2 - .../Xml/Internal/Types/IXmlIncludedType.cs | 2 - .../Xml/Internal/Types/IXmlIncludedTypeMap.cs | 2 - .../Xml/Internal/Types/IXmlKnownType.cs | 2 - .../Xml/Internal/Types/IXmlKnownTypeMap.cs | 2 - .../Xml/Internal/Types/XmlIncludedType.cs | 2 - .../Xml/Internal/Types/XmlIncludedTypeSet.cs | 2 - .../Xml/Internal/Types/XmlKnownType.cs | 2 - .../Xml/Internal/Types/XmlKnownTypeSet.cs | 2 - .../Utilities/DictionaryAdapterExtensions.cs | 2 - .../Xml/Internal/Utilities/Error.cs | 2 - .../Xml/Internal/Utilities/IConfigurable.cs | 2 - .../Xml/Internal/Utilities/IRealizable.cs | 2 - .../Internal/Utilities/SingletonDispenser.cs | 2 - .../Internal/Utilities/StringExtensions.cs | 2 - .../Xml/Internal/Utilities/Try.cs | 2 - .../Xml/Internal/Utilities/TypeExtensions.cs | 2 - .../Internal/Utilities/XmlSubtreeReader.cs | 2 - .../Internal/Utilities/XmlSubtreeWriter.cs | 2 - .../Core/Resource/AssemblyBundleResource.cs | 4 -- .../Core/Resource/AssemblyResource.cs | 4 -- .../Core/Smtp/DefaultSmtpSender.cs | 4 -- src/Castle.Core/Core/Smtp/IEmailSender.cs | 4 -- .../DynamicProxy/ExceptionMessageBuilder.cs | 6 --- .../Emitters/AbstractTypeEmitter.cs | 8 +-- .../Generators/Emitters/GenericUtil.cs | 4 +- .../DynamicProxy/Internal/TypeUtil.cs | 4 +- src/Castle.Core/DynamicProxy/ProxyUtil.cs | 4 -- 136 files changed, 19 insertions(+), 527 deletions(-) delete mode 100644 src/Castle.Core/Compatibility/NetCoreReflectionExtensions.cs delete mode 100644 src/Castle.Core/Compatibility/TypeBuilderExtensions.cs diff --git a/README.md b/README.md index 1cecfcb906..a977fa35a5 100644 --- a/README.md +++ b/README.md @@ -64,46 +64,22 @@ Symbol | NET45 | .NET Core ----------------------------------- | ------------------ | ------------------ `FEATURE_APPDOMAIN` | :white_check_mark: | :no_entry_sign: `FEATURE_ASSEMBLYBUILDER_SAVE` | :white_check_mark: | :no_entry_sign: -`FEATURE_BINDINGLIST` | :white_check_mark: | :no_entry_sign: -`FEATURE_DICTIONARYADAPTER_XML` | :white_check_mark: | :no_entry_sign: `FEATURE_EVENTLOG` | :white_check_mark: | :no_entry_sign: -`FEATURE_GAC` | :white_check_mark: | :no_entry_sign: -`FEATURE_GET_REFERENCED_ASSEMBLIES` | :white_check_mark: | :no_entry_sign: -`FEATURE_IDATAERRORINFO` | :white_check_mark: | :no_entry_sign: -`FEATURE_ISUPPORTINITIALIZE` | :white_check_mark: | :no_entry_sign: -`FEATURE_LISTSORT` | :white_check_mark: | :no_entry_sign: -`FEATURE_NETCORE_REFLECTION_API` | :no_entry_sign: | :white_check_mark: `FEATURE_REMOTING` | :white_check_mark: | :no_entry_sign: `FEATURE_SECURITY_PERMISSIONS` | :white_check_mark: | :no_entry_sign: `FEATURE_SERIALIZATION` | :white_check_mark: | :no_entry_sign: -`FEATURE_SMTP` | :white_check_mark: | :no_entry_sign: `FEATURE_SYSTEM_CONFIGURATION` | :white_check_mark: | :no_entry_sign: -`FEATURE_TARGETEXCEPTION` | :white_check_mark: | :no_entry_sign: `FEATURE_TEST_COM` | :white_check_mark: | :no_entry_sign: -`FEATURE_TEST_DATASET` | :white_check_mark: | :no_entry_sign: `FEATURE_TEST_PEVERIFY` | :white_check_mark: | :no_entry_sign: -`FEATURE_TEST_SERILOGINTEGRATION` | :white_check_mark: | :white_check_mark: --- | | `DOTNET45` | :white_check_mark: | :no_entry_sign: * `FEATURE_APPDOMAIN` - enables support for features that make use of an AppDomain in the host. * `FEATURE_ASSEMBLYBUILDER_SAVE` - enabled support for saving the dynamically generated proxy assembly. -* `FEATURE_BINDINGLIST` - enables support features that make use of System.ComponentModel.BindingList. -* `FEATURE_DICTIONARYADAPTER_XML` - enable DictionaryAdapter Xml features. * `FEATURE_EVENTLOG` - provides a diagnostics logger using the Windows Event Log. -* `FEATURE_GAC` - enables support for obtaining assemblies using an assembly long form name. -* `FEATURE_GET_REFERENCED_ASSEMBLIES` - enables code that takes advantage of System.Reflection.Assembly.GetReferencedAssemblies(). -* `FEATURE_IDATAERRORINFO` - enables code that depends on System.ComponentModel.IDataErrorInfo. -* `FEATURE_ISUPPORTINITIALIZE` - enables support for features that make use of System.ComponentModel.ISupportInitialize. -* `FEATURE_LISTSORT` - enables support for features that make use of System.ComponentModel.ListSortDescription. -* `FEATURE_NETCORE_REFLECTION_API` - provides shims to implement missing functionality in .NET Core that has no alternatives. * `FEATURE_REMOTING` - supports remoting on various types including inheriting from MarshalByRefObject. * `FEATURE_SECURITY_PERMISSIONS` - enables the use of CAS and Security[Critical|SafeCritical|Transparent]. * `FEATURE_SERIALIZATION` - enables support for serialization of dynamic proxies and other types. -* `FEATURE_SMTP` - provides the email sender abstraction and implementation. * `FEATURE_SYSTEM_CONFIGURATION` - enables features that use System.Configuration and the ConfigurationManager. -* `FEATURE_TARGETEXCEPTION` - enabled catching a `TargetException`. `System.Reflection.TargetException` is implemented by .NET Core but not exposed by corefx. * `FEATURE_TEST_COM` - enables COM Interop tests. -* `FEATURE_TEST_DATASET` - enables tests that involve `System.Data.DataSet`s. * `FEATURE_TEST_PEVERIFY` - enables verification of dynamic assemblies using PEVerify during tests. (Only defined on Windows builds since Windows is currently the only platform where PEVerify is available.) -* `FEATURE_TEST_SERILOGINTEGRATION` - enables Serilog integration tests. diff --git a/buildscripts/common.props b/buildscripts/common.props index 2e74dd5fe3..31e795b4db 100644 --- a/buildscripts/common.props +++ b/buildscripts/common.props @@ -43,9 +43,9 @@ DEBUG - TRACE;FEATURE_BINDINGLIST;FEATURE_DICTIONARYADAPTER_XML;FEATURE_GAC;FEATURE_IDATAERRORINFO;FEATURE_ISUPPORTINITIALIZE;FEATURE_LISTSORT;FEATURE_SMTP;FEATURE_TARGETEXCEPTION;FEATURE_TEST_DATASET;FEATURE_TEST_SERILOGINTEGRATION;FEATURE_NETSTANDARD2_COMPATIBILITY - TRACE;FEATURE_BINDINGLIST;FEATURE_DICTIONARYADAPTER_XML;FEATURE_GAC;FEATURE_IDATAERRORINFO;FEATURE_ISUPPORTINITIALIZE;FEATURE_LISTSORT;FEATURE_SMTP;FEATURE_TARGETEXCEPTION;FEATURE_TEST_DATASET;FEATURE_TEST_SERILOGINTEGRATION;FEATURE_NETSTANDARD2_COMPATIBILITY - TRACE;FEATURE_APPDOMAIN;FEATURE_ASSEMBLYBUILDER_SAVE;FEATURE_BINDINGLIST;FEATURE_DICTIONARYADAPTER_XML;FEATURE_EVENTLOG;FEATURE_GAC;FEATURE_GET_REFERENCED_ASSEMBLIES;FEATURE_IDATAERRORINFO;FEATURE_ISUPPORTINITIALIZE;FEATURE_LISTSORT;FEATURE_REMOTING;FEATURE_SECURITY_PERMISSIONS;FEATURE_SERIALIZATION;FEATURE_SMTP;FEATURE_SYSTEM_CONFIGURATION;FEATURE_TARGETEXCEPTION;FEATURE_TEST_COM;FEATURE_TEST_DATASET;FEATURE_TEST_SERILOGINTEGRATION + TRACE + TRACE + TRACE;FEATURE_APPDOMAIN;FEATURE_ASSEMBLYBUILDER_SAVE;FEATURE_EVENTLOG;FEATURE_REMOTING;FEATURE_SECURITY_PERMISSIONS;FEATURE_SERIALIZATION;FEATURE_SYSTEM_CONFIGURATION;FEATURE_TEST_COM $(CommonDesktopClrConstants) $(CommonDesktopClrConstants);FEATURE_TEST_PEVERIFY diff --git a/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/CustomAssert.cs b/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/CustomAssert.cs index 0a96c46741..74d1244c48 100644 --- a/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/CustomAssert.cs +++ b/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/CustomAssert.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Tests { using System; @@ -112,4 +111,3 @@ private static XmlElement GetElement(IXPathNavigable source) } } } -#endif diff --git a/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/DictionaryAdapterFactoryTestCase.cs b/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/DictionaryAdapterFactoryTestCase.cs index a6772cd0ab..197f14ba87 100644 --- a/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/DictionaryAdapterFactoryTestCase.cs +++ b/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/DictionaryAdapterFactoryTestCase.cs @@ -743,8 +743,6 @@ public void WillNotPropagatePropertyChangedEventWhenNestedPropertyChanged() container.Item.Name = "Craig"; } -#if FEATURE_BINDINGLIST - [Test] public void WillPropagatePropertyChangedEventWhenBindingListPropertyChanged() { @@ -752,7 +750,6 @@ public void WillPropagatePropertyChangedEventWhenBindingListPropertyChanged() var person = container.Bindingtems.AddNew(); person.Name = "Fred Flinstone"; } -#endif [Test] public void CanSuppressAllPropertyChangedEvents() @@ -1130,7 +1127,6 @@ public void CanInitializeTheDictionaryAdapterWithAttributes() Assert.IsTrue(((IDictionaryAdapter)name).Validators.OfType().Any()); } -#if FEATURE_IDATAERRORINFO [Test] public void CanValidateAndObtainDataErrorInformation() { @@ -1196,7 +1192,6 @@ public void WillNotifyPropertyChangesOnValidateGroup() name.LastName = "Monster"; Assert.IsTrue(notifyCalled); } -#endif [Test] public void CanCreateDictionaryAdapterFromExistingAdapter() @@ -1266,8 +1261,6 @@ public void CanGetInterfacePropertyOnDemand() Assert.IsNotNull(container.Phone); } -#if FEATURE_BINDINGLIST - [Test] public void CanAddBindingListItemsOnDemand() { @@ -1275,7 +1268,6 @@ public void CanAddBindingListItemsOnDemand() var person = container.Bindingtems.AddNew(); Assert.IsNotNull(person); } -#endif [Test] public void WillNotCreateObjectOnDemandWithoutDefaultConstructor() diff --git a/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/IAddress.cs b/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/IAddress.cs index bdf3ed38a3..977515b9ed 100644 --- a/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/IAddress.cs +++ b/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/IAddress.cs @@ -17,10 +17,7 @@ namespace Castle.Components.DictionaryAdapter.Tests using System.ComponentModel; //[PropagateNotifications(false)] - public interface IAddress : IEditableObject, INotifyPropertyChanged -#if FEATURE_IDATAERRORINFO - , IDataErrorInfo -#endif + public interface IAddress : IEditableObject, INotifyPropertyChanged, IDataErrorInfo { string Line1 { get; set; } string Line2 { get; set; } diff --git a/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/IItemContainer.cs b/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/IItemContainer.cs index c70aab2aaa..f5fa835ce9 100644 --- a/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/IItemContainer.cs +++ b/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/IItemContainer.cs @@ -43,9 +43,7 @@ public interface IItemContainer : IDictionaryAdapter, IDictionaryCreate, IList GenericItems { get; set; } -#if FEATURE_BINDINGLIST BindingList Bindingtems { get; set; } -#endif IList Items { get; set; } } diff --git a/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/IPerson.cs b/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/IPerson.cs index 87605ffaa3..d5d9579ca3 100644 --- a/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/IPerson.cs +++ b/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/IPerson.cs @@ -19,10 +19,7 @@ namespace Castle.Components.DictionaryAdapter.Tests using System.ComponentModel; [MultiLevelEdit] - public interface IPerson : IDictionaryAdapter, IEditableObject, IDictionaryNotify -#if FEATURE_IDATAERRORINFO - , IDataErrorInfo -#endif + public interface IPerson : IDictionaryAdapter, IEditableObject, IDictionaryNotify, IDataErrorInfo { [RemoveIf(null)] string Name { get; set; } diff --git a/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/IPhone.cs b/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/IPhone.cs index f5a22a8322..4db1cf4c60 100644 --- a/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/IPhone.cs +++ b/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/IPhone.cs @@ -16,10 +16,7 @@ namespace Castle.Components.DictionaryAdapter.Tests { using System.ComponentModel; - public interface IPhone : IEditableObject, INotifyPropertyChanged -#if FEATURE_IDATAERRORINFO - , IDataErrorInfo -#endif + public interface IPhone : IEditableObject, INotifyPropertyChanged, IDataErrorInfo { [Fetch]string Number { get; set; } string Extension { get; set; } diff --git a/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/InfrastructureStub.cs b/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/InfrastructureStub.cs index 134aafb008..1120ea76d9 100644 --- a/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/InfrastructureStub.cs +++ b/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/InfrastructureStub.cs @@ -17,10 +17,7 @@ namespace Castle.Components.DictionaryAdapter.Tests using System; using System.ComponentModel; - public abstract class InfrastructureStub : INotifyPropertyChanged, IEditableObject -#if FEATURE_IDATAERRORINFO - , IDataErrorInfo -#endif + public abstract class InfrastructureStub : INotifyPropertyChanged, IEditableObject, IDataErrorInfo { public event PropertyChangedEventHandler PropertyChanged; diff --git a/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/MemberwiseEqualityHashCodeStrategyTestCase.cs b/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/MemberwiseEqualityHashCodeStrategyTestCase.cs index a449fc0302..186f61129c 100644 --- a/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/MemberwiseEqualityHashCodeStrategyTestCase.cs +++ b/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/MemberwiseEqualityHashCodeStrategyTestCase.cs @@ -14,7 +14,6 @@ namespace Castle.Components.DictionaryAdapter.Tests { -#if FEATURE_DICTIONARYADAPTER_XML using System; using System.Collections; using System.Collections.Generic; @@ -144,5 +143,4 @@ private T GetXmlAdapter() where T : class .AddBehaviors(XmlMetadataBehavior.Default, xpath, new MemberwiseEqualityHashCodeStrategy())); } } -#endif } diff --git a/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/Xml/XmlAdapterAcceptanceTestCase.cs b/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/Xml/XmlAdapterAcceptanceTestCase.cs index 83669616d9..2cebd7b897 100644 --- a/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/Xml/XmlAdapterAcceptanceTestCase.cs +++ b/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/Xml/XmlAdapterAcceptanceTestCase.cs @@ -815,7 +815,6 @@ public void Can_Reassign_Arrays() CollectionAssert.AreEqual(new[] { "Alpha", "Beta" }, season.Tags); } -#if FEATURE_BINDINGLIST [Test] public void Can_Reassign_Lists() { @@ -839,7 +838,6 @@ public void Can_Reassign_Lists() season.Teams = newTeams; Assert.AreEqual(1, season.Teams.Count); } -#endif [Test] public void Can_Remove_Properties() diff --git a/src/Castle.Core.Tests/DynamicProxy.Tests/BaseTestCaseTestCase.cs b/src/Castle.Core.Tests/DynamicProxy.Tests/BaseTestCaseTestCase.cs index 037c817a71..fef48e9322 100644 --- a/src/Castle.Core.Tests/DynamicProxy.Tests/BaseTestCaseTestCase.cs +++ b/src/Castle.Core.Tests/DynamicProxy.Tests/BaseTestCaseTestCase.cs @@ -70,7 +70,7 @@ private void FindVerificationErrors() MethodBuilder invalidMethod = invalidType.DefineMethod("InvalidMethod", MethodAttributes.Public); invalidMethod.GetILGenerator().Emit(OpCodes.Ldnull); // missing RET statement - invalidType.CreateTypeInfo().AsType(); + invalidType.CreateTypeInfo(); if (!IsVerificationDisabled) { diff --git a/src/Castle.Core.Tests/DynamicProxy.Tests/ClassProxyConstructorsTestCase.cs b/src/Castle.Core.Tests/DynamicProxy.Tests/ClassProxyConstructorsTestCase.cs index 24c096c4ba..4ed587b400 100644 --- a/src/Castle.Core.Tests/DynamicProxy.Tests/ClassProxyConstructorsTestCase.cs +++ b/src/Castle.Core.Tests/DynamicProxy.Tests/ClassProxyConstructorsTestCase.cs @@ -121,11 +121,7 @@ public void Cannot_proxy_inaccessible_class() { var ex = Assert.Throws(() => generator.CreateClassProxy(typeof(PrivateClass), new IInterceptor[0])); -#if FEATURE_GET_REFERENCED_ASSEMBLIES var expectedMessage = "Can not create proxy for type Castle.DynamicProxy.Tests.ClassProxyConstructorsTestCase+PrivateClass because it is not accessible. Make it public, or internal and mark your assembly with [assembly: InternalsVisibleTo(InternalsVisible.ToDynamicProxyGenAssembly2)] attribute, because assembly Castle.Core.Tests is strong-named."; -#else - var expectedMessage = "Can not create proxy for type Castle.DynamicProxy.Tests.ClassProxyConstructorsTestCase+PrivateClass because it is not accessible. Make it public, or internal and mark your assembly with [assembly: InternalsVisibleTo(\"DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7\")] attribute, because assembly Castle.Core.Tests is strong-named."; -#endif Assert.AreEqual(expectedMessage, ex.Message); } diff --git a/src/Castle.Core.Tests/DynamicProxy.Tests/ParameterDefaultValuesTestCase.cs b/src/Castle.Core.Tests/DynamicProxy.Tests/ParameterDefaultValuesTestCase.cs index 27f3ccf872..dd810c467d 100644 --- a/src/Castle.Core.Tests/DynamicProxy.Tests/ParameterDefaultValuesTestCase.cs +++ b/src/Castle.Core.Tests/DynamicProxy.Tests/ParameterDefaultValuesTestCase.cs @@ -235,9 +235,7 @@ private void AssertParameter(Type type, string methodName) var expectedDefaultValue = method.Invoke(Activator.CreateInstance(type), new object[1]); var proxiedParameter = GetProxiedParameter(type, methodName); -#if DOTNET45 Assert.True(proxiedParameter.HasDefaultValue); -#endif Assert.AreEqual(expectedDefaultValue, proxiedParameter.DefaultValue); } diff --git a/src/Castle.Core.Tests/DynamicProxy.Tests/ProxyUtilTestCase.cs b/src/Castle.Core.Tests/DynamicProxy.Tests/ProxyUtilTestCase.cs index f0cc7b4f7c..165bfff8e6 100644 --- a/src/Castle.Core.Tests/DynamicProxy.Tests/ProxyUtilTestCase.cs +++ b/src/Castle.Core.Tests/DynamicProxy.Tests/ProxyUtilTestCase.cs @@ -122,11 +122,7 @@ public void IsAccessibleWithReason_Inaccessible_Method_Populates_ReasonMethodIsN string reason; ProxyUtil.IsAccessible(method, out reason); -#if FEATURE_GET_REFERENCED_ASSEMBLIES var expectedReason = "Can not create proxy for method Void " + method.Name + "() because it or its declaring type is not accessible. Make it public, or internal and mark your assembly with [assembly: InternalsVisibleTo(InternalsVisible.ToDynamicProxyGenAssembly2)] attribute, because assembly Castle.Core.Tests is strong-named."; -#else - var expectedReason = "Can not create proxy for method Void " + method.Name + "() because it or its declaring type is not accessible. Make it public, or internal and mark your assembly with [assembly: InternalsVisibleTo(\"DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7\")] attribute, because assembly Castle.Core.Tests is strong-named."; -#endif Assert.AreEqual(expectedReason, reason); } diff --git a/src/Castle.Core.Tests/DynamicProxy.Tests/RhinoMocksTestCase.cs b/src/Castle.Core.Tests/DynamicProxy.Tests/RhinoMocksTestCase.cs index 452aa58b1d..59462d65cf 100644 --- a/src/Castle.Core.Tests/DynamicProxy.Tests/RhinoMocksTestCase.cs +++ b/src/Castle.Core.Tests/DynamicProxy.Tests/RhinoMocksTestCase.cs @@ -105,13 +105,11 @@ public void CanGetCorrectValuesFromIntPtr() Assert.AreEqual(IntPtr.Zero, buffer); } -#if FEATURE_TEST_DATASET [Test] public void CanProxyDataSet() { generator.CreateClassProxy(typeof (DataSet), new Type[0], new StandardInterceptor()); } -#endif private Type iHaveMethodWithModOptsType; @@ -179,7 +177,7 @@ public void GenerateDynamicAssemblyHavingModopts() }, callingConvention: CallingConventions.Standard); - var iHaveMethodWithModOptsType = typeBuilder.CreateTypeInfo().AsType(); + var iHaveMethodWithModOptsType = typeBuilder.CreateTypeInfo(); #if FEATURE_ASSEMBLYBUILDER_SAVE && FEATURE_TEST_PEVERIFY // Let's persist and PE-verify the dynamic assembly before it gets used in tests: diff --git a/src/Castle.Core.Tests/Services.Logging.Tests/SerilogIntegration/SerilogTests.cs b/src/Castle.Core.Tests/Services.Logging.Tests/SerilogIntegration/SerilogTests.cs index e606a251c3..8dbed195d3 100644 --- a/src/Castle.Core.Tests/Services.Logging.Tests/SerilogIntegration/SerilogTests.cs +++ b/src/Castle.Core.Tests/Services.Logging.Tests/SerilogIntegration/SerilogTests.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_TEST_SERILOGINTEGRATION - namespace Castle.Services.Logging.SerilogIntegration.Tests { using System; @@ -195,5 +193,3 @@ public void should_log_with_source_context() } } } - -#endif \ No newline at end of file diff --git a/src/Castle.Core/Compatibility/NetCoreReflectionExtensions.cs b/src/Castle.Core/Compatibility/NetCoreReflectionExtensions.cs deleted file mode 100644 index a894acf1d1..0000000000 --- a/src/Castle.Core/Compatibility/NetCoreReflectionExtensions.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2004-2015 Castle Project - http://www.castleproject.org/ -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#if FEATURE_NETCORE_REFLECTION_API - -namespace System.Reflection -{ - using System.Linq; - - internal static class NetCoreReflectionExtensions - { - // .NET Core needs to expose GetConstructor that takes both flags and parameter types, - // because we need to get the private constructor for a type with multiple constructors. - // It should also provide the same for GetMethod, which luckily we don't need yet. - public static ConstructorInfo GetConstructor(this Type type, BindingFlags bindingAttr, object binder, Type[] types, object[] modifiers) - { - if (binder != null) throw new NotSupportedException("Parameter binder must be null."); - if (modifiers != null) throw new NotSupportedException("Parameter modifiers must be null."); - - return type.GetConstructors(bindingAttr) - .SingleOrDefault(ctor => ctor.GetParameters().Select(p => p.ParameterType).SequenceEqual(types)); - } - } -} - -#endif \ No newline at end of file diff --git a/src/Castle.Core/Compatibility/TypeBuilderExtensions.cs b/src/Castle.Core/Compatibility/TypeBuilderExtensions.cs deleted file mode 100644 index 94e8cbaac5..0000000000 --- a/src/Castle.Core/Compatibility/TypeBuilderExtensions.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright 2004-2015 Castle Project - http://www.castleproject.org/ -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#if FEATURE_NETSTANDARD2_COMPATIBILITY - -namespace System.Reflection -{ - using System.Reflection.Emit; - - // This allows us to use the new reflection API while still supporting .NET 4.0. - internal static class TypeBuilderExtensions - { - // TypeBuilder and GenericTypeParameterBuilder no longer inherit from Type but TypeInfo, - // so there is now an AsType method to get the Type which we are providing here to shim to itself. - public static Type AsType(this TypeBuilder builder) - { - return builder; - } - - public static Type AsType(this GenericTypeParameterBuilder builder) - { - return builder; - } - } -} - -#endif \ No newline at end of file diff --git a/src/Castle.Core/Components.DictionaryAdapter/Attributes/OnDemandAttribute.cs b/src/Castle.Core/Components.DictionaryAdapter/Attributes/OnDemandAttribute.cs index a2311e07b5..509576ea26 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Attributes/OnDemandAttribute.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Attributes/OnDemandAttribute.cs @@ -118,13 +118,11 @@ public object GetPropertyValue(IDictionaryAdapter dictionaryAdapter, string key, { using (dictionaryAdapter.SuppressNotificationsBlock()) { -#if FEATURE_ISUPPORTINITIALIZE if (storedValue is ISupportInitialize) { ((ISupportInitialize)storedValue).BeginInit(); ((ISupportInitialize)storedValue).EndInit(); } -#endif if (initializer != null) { initializer.Initialize(dictionaryAdapter, storedValue); @@ -162,24 +160,15 @@ private static Type GetInferredType(IDictionaryAdapter dictionaryAdapter, Proper var genericDef = type.GetGenericTypeDefinition(); var genericArg = type.GetGenericArguments()[0]; bool isBindingList = -#if !FEATURE_BINDINGLIST - false; -#else genericDef == typeof(System.ComponentModel.BindingList<>); -#endif if (isBindingList || genericDef == typeof(List<>)) { if (dictionaryAdapter.CanEdit) { -#if !FEATURE_BINDINGLIST - collectionType = typeof(EditableList<>); -#else collectionType = isBindingList ? typeof(EditableBindingList<>) : typeof(EditableList<>); -#endif } -#if FEATURE_BINDINGLIST if (isBindingList && genericArg.GetTypeInfo().IsInterface) { Func addNew = () => dictionaryAdapter.Create(genericArg); @@ -187,7 +176,6 @@ private static Type GetInferredType(IDictionaryAdapter dictionaryAdapter, Proper typeof(BindingListInitializer<>).MakeGenericType(genericArg), null, addNew, null, null, null); } -#endif } else if (genericDef == typeof(IList<>) || genericDef == typeof(ICollection<>)) { diff --git a/src/Castle.Core/Components.DictionaryAdapter/Attributes/XPathAttribute.cs b/src/Castle.Core/Components.DictionaryAdapter/Attributes/XPathAttribute.cs index 09b91a0900..9b93c9e3f3 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Attributes/XPathAttribute.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Attributes/XPathAttribute.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -56,4 +55,3 @@ public CompiledXPath SetPath public bool Nullable { get; set; } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Attributes/XPathFunctionAttribute.cs b/src/Castle.Core/Components.DictionaryAdapter/Attributes/XPathFunctionAttribute.cs index 84252e5ac2..ad04218d0d 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Attributes/XPathFunctionAttribute.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Attributes/XPathFunctionAttribute.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -37,4 +36,3 @@ public static readonly XPathResultType[] public abstract object Invoke(XsltContext context, object[] args, XPathNavigator node); } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Attributes/XPathVariableAttribute.cs b/src/Castle.Core/Components.DictionaryAdapter/Attributes/XPathVariableAttribute.cs index 07e5be699c..a37e8dddc3 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Attributes/XPathVariableAttribute.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Attributes/XPathVariableAttribute.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -33,4 +32,3 @@ protected XPathVariableAttribute() { } public abstract object Evaluate(XsltContext context); } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/DictionaryAdapterBase.Validate.cs b/src/Castle.Core/Components.DictionaryAdapter/DictionaryAdapterBase.Validate.cs index b51c963665..5184381df2 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/DictionaryAdapterBase.Validate.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/DictionaryAdapterBase.Validate.cs @@ -36,7 +36,6 @@ public bool IsValid } } -#if FEATURE_IDATAERRORINFO public string Error { get @@ -67,7 +66,6 @@ public string this[String columnName] return String.Empty; } } -#endif public DictionaryValidateGroup ValidateGroups(params object[] groups) { diff --git a/src/Castle.Core/Components.DictionaryAdapter/DictionaryAdapterBase.cs b/src/Castle.Core/Components.DictionaryAdapter/DictionaryAdapterBase.cs index 2272366acf..814e211399 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/DictionaryAdapterBase.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/DictionaryAdapterBase.cs @@ -27,11 +27,7 @@ public DictionaryAdapterBase(DictionaryAdapterInstance instance) CanEdit = typeof(IEditableObject).IsAssignableFrom(Meta.Type); CanNotify = typeof(INotifyPropertyChanged).IsAssignableFrom(Meta.Type); -#if FEATURE_IDATAERRORINFO CanValidate = typeof(IDataErrorInfo).IsAssignableFrom(Meta.Type); -#else - CanValidate = false; -#endif Initialize(); } diff --git a/src/Castle.Core/Components.DictionaryAdapter/DictionaryAdapterFactory.cs b/src/Castle.Core/Components.DictionaryAdapter/DictionaryAdapterFactory.cs index 8b85b5a1b9..09a06f2f47 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/DictionaryAdapterFactory.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/DictionaryAdapterFactory.cs @@ -25,9 +25,7 @@ namespace Castle.Components.DictionaryAdapter using System.Threading; using System.Diagnostics; -#if FEATURE_DICTIONARYADAPTER_XML using Castle.Components.DictionaryAdapter.Xml; -#endif using Castle.Core.Internal; /// @@ -84,7 +82,6 @@ public object GetAdapter(Type type, NameValueCollection nameValues) return GetAdapter(type, new NameValueCollectionAdapter(nameValues)); } -#if FEATURE_DICTIONARYADAPTER_XML /// public T GetAdapter(System.Xml.XmlNode xmlNode) { @@ -99,7 +96,6 @@ public object GetAdapter(Type type, System.Xml.XmlNode xmlNode) .AddBehavior(XmlMetadataBehavior.Default) .AddBehavior(xml)); } -#endif /// public DictionaryAdapterMeta GetAdapterMeta(Type type) @@ -200,7 +196,7 @@ private DictionaryAdapterMeta CreateAdapterMeta(Type type, TypeBuilder typeBuild CreateAdapterProperty(typeBuilder, property.Value); } - var implementation = typeBuilder.CreateTypeInfo().AsType(); + var implementation = typeBuilder.CreateTypeInfo(); var creator = (Func)implementation .GetTypeInfo().GetDeclaredMethod("__Create") .CreateDelegate(typeof(Func)); @@ -490,9 +486,7 @@ private static void AddDefaultGetter(PropertyDescriptor descriptor) { typeof (IEditableObject), typeof (IDictionaryEdit), typeof (IChangeTracking), typeof (IRevertibleChangeTracking), typeof (IDictionaryNotify), -#if FEATURE_IDATAERRORINFO typeof (IDataErrorInfo), -#endif typeof (IDictionaryValidate), typeof (IDictionaryAdapter) }; diff --git a/src/Castle.Core/Components.DictionaryAdapter/DictionaryValidateGroup.cs b/src/Castle.Core/Components.DictionaryAdapter/DictionaryValidateGroup.cs index d17bb9004a..1f81ef9008 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/DictionaryValidateGroup.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/DictionaryValidateGroup.cs @@ -57,14 +57,9 @@ public bool CanValidate public bool IsValid { -#if FEATURE_IDATAERRORINFO get { return string.IsNullOrEmpty(Error); } -#else - get { throw new NotSupportedException("IDataErrorInfo is not supported on this runtime."); } -#endif } -#if FEATURE_IDATAERRORINFO public string Error { get @@ -86,7 +81,6 @@ public string this[string columnName] return string.Empty; } } -#endif public DictionaryValidateGroup ValidateGroups(params object[] groups) { diff --git a/src/Castle.Core/Components.DictionaryAdapter/IDictionaryAdapterFactory.cs b/src/Castle.Core/Components.DictionaryAdapter/IDictionaryAdapterFactory.cs index bf6a71527f..66ce7989ce 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/IDictionaryAdapterFactory.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/IDictionaryAdapterFactory.cs @@ -80,7 +80,6 @@ public interface IDictionaryAdapterFactory /// object GetAdapter(Type type, NameValueCollection nameValues); -#if FEATURE_DICTIONARYADAPTER_XML /// /// Gets a typed adapter bound to the . /// @@ -102,7 +101,6 @@ public interface IDictionaryAdapterFactory /// The type represented by T must be an interface with properties. /// object GetAdapter(Type type, System.Xml.XmlNode xmlNode); -#endif /// /// Gets the associated with the type. diff --git a/src/Castle.Core/Components.DictionaryAdapter/IDictionaryValidate.cs b/src/Castle.Core/Components.DictionaryAdapter/IDictionaryValidate.cs index ad081914a7..0e428ea28b 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/IDictionaryValidate.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/IDictionaryValidate.cs @@ -20,10 +20,7 @@ namespace Castle.Components.DictionaryAdapter /// /// Contract for validating Dictionary adapter. /// - public interface IDictionaryValidate -#if FEATURE_IDATAERRORINFO - : IDataErrorInfo -#endif + public interface IDictionaryValidate : IDataErrorInfo { bool CanValidate { get; set; } diff --git a/src/Castle.Core/Components.DictionaryAdapter/Util/BindingList.cs b/src/Castle.Core/Components.DictionaryAdapter/Util/BindingList.cs index d1093f3c2d..a4fa86caf7 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Util/BindingList.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Util/BindingList.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_BINDINGLIST // Until support for other platforms is verified namespace Castle.Components.DictionaryAdapter { using System; @@ -324,4 +323,3 @@ public void ResetItem(int index) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Util/BindingListInitializer.cs b/src/Castle.Core/Components.DictionaryAdapter/Util/BindingListInitializer.cs index e75fc88ff7..5c8a9f6edc 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Util/BindingListInitializer.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Util/BindingListInitializer.cs @@ -14,7 +14,6 @@ namespace Castle.Components.DictionaryAdapter { -#if FEATURE_BINDINGLIST using System; using System.ComponentModel; @@ -112,6 +111,4 @@ public void Dispose() } } } - -#endif } diff --git a/src/Castle.Core/Components.DictionaryAdapter/Util/EditableBindingList.cs b/src/Castle.Core/Components.DictionaryAdapter/Util/EditableBindingList.cs index a7bef709c1..fc5f9a0180 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Util/EditableBindingList.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Util/EditableBindingList.cs @@ -14,7 +14,6 @@ namespace Castle.Components.DictionaryAdapter { -#if FEATURE_BINDINGLIST using System.Collections.Generic; using System.ComponentModel; @@ -92,5 +91,4 @@ public void RejectChanges() CancelEdit(); } } -#endif } diff --git a/src/Castle.Core/Components.DictionaryAdapter/Util/IBindingList.cs b/src/Castle.Core/Components.DictionaryAdapter/Util/IBindingList.cs index 5463588cc4..156f25ef5f 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Util/IBindingList.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Util/IBindingList.cs @@ -18,10 +18,7 @@ namespace Castle.Components.DictionaryAdapter using System.ComponentModel; using SysPropertyDescriptor = System.ComponentModel.PropertyDescriptor; - public interface IBindingList : IList -#if FEATURE_BINDINGLIST - , IBindingListSource, ICancelAddNew, IRaiseItemChangedEvents -#endif + public interface IBindingList : IList, IBindingListSource, ICancelAddNew, IRaiseItemChangedEvents { bool AllowNew { get; } bool AllowEdit { get; } @@ -31,21 +28,15 @@ public interface IBindingList : IList bool SupportsSorting { get; } bool IsSorted { get; } SysPropertyDescriptor SortProperty { get; } -#if FEATURE_LISTSORT ListSortDirection SortDirection { get; } -#endif -#if FEATURE_BINDINGLIST event ListChangedEventHandler ListChanged; -#endif T AddNew (); int Find (SysPropertyDescriptor property, object key); void AddIndex (SysPropertyDescriptor property); void RemoveIndex(SysPropertyDescriptor property); -#if FEATURE_LISTSORT void ApplySort (SysPropertyDescriptor property, ListSortDirection direction); -#endif void RemoveSort (); } } diff --git a/src/Castle.Core/Components.DictionaryAdapter/Util/IBindingListSource.cs b/src/Castle.Core/Components.DictionaryAdapter/Util/IBindingListSource.cs index 993082e7e1..2ed30fa027 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Util/IBindingListSource.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Util/IBindingListSource.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_BINDINGLIST namespace Castle.Components.DictionaryAdapter { using System.ComponentModel; @@ -22,4 +21,3 @@ public interface IBindingListSource IBindingList AsBindingList { get; } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Util/ListProjection.cs b/src/Castle.Core/Components.DictionaryAdapter/Util/ListProjection.cs index b0e0f51895..ce19eef9ed 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Util/ListProjection.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Util/ListProjection.cs @@ -27,11 +27,7 @@ namespace Castle.Components.DictionaryAdapter [DebuggerTypeProxy(typeof(ListProjectionDebugView<>))] public class ListProjection : IBindingList, // Castle -#if !FEATURE_BINDINGLIST - IList, -#else IBindingList, // System -#endif IEditableObject, IRevertibleChangeTracking, ICollectionProjection, @@ -41,11 +37,9 @@ public class ListProjection : private int addNewIndex = NoIndex; private int addedIndex = NoIndex; private int suspendLevel = 0; -#if FEATURE_BINDINGLIST private int changedIndex = NoIndex; private PropertyChangedEventHandler propertyHandler; private static PropertyDescriptorCollection itemProperties; -#endif private const int NoIndex = -1; public ListProjection(ICollectionAdapter adapter) @@ -62,12 +56,10 @@ public int Count get { return adapter.Count; } } -#if FEATURE_BINDINGLIST public IBindingList AsBindingList { get { return this; } } -#endif public ICollectionAdapter Adapter { @@ -88,11 +80,8 @@ public IEqualityComparer Comparer bool IBindingList.SupportsSorting { get { return false; } } bool IBindingList.IsSorted { get { return false; } } SysPropertyDescriptor IBindingList.SortProperty { get { return null; } } -#if FEATURE_LISTSORT ListSortDirection IBindingList.SortDirection { get { return ListSortDirection.Ascending; } } -#endif -#if FEATURE_BINDINGLIST // System IBindingList Properties bool IBindingList.AllowEdit { get { return true; } } bool IBindingList.AllowNew { get { return true; } } @@ -106,7 +95,6 @@ public IEqualityComparer Comparer // Other Binding Properties bool IRaiseItemChangedEvents.RaisesItemChangedEvents { get { return true; } } -#endif // IList Properties bool IList.IsFixedSize { get { return false; } } @@ -229,12 +217,10 @@ public virtual T AddNew() return item; } -#if FEATURE_BINDINGLIST object IBindingList.AddNew() { return AddNew(); } -#endif public bool IsNew(int index) { @@ -427,13 +413,6 @@ public void RejectChanges() CancelEdit(); } -#if !FEATURE_BINDINGLIST - [Conditional("NOP")] - private void AttachPropertyChanged(T value) { } - - [Conditional("NOP")] - private void DetachPropertyChanged(T value) { } -#else private void AttachPropertyChanged(T value) { if (typeof(T).GetTypeInfo().IsValueType) @@ -528,9 +507,7 @@ private static SysPropertyDescriptor GetChangedProperty(PropertyChangedEventArgs return itemProperties.Find(e.PropertyName, true); } -#endif -#if FEATURE_BINDINGLIST public event ListChangedEventHandler ListChanged; protected virtual void OnListChanged(ListChangedEventArgs args) { @@ -538,22 +515,7 @@ protected virtual void OnListChanged(ListChangedEventArgs args) if (handler != null) handler(this, args); } -#endif - -#if !FEATURE_BINDINGLIST - protected enum ListChangedType - { - ItemAdded, - ItemChanged, - ItemDeleted - } - - [Conditional("NOP")] - protected void NotifyListChanged(ListChangedType type, int index) { } - [Conditional("NOP")] - protected void NotifyListReset() { } -#else protected void NotifyListChanged(ListChangedType type, int index) { if (EventsEnabled) @@ -565,7 +527,6 @@ protected void NotifyListReset() if (EventsEnabled) OnListChanged(new ListChangedEventArgs(ListChangedType.Reset, -1)); } -#endif public bool EventsEnabled { @@ -594,61 +555,49 @@ void IBindingList.AddIndex(SysPropertyDescriptor property) // Do nothing } -#if FEATURE_BINDINGLIST void IBindingList.AddIndex(SysPropertyDescriptor property) { // Do nothing } -#endif void IBindingList.RemoveIndex(SysPropertyDescriptor property) { // Do nothing } -#if FEATURE_BINDINGLIST void IBindingList.RemoveIndex(SysPropertyDescriptor property) { // Do nothing } -#endif int IBindingList.Find(SysPropertyDescriptor property, object key) { throw new NotSupportedException(); } -#if FEATURE_BINDINGLIST int IBindingList.Find(SysPropertyDescriptor property, object key) { throw new NotSupportedException(); } -#endif -#if FEATURE_LISTSORT void IBindingList.ApplySort(SysPropertyDescriptor property, ListSortDirection direction) { throw new NotSupportedException(); } -#endif -#if FEATURE_BINDINGLIST void IBindingList.ApplySort(SysPropertyDescriptor property, ListSortDirection direction) { throw new NotSupportedException(); } -#endif void IBindingList.RemoveSort() { throw new NotSupportedException(); } -#if FEATURE_BINDINGLIST void IBindingList.RemoveSort() { throw new NotSupportedException(); } -#endif } } diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/DefaultXmlReferenceFormat.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/DefaultXmlReferenceFormat.cs index fcadeed833..3a3ddf29e4 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/DefaultXmlReferenceFormat.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/DefaultXmlReferenceFormat.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -64,4 +63,3 @@ private static readonly IFormatProvider Culture = CultureInfo.InvariantCulture; } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/IXmlReferenceFormat.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/IXmlReferenceFormat.cs index 692df72087..7f0ffaaa21 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/IXmlReferenceFormat.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/IXmlReferenceFormat.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { public interface IXmlReferenceFormat @@ -27,4 +26,3 @@ public interface IXmlReferenceFormat void ClearReference (IXmlNode node); } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/XmlAdapter.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/XmlAdapter.cs index 6e912f9ee4..6034488c03 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/XmlAdapter.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/XmlAdapter.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -503,4 +502,3 @@ public bool HasProperty(string propertyName, IDictionaryAdapter dictionaryAdapte } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/XmlMetadata.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/XmlMetadata.cs index bfd110d8cc..789623351b 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/XmlMetadata.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/XmlMetadata.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -384,4 +383,3 @@ private const CursorFlags RootFlags | CursorFlags.Mutable; } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/XmlMetadataBehavior.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/XmlMetadataBehavior.cs index d353cf82f7..e723d45945 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/XmlMetadataBehavior.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/XmlMetadataBehavior.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System.Collections.Generic; @@ -55,4 +54,3 @@ bool IDictionaryMetaInitializer.ShouldHaveBehavior(object behavior) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/XmlReferenceManager.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/XmlReferenceManager.cs index 082decd446..1e09b58a5f 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/XmlReferenceManager.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/XmlReferenceManager.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -583,4 +582,3 @@ private static Exception IdNotFoundError(int id) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/IXmlAccessor.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/IXmlAccessor.cs index cabb10fffc..6ed666fde8 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/IXmlAccessor.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/IXmlAccessor.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -31,4 +30,3 @@ public interface IXmlAccessor IXmlCollectionAccessor GetCollectionAccessor(Type itemType); } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/IXmlBehaviorSemantics.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/IXmlBehaviorSemantics.cs index 63f99ae938..ef23ed99b2 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/IXmlBehaviorSemantics.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/IXmlBehaviorSemantics.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -24,4 +23,3 @@ public interface IXmlBehaviorSemantics Type GetClrType (T behavior); } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/IXmlCollectionAccessor.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/IXmlCollectionAccessor.cs index 7fcb93102c..726ed18cc5 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/IXmlCollectionAccessor.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/IXmlCollectionAccessor.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -24,4 +23,3 @@ public interface IXmlCollectionAccessor : IXmlAccessor void GetCollectionItems (IXmlNode parentNode, IDictionaryAdapter parentObject, XmlReferenceManager references, IList values); } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/IXmlPropertyAccessor.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/IXmlPropertyAccessor.cs index e8832a8c99..44eb74cdc9 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/IXmlPropertyAccessor.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/IXmlPropertyAccessor.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -23,4 +22,3 @@ public interface IXmlPropertyAccessor : IXmlAccessor void SetPropertyValue(IXmlNode parentNode, IDictionaryAdapter parentObject, XmlReferenceManager references, object oldValue, ref object newValue); } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XPathBehaviorAccessor.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XPathBehaviorAccessor.cs index 0348ea419f..693745c857 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XPathBehaviorAccessor.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XPathBehaviorAccessor.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -219,4 +218,3 @@ public override IXmlCollectionAccessor GetCollectionAccessor(Type itemType) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlAccessor.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlAccessor.cs index 5ffe4d28a8..75b4a04b51 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlAccessor.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlAccessor.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -344,4 +343,3 @@ protected enum States } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlAccessorFactory.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlAccessorFactory.cs index 7ed4f07c8f..d627bae3a1 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlAccessorFactory.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlAccessorFactory.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -21,4 +20,3 @@ public delegate TAccessor XmlAccessorFactory(string name, Type type, IXmlContext context) where TAccessor : XmlAccessor; } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlArrayBehaviorAccessor.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlArrayBehaviorAccessor.cs index eb0ca26861..3328ccb955 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlArrayBehaviorAccessor.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlArrayBehaviorAccessor.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -130,4 +129,3 @@ private const CursorFlags CollectionItemFlags = CursorFlags.Elements | CursorFlags.Multiple; } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlAttributeBehaviorAccessor.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlAttributeBehaviorAccessor.cs index 2d17c6b77e..fa60c57dc7 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlAttributeBehaviorAccessor.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlAttributeBehaviorAccessor.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -63,4 +62,3 @@ public override IXmlCursor SelectCollectionNode(IXmlNode node, bool mutable) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlDefaultBehaviorAccessor.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlDefaultBehaviorAccessor.cs index fc9dd28cd9..88c8e7c2bf 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlDefaultBehaviorAccessor.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlDefaultBehaviorAccessor.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -49,4 +48,3 @@ public override IXmlCursor SelectCollectionItems(IXmlNode node, bool mutable) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlElementBehaviorAccessor.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlElementBehaviorAccessor.cs index 8ac8460448..1de4501a73 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlElementBehaviorAccessor.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlElementBehaviorAccessor.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -121,4 +120,3 @@ public override IXmlCursor SelectCollectionItems(IXmlNode node, bool mutable) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlIgnoreBehaviorAccessor.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlIgnoreBehaviorAccessor.cs index cfdb4d8eeb..26797b4940 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlIgnoreBehaviorAccessor.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlIgnoreBehaviorAccessor.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -110,4 +109,3 @@ public void AddFunction(XPathFunctionAttribute attribute) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlNodeAccessor.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlNodeAccessor.cs index 8a676433ad..a61d4a30a0 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlNodeAccessor.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlNodeAccessor.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -222,4 +221,3 @@ protected static readonly StringComparer NameComparer = StringComparer.OrdinalIgnoreCase; } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlSelfAccessor.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlSelfAccessor.cs index 0e32eeeb2a..5391d1f948 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlSelfAccessor.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Accessors/XmlSelfAccessor.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -36,4 +35,3 @@ public override IXmlCursor SelectPropertyNode(IXmlNode parentNode, bool mutable) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Collections/XmlCollectionAdapter.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Collections/XmlCollectionAdapter.cs index ed2abc94ec..ad54a2bfe8 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Collections/XmlCollectionAdapter.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Collections/XmlCollectionAdapter.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -257,4 +256,3 @@ public void DropSnapshot() } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Collections/XmlCollectionItem.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Collections/XmlCollectionItem.cs index 467c6caa8b..22d01a22c4 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Collections/XmlCollectionItem.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Collections/XmlCollectionItem.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { internal struct XmlCollectionItem @@ -40,4 +39,3 @@ public XmlCollectionItem WithValue(T value) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Collections/XmlNodeList.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Collections/XmlNodeList.cs index 8273bc3f40..effeec3173 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Collections/XmlNodeList.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Collections/XmlNodeList.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { internal class XmlNodeList : ListProjection, IXmlNodeSource @@ -40,4 +39,3 @@ public IXmlNode Node } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Collections/XmlNodeSet.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Collections/XmlNodeSet.cs index 3be94aa45f..e24d14dd57 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Collections/XmlNodeSet.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Collections/XmlNodeSet.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { internal class XmlNodeSet : SetProjection, IXmlNodeSource @@ -40,4 +39,3 @@ public IXmlNode Node } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/CursorFlags.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/CursorFlags.cs index a642189344..42d942c76a 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/CursorFlags.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/CursorFlags.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -56,4 +55,3 @@ public static bool SupportsMutation(this CursorFlags flags) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/IXmlContext.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/IXmlContext.cs index cc929af0ef..918e060a36 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/IXmlContext.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/IXmlContext.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -32,4 +31,3 @@ public interface IXmlContext : IXmlNamespaceSource void Enlist(CompiledXPath path); } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/IXmlCursor.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/IXmlCursor.cs index 9d1b9b1a70..3847ca4bae 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/IXmlCursor.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/IXmlCursor.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -29,4 +28,3 @@ public interface IXmlCursor : IXmlIterator void RemoveAllNext(); } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/IXmlIterator.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/IXmlIterator.cs index fa3006a4b7..e5a0dab7b8 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/IXmlIterator.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/IXmlIterator.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -22,4 +21,3 @@ public interface IXmlIterator : IXmlNode bool MoveNext(); } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/IXmlNamespaceSource.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/IXmlNamespaceSource.cs index da700a24e6..2c1940baea 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/IXmlNamespaceSource.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/IXmlNamespaceSource.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { public interface IXmlNamespaceSource @@ -21,4 +20,3 @@ public interface IXmlNamespaceSource string GetAttributePrefix(IXmlNode node, string namespaceUri); } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/IXmlNode.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/IXmlNode.cs index 1eb24e3161..933983472d 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/IXmlNode.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/IXmlNode.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -54,4 +53,3 @@ public interface IXmlNode : IXmlKnownType, IRealizableSource, IVirtual XmlWriter WriteChildren(); } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/IXmlNodeSource.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/IXmlNodeSource.cs index 9b61b5fb3d..a03616e7b6 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/IXmlNodeSource.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/IXmlNodeSource.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { public interface IXmlNodeSource @@ -20,4 +19,3 @@ public interface IXmlNodeSource IXmlNode Node { get; } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlContext.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlContext.cs index 39650d9f1e..07c0d2c6a0 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlContext.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlContext.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -61,4 +60,3 @@ public IEnumerable GetIncludedTypes(Type baseType) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlContextBase.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlContextBase.cs index 3f1e6a66d5..47640b10a2 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlContextBase.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlContextBase.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -286,4 +285,3 @@ public void Enlist(CompiledXPath path) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlExtensions.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlExtensions.cs index d22228073c..6b17664698 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlExtensions.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlExtensions.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -45,4 +44,3 @@ public static void CopyTo(this IXmlNode source, IXmlNode target) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlName.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlName.cs index 06b690d787..f1d8fa51e7 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlName.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlName.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -99,4 +98,3 @@ public static XmlName ParseQName(string text) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlNameComparer.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlNameComparer.cs index a6648ba84b..2930c1182b 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlNameComparer.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlNameComparer.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -51,4 +50,3 @@ public bool Equals(XmlName x, XmlName y) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlNodeBase.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlNodeBase.cs index f01465e004..e7b0f6bb95 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlNodeBase.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlNodeBase.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -80,4 +79,3 @@ public virtual event EventHandler Realized } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlPositionComparer.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlPositionComparer.cs index 343ac7b4db..7cddf8d9a4 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlPositionComparer.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlPositionComparer.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { public class XmlPositionComparer @@ -93,4 +92,3 @@ private bool ConsumeStep() } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlSelfCursor.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlSelfCursor.cs index fcf830f97a..bdf0b31722 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlSelfCursor.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/Base/XmlSelfCursor.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -249,4 +248,3 @@ public void RemoveAllNext() } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/SystemXml/SysXmlCursor.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/SystemXml/SysXmlCursor.cs index 5ce0930489..bf6ebee6ee 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/SystemXml/SysXmlCursor.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/SystemXml/SysXmlCursor.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -565,4 +564,3 @@ protected static readonly StringComparer DefaultComparer = StringComparer.OrdinalIgnoreCase; } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/SystemXml/SysXmlExtensions.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/SystemXml/SysXmlExtensions.cs index 3b416e23cd..1166d8868a 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/SystemXml/SysXmlExtensions.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/SystemXml/SysXmlExtensions.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -56,4 +55,3 @@ public static bool IsXsiType(this XmlAttribute attribute) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/SystemXml/SysXmlNode.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/SystemXml/SysXmlNode.cs index 0c2d568845..9400ca21b3 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/SystemXml/SysXmlNode.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/SystemXml/SysXmlNode.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -297,4 +296,3 @@ private void ClearChildren() } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/SystemXml/SysXmlSubtreeIterator.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/SystemXml/SysXmlSubtreeIterator.cs index 625eba2b2f..0042cdd8b8 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/SystemXml/SysXmlSubtreeIterator.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/SystemXml/SysXmlSubtreeIterator.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -95,4 +94,3 @@ private enum State } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/CompiledXPath.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/CompiledXPath.cs index 0663bfba37..9658832655 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/CompiledXPath.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/CompiledXPath.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML - namespace Castle.Components.DictionaryAdapter.Xml { using System.Xml.XPath; @@ -88,5 +86,3 @@ public void SetContext(XsltContext context) } } } - -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/CompiledXPathNode.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/CompiledXPathNode.cs index 3d2a28eca0..208a3c0955 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/CompiledXPathNode.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/CompiledXPathNode.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -135,4 +134,3 @@ internal virtual void SetContext(XsltContext context) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/CompiledXPathStep.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/CompiledXPathStep.cs index 8decf40532..694be6d4b6 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/CompiledXPathStep.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/CompiledXPathStep.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -43,4 +42,3 @@ internal override void SetContext(XsltContext context) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathBufferedNodeIterator.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathBufferedNodeIterator.cs index 569439ba34..f66d1c5881 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathBufferedNodeIterator.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathBufferedNodeIterator.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -82,4 +81,3 @@ public override XPathNodeIterator Clone() } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathCompiler.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathCompiler.cs index f49de0707e..12ea158cb7 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathCompiler.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathCompiler.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -427,58 +426,17 @@ private void RewindChar() private static bool IsWhitespace(char c) { -#if DOTNET45 return XmlConvert.IsWhitespaceChar(c); -#else - // Source: http://www.w3.org/TR/REC-xml/#NT-S - return ' ' == c - || '\t' == c - || '\r' == c - || '\n' == c - ; -#endif } private static bool IsNameStartChar(char c) { -#if DOTNET45 return XmlConvert.IsStartNCNameChar(c); -#else - // Source: http://www.w3.org/TR/REC-xml/#NT-NameStartChar - return ('A' <= c && c <= 'Z') - || ('a' <= c && c <= 'z') - || ('_' == c) - || ('\u00C0' <= c && c <= '\u00D6') - || ('\u00D8' <= c && c <= '\u00F6') - || ('\u00F8' <= c && c <= '\u02FF') - || ('\u0370' <= c && c <= '\u037D') - || ('\u037F' <= c && c <= '\u1FFF') - || ('\u200C' <= c && c <= '\u200D') - || ('\u2070' <= c && c <= '\u218F') - || ('\u2C00' <= c && c <= '\u2FEF') - || ('\u3001' <= c && c <= '\uD7FF') - || ('\uF900' <= c && c <= '\uFDCF') - || ('\uFDF0' <= c && c <= '\uFFFD') - // [10000-EFFFF] not supported by C# - ; -#endif } private static bool IsNameChar(char c) { -#if DOTNET45 return XmlConvert.IsNCNameChar(c); -#else - // Source: http://www.w3.org/TR/REC-xml/#NT-NameChar - return IsNameStartChar(c) - || ('-' == c) - || ('.' == c) - || ('0' <= c && c <='9') - || ('\u00B7' == c) - || ('\u0300' <= c && c <= '\u036F') - || ('\u203F' <= c && c <= '\u2040') - ; -#endif } private enum State @@ -492,4 +450,3 @@ private enum State } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathContext.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathContext.cs index 90e8649022..2d6703ecb3 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathContext.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathContext.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System.Xml.XPath; @@ -67,4 +66,3 @@ public override IXsltContextVariable ResolveVariable(string prefix, string name) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathExtensions.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathExtensions.cs index 62bcb0c9e2..d4fd08ccdf 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathExtensions.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathExtensions.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -75,4 +74,3 @@ public static void DeleteChildren(this XPathNavigator node) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathMutableCursor.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathMutableCursor.cs index 838120fded..41b49bfbd2 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathMutableCursor.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathMutableCursor.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -414,4 +413,3 @@ private void RequireMoved(bool result) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathNode.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathNode.cs index 803ccc1fa5..90963d53ff 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathNode.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathNode.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -232,4 +231,3 @@ public virtual void Clear() } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathReadOnlyCursor.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathReadOnlyCursor.cs index be37fddbd2..d6342e76e6 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathReadOnlyCursor.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Cursors/XPath/XPathReadOnlyCursor.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -139,4 +138,3 @@ public override IXmlNode Save() } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Namespaces/Wsdl.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Namespaces/Wsdl.cs index 578e60ba1e..383641c23d 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Namespaces/Wsdl.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Namespaces/Wsdl.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { // Namespace for Guid type @@ -26,4 +25,3 @@ internal static readonly XmlNamespaceAttribute Namespace = new XmlNamespaceAttribute(NamespaceUri, Prefix) { Root = true }; } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Namespaces/XRef.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Namespaces/XRef.cs index 825a9797ad..c3355f9ac4 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Namespaces/XRef.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Namespaces/XRef.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -52,4 +51,3 @@ internal static readonly XmlNamespaceAttribute Namespace = new XmlNamespaceAttribute(NamespaceUri, Prefix) { Root = true }; } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Namespaces/Xmlns.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Namespaces/Xmlns.cs index 56d7a19a88..4f9f914935 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Namespaces/Xmlns.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Namespaces/Xmlns.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { public static class Xmlns @@ -22,4 +21,3 @@ public const string NamespaceUri = "http://www.w3.org/2000/xmlns/"; } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Namespaces/Xsd.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Namespaces/Xsd.cs index 48d620e5a7..ddc9b8f6ae 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Namespaces/Xsd.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Namespaces/Xsd.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { public static class Xsd @@ -25,4 +24,3 @@ internal static readonly XmlNamespaceAttribute Namespace = new XmlNamespaceAttribute(NamespaceUri, Prefix) { Root = true }; } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Namespaces/Xsi.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Namespaces/Xsi.cs index ba59515e35..af825a2b32 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Namespaces/Xsi.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Namespaces/Xsi.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -74,4 +73,3 @@ internal static readonly XmlNamespaceAttribute Namespace = new XmlNamespaceAttribute(NamespaceUri, Prefix) { Root = true }; } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlArraySerializer.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlArraySerializer.cs index 4b85e2c347..aea86692f0 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlArraySerializer.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlArraySerializer.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -101,4 +100,3 @@ private static object GetItemSafe(Array array, int index) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlCollectionSerializer.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlCollectionSerializer.cs index a51b7428f3..4f7482af10 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlCollectionSerializer.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlCollectionSerializer.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -75,4 +74,3 @@ public override void SetValue(IXmlNode node, IDictionaryAdapter parent, IXmlAcce } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlComponentSerializer.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlComponentSerializer.cs index 089d74687b..8551f5d5a8 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlComponentSerializer.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlComponentSerializer.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -72,4 +71,3 @@ public override void SetValue(IXmlNode node, IDictionaryAdapter parent, IXmlAcce } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlCustomSerializer.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlCustomSerializer.cs index 565e489f37..d16f3bba67 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlCustomSerializer.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlCustomSerializer.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -59,4 +58,3 @@ public override void SetValue(IXmlNode node, IDictionaryAdapter parent, IXmlAcce } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlDefaultSerializer.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlDefaultSerializer.cs index c54eeebb01..4453ab54e0 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlDefaultSerializer.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlDefaultSerializer.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -54,4 +53,3 @@ public static readonly XmlRootAttribute }; } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlDynamicSerializer.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlDynamicSerializer.cs index 851d18a0ef..5d5a475c36 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlDynamicSerializer.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlDynamicSerializer.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { public class XmlDynamicSerializer : XmlTypeSerializer @@ -43,4 +42,3 @@ public override void SetValue(IXmlNode node, IDictionaryAdapter parent, IXmlAcce } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlEnumerationSerializer.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlEnumerationSerializer.cs index 4c2a7b2f19..a8eb4d1f2d 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlEnumerationSerializer.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlEnumerationSerializer.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -35,4 +34,3 @@ public override object GetValue(IXmlNode node, IDictionaryAdapter parent, IXmlAc } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlListSerializer.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlListSerializer.cs index 45cb97b46d..0ee069915a 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlListSerializer.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlListSerializer.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -30,4 +29,3 @@ public override Type ListTypeConstructor } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlSetSerializer.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlSetSerializer.cs index db0c3fbb7c..85c7baf1eb 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlSetSerializer.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlSetSerializer.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -30,4 +29,3 @@ public override Type ListTypeConstructor } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlSimpleSerializer.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlSimpleSerializer.cs index 8d6de3a95e..ecc8252a2e 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlSimpleSerializer.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlSimpleSerializer.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -81,4 +80,3 @@ private static DateTime XmlConvert_ToDateTime(string value) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlStringSerializer.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlStringSerializer.cs index e4e511eea1..db1d2913cd 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlStringSerializer.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlStringSerializer.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { public class XmlStringSerializer : XmlTypeSerializer @@ -38,4 +37,3 @@ public override void SetValue(IXmlNode node, IDictionaryAdapter parent, IXmlAcce } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlTypeKind.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlTypeKind.cs index 385f5e2824..90a1ad4e7f 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlTypeKind.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlTypeKind.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { public enum XmlTypeKind @@ -22,4 +21,3 @@ public enum XmlTypeKind Collection } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlTypeSerializer.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlTypeSerializer.cs index d541e6b38a..0660aaa590 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlTypeSerializer.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlTypeSerializer.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -41,4 +40,3 @@ public static XmlTypeSerializer For(Type type) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlTypeSerializerCache.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlTypeSerializerCache.cs index f33bec33e2..43b1fa0c6b 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlTypeSerializerCache.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlTypeSerializerCache.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -97,4 +96,3 @@ private static XmlTypeSerializer CreateSerializer(Type type) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlXmlNodeSerializer.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlXmlNodeSerializer.cs index c3a4997f3d..a46e713967 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlXmlNodeSerializer.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlXmlNodeSerializer.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -48,4 +47,3 @@ public override void SetValue(IXmlNode node, IDictionaryAdapter parent, IXmlAcce } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/IXmlIdentity.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/IXmlIdentity.cs index ff6b1e2f56..b3ca8b89b9 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/IXmlIdentity.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/IXmlIdentity.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { public interface IXmlIdentity @@ -21,4 +20,3 @@ public interface IXmlIdentity XmlName XsiType { get; } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/IXmlIncludedType.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/IXmlIncludedType.cs index 514e4641ef..fed055e37c 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/IXmlIncludedType.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/IXmlIncludedType.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -23,4 +22,3 @@ public interface IXmlIncludedType Type ClrType { get; } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/IXmlIncludedTypeMap.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/IXmlIncludedTypeMap.cs index ca78004e9f..35fc37cd25 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/IXmlIncludedTypeMap.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/IXmlIncludedTypeMap.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -37,4 +36,3 @@ public static IXmlIncludedType Require(this IXmlIncludedTypeMap includedTypes, T } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/IXmlKnownType.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/IXmlKnownType.cs index 23aa17c2cf..12fc74005b 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/IXmlKnownType.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/IXmlKnownType.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -22,4 +21,3 @@ public interface IXmlKnownType : IXmlIdentity Type ClrType { get; } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/IXmlKnownTypeMap.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/IXmlKnownTypeMap.cs index 9714338dba..5d72adf3d9 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/IXmlKnownTypeMap.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/IXmlKnownTypeMap.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -37,4 +36,3 @@ public static IXmlKnownType Require(this IXmlKnownTypeMap map, Type clrType) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/XmlIncludedType.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/XmlIncludedType.cs index 873745cc0a..47a76e03f2 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/XmlIncludedType.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/XmlIncludedType.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -47,4 +46,3 @@ public Type ClrType } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/XmlIncludedTypeSet.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/XmlIncludedTypeSet.cs index 35172dadf5..64e9428344 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/XmlIncludedTypeSet.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/XmlIncludedTypeSet.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -94,4 +93,3 @@ public static readonly IList DefaultEntries }); } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/XmlKnownType.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/XmlKnownType.cs index 47858d3dca..2ffca611d6 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/XmlKnownType.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/XmlKnownType.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -60,4 +59,3 @@ public Type ClrType } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/XmlKnownTypeSet.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/XmlKnownTypeSet.cs index fa5c49155b..a950f1b4b8 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/XmlKnownTypeSet.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Types/XmlKnownTypeSet.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -175,4 +174,3 @@ private static readonly XmlNameComparer XsiTypeComparer = XmlNameComparer.Default; } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/DictionaryAdapterExtensions.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/DictionaryAdapterExtensions.cs index 35bb1a972c..2e06d1f8fc 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/DictionaryAdapterExtensions.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/DictionaryAdapterExtensions.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -89,4 +88,3 @@ private const string XmlTypeKey = "XmlType"; } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/Error.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/Error.cs index 08033097a8..e67c715cdd 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/Error.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/Error.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -218,4 +217,3 @@ internal static Exception ObjectIdNotFound(string id) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/IConfigurable.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/IConfigurable.cs index af4640d572..df603c569f 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/IConfigurable.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/IConfigurable.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { public interface IConfigurable @@ -20,4 +19,3 @@ public interface IConfigurable void Configure(T value); } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/IRealizable.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/IRealizable.cs index 531c25a4eb..3fc4197e6b 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/IRealizable.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/IRealizable.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { // OBSOLETE: This has been replaced with IVirtual. @@ -39,4 +38,3 @@ public static IRealizable RequireRealizable(this IRealizableSource obj) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/SingletonDispenser.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/SingletonDispenser.cs index 6aee638efc..054be84e14 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/SingletonDispenser.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/SingletonDispenser.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -130,4 +129,3 @@ private TItem Create(TKey key, object item) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/StringExtensions.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/StringExtensions.cs index bc22e3acab..6f0d2266ba 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/StringExtensions.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/StringExtensions.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -25,4 +24,3 @@ public static string NonEmpty(this string s) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/Try.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/Try.cs index dfb7aaae3c..81d9bd938e 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/Try.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/Try.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System.Diagnostics; @@ -34,4 +33,3 @@ public static bool Success(out T result, T value) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/TypeExtensions.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/TypeExtensions.cs index 5994d35534..8bee8d2f1e 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/TypeExtensions.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/TypeExtensions.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -53,4 +52,3 @@ internal static bool IsCustomSerializable(this Type type) } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/XmlSubtreeReader.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/XmlSubtreeReader.cs index 7f1a40f9cd..f3a09236ca 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/XmlSubtreeReader.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/XmlSubtreeReader.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -226,4 +225,3 @@ public override void Close() } } } -#endif diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/XmlSubtreeWriter.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/XmlSubtreeWriter.cs index 24d130a6dd..b5cdeafb98 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/XmlSubtreeWriter.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/XmlSubtreeWriter.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_DICTIONARYADAPTER_XML namespace Castle.Components.DictionaryAdapter.Xml { using System; @@ -354,4 +353,3 @@ private void Reset(WriteState state) } } } -#endif diff --git a/src/Castle.Core/Core/Resource/AssemblyBundleResource.cs b/src/Castle.Core/Core/Resource/AssemblyBundleResource.cs index 3617ca0b26..1d347bce28 100644 --- a/src/Castle.Core/Core/Resource/AssemblyBundleResource.cs +++ b/src/Castle.Core/Core/Resource/AssemblyBundleResource.cs @@ -60,11 +60,7 @@ private static Assembly ObtainAssembly(string assemblyName) { try { -#if FEATURE_GAC return Assembly.Load(assemblyName); -#else - return Assembly.Load(new AssemblyName(assemblyName)); -#endif } catch (Exception ex) { diff --git a/src/Castle.Core/Core/Resource/AssemblyResource.cs b/src/Castle.Core/Core/Resource/AssemblyResource.cs index 5b32d3090f..1e426da217 100644 --- a/src/Castle.Core/Core/Resource/AssemblyResource.cs +++ b/src/Castle.Core/Core/Resource/AssemblyResource.cs @@ -144,11 +144,7 @@ private static Assembly ObtainAssembly(String assemblyName) { try { -#if FEATURE_GAC return Assembly.Load(assemblyName); -#else - return Assembly.Load(new AssemblyName(assemblyName)); -#endif } catch (Exception ex) { diff --git a/src/Castle.Core/Core/Smtp/DefaultSmtpSender.cs b/src/Castle.Core/Core/Smtp/DefaultSmtpSender.cs index 4860d1bed7..276ae26ee9 100644 --- a/src/Castle.Core/Core/Smtp/DefaultSmtpSender.cs +++ b/src/Castle.Core/Core/Smtp/DefaultSmtpSender.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_SMTP - #pragma warning disable 618 // Mono marked SmtpClient obsolete namespace Castle.Core.Smtp @@ -292,5 +290,3 @@ private static bool CanAccessCredentials() } #pragma warning restore 618 // Mono marked SmtpClient obsolete - -#endif diff --git a/src/Castle.Core/Core/Smtp/IEmailSender.cs b/src/Castle.Core/Core/Smtp/IEmailSender.cs index f662235858..93f79e3de4 100644 --- a/src/Castle.Core/Core/Smtp/IEmailSender.cs +++ b/src/Castle.Core/Core/Smtp/IEmailSender.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if FEATURE_SMTP - namespace Castle.Core.Smtp { using System.Collections.Generic; @@ -46,5 +44,3 @@ public interface IEmailSender void Send(IEnumerable messages); } } - -#endif \ No newline at end of file diff --git a/src/Castle.Core/DynamicProxy/ExceptionMessageBuilder.cs b/src/Castle.Core/DynamicProxy/ExceptionMessageBuilder.cs index a26b461b25..17dc4e5a9e 100644 --- a/src/Castle.Core/DynamicProxy/ExceptionMessageBuilder.cs +++ b/src/Castle.Core/DynamicProxy/ExceptionMessageBuilder.cs @@ -54,14 +54,8 @@ internal static string CreateInstructionsToMakeVisible(Assembly targetAssembly) bool ReferencesCastleCore(Assembly ia) { -#if FEATURE_GET_REFERENCED_ASSEMBLIES return ia.GetReferencedAssemblies() .Any(r => r.FullName == Assembly.GetExecutingAssembly().FullName); -#else - // .NET Core does not provide an API to do this, so we just fall back to the solution that will definitely work. - // After all it is just an exception message. - return false; -#endif } } diff --git a/src/Castle.Core/DynamicProxy/Generators/Emitters/AbstractTypeEmitter.cs b/src/Castle.Core/DynamicProxy/Generators/Emitters/AbstractTypeEmitter.cs index 056c8c9552..9a9b0ce809 100644 --- a/src/Castle.Core/DynamicProxy/Generators/Emitters/AbstractTypeEmitter.cs +++ b/src/Castle.Core/DynamicProxy/Generators/Emitters/AbstractTypeEmitter.cs @@ -274,7 +274,7 @@ public FieldReference GetField(string name) public Type GetGenericArgument(String genericArgumentName) { if (name2GenericType.TryGetValue(genericArgumentName, out var genericTypeParameterBuilder)) - return genericTypeParameterBuilder.AsType(); + return genericTypeParameterBuilder; return null; } @@ -287,7 +287,7 @@ public Type[] GetGenericArgumentsFor(Type genericType) { if (genType.GetTypeInfo().IsGenericParameter) { - types.Add(name2GenericType[genType.Name].AsType()); + types.Add(name2GenericType[genType.Name]); } else { @@ -303,7 +303,7 @@ public Type[] GetGenericArgumentsFor(MethodInfo genericMethod) var types = new List(); foreach (var genType in genericMethod.GetGenericArguments()) { - types.Add(name2GenericType[genType.Name].AsType()); + types.Add(name2GenericType[genType.Name]); } return types.ToArray(); @@ -318,7 +318,7 @@ protected Type CreateType(TypeBuilder type) { try { - return type.CreateTypeInfo().AsType(); + return type.CreateTypeInfo(); } catch (BadImageFormatException ex) { diff --git a/src/Castle.Core/DynamicProxy/Generators/Emitters/GenericUtil.cs b/src/Castle.Core/DynamicProxy/Generators/Emitters/GenericUtil.cs index d913b756ba..6dd0fdda01 100644 --- a/src/Castle.Core/DynamicProxy/Generators/Emitters/GenericUtil.cs +++ b/src/Castle.Core/DynamicProxy/Generators/Emitters/GenericUtil.cs @@ -81,7 +81,7 @@ public static Type ExtractCorrectType(Type paramType, Dictionary Date: Wed, 13 May 2020 20:09:55 +0200 Subject: [PATCH 13/16] Remove unnecessary package & assembly refs --- .../Castle.Core.Tests.WeakNamed.csproj | 5 ----- .../Castle.Core.Tests.csproj | 22 ------------------- src/Castle.Core/Castle.Core.csproj | 4 ---- 3 files changed, 31 deletions(-) diff --git a/src/Castle.Core.Tests.WeakNamed/Castle.Core.Tests.WeakNamed.csproj b/src/Castle.Core.Tests.WeakNamed/Castle.Core.Tests.WeakNamed.csproj index beabbac526..ded3d89a80 100644 --- a/src/Castle.Core.Tests.WeakNamed/Castle.Core.Tests.WeakNamed.csproj +++ b/src/Castle.Core.Tests.WeakNamed/Castle.Core.Tests.WeakNamed.csproj @@ -30,11 +30,6 @@ - - - - - diff --git a/src/Castle.Core.Tests/Castle.Core.Tests.csproj b/src/Castle.Core.Tests/Castle.Core.Tests.csproj index 35cffd72bb..87edd463c4 100644 --- a/src/Castle.Core.Tests/Castle.Core.Tests.csproj +++ b/src/Castle.Core.Tests/Castle.Core.Tests.csproj @@ -53,34 +53,12 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/Castle.Core/Castle.Core.csproj b/src/Castle.Core/Castle.Core.csproj index f53b1a0c54..12be413cff 100644 --- a/src/Castle.Core/Castle.Core.csproj +++ b/src/Castle.Core/Castle.Core.csproj @@ -36,10 +36,6 @@ - - - - From d1857bd3ee7735ec3a13517bf4012af4c4f72468 Mon Sep 17 00:00:00 2001 From: stakx Date: Wed, 13 May 2020 20:12:23 +0200 Subject: [PATCH 14/16] We can run XML, Serilog, and NLog tests on .NET Core 2+ --- .../Castle.Core.Tests.csproj | 6 ----- .../Xml/XmlTypeSerializerTests.cs | 27 ++++++++++++++----- 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/src/Castle.Core.Tests/Castle.Core.Tests.csproj b/src/Castle.Core.Tests/Castle.Core.Tests.csproj index 87edd463c4..0b7b6868e8 100644 --- a/src/Castle.Core.Tests/Castle.Core.Tests.csproj +++ b/src/Castle.Core.Tests/Castle.Core.Tests.csproj @@ -20,12 +20,6 @@ Program - - - - - - Always diff --git a/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/Xml/XmlTypeSerializerTests.cs b/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/Xml/XmlTypeSerializerTests.cs index b05b82daa1..c0c4bf5ada 100644 --- a/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/Xml/XmlTypeSerializerTests.cs +++ b/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/Xml/XmlTypeSerializerTests.cs @@ -96,7 +96,22 @@ public void Single_Roundtrip() [Test] public void Double_Roundtrip() { - TestSimpleSerializer(3.1337E+16D, "3.1337E+16"); + TestSimpleSerializer(3.1337E+16D, "3.1337E+16", "31337000000000000"); + // NOTE: This test will allow 2 different roundtrip results due to + // some roundtripping changes introduced in .NET Core 3.0. See: + // + // https://devblogs.microsoft.com/dotnet/floating-point-parsing-and-formatting-improvements-in-net-core-3-0/ + // + // This test will cause a `double.ToString("R")` to be executed + // inside `XmlConvert`; the above article says the following: + // + // "For ToString("R"), there is no mechanism to fallback + // to the old behavior. The previous behavior would first try + // 'G15' and then using the internal buffer would see if it + // roundtrips; if that failed, it would instead return 'G17'." + // + // So there is no straightforward way to get roundtripping to work + // the same way on .NET Framework / .NET Core 2.x, and .NET Core 3.x. } [Test] @@ -152,21 +167,21 @@ public void Uri_Roundtrip() [Test] public void Dynamic_Roundtrip() { - TestSimpleSerializer(42, "42", typeof(object)); + TestSimpleSerializer(42, new[] { "42" }, typeof(object)); } - private void TestSimpleSerializer(object value, string text) + private void TestSimpleSerializer(object value, params string[] texts) { - TestSimpleSerializer(value, text, value.GetType()); + TestSimpleSerializer(value, texts, value.GetType()); } - private void TestSimpleSerializer(object value, string text, Type serializerType) + private void TestSimpleSerializer(object value, string[] texts, Type serializerType) { var serializer = XmlTypeSerializerCache.Instance[serializerType]; var node = new DummyXmlNode(value.GetType()); serializer.SetValue(node, null, null, null, ref value); - Assert.AreEqual(text, node.Value); + Assert.Contains(node.Value, texts); var actual = serializer.GetValue(node, null, null); Assert.AreEqual(value, actual); From 2c8c00fcc2b031e421e20dc688a5997b15087f07 Mon Sep 17 00:00:00 2001 From: stakx Date: Wed, 13 May 2020 23:25:15 +0200 Subject: [PATCH 15/16] More precise column titles in compilation symbol table --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a977fa35a5..a1707b0797 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ For known Mono defects, check [our issue tracker](https://github.com/castleproje The following conditional compilation symbols (vertical) are currently defined for each of the build configurations (horizontal): -Symbol | NET45 | .NET Core +Symbol | .NET 4.5 | .NET Standard 2.x ----------------------------------- | ------------------ | ------------------ `FEATURE_APPDOMAIN` | :white_check_mark: | :no_entry_sign: `FEATURE_ASSEMBLYBUILDER_SAVE` | :white_check_mark: | :no_entry_sign: From ebd80f8f4828dd56e04e08fcfecdae74f65f131a Mon Sep 17 00:00:00 2001 From: stakx Date: Thu, 14 May 2020 08:48:20 +0200 Subject: [PATCH 16/16] Remove those pesky `.GetTypeInfo()` --- .../BasicClassProxyTestCase.cs | 22 ++++----- src/Castle.Core.Tests.WeakNamed/Program.cs | 2 +- .../DictionaryAdapterFactoryTestCase.cs | 2 +- ...eflectionBasedDictionaryAdapterTestCase.cs | 2 +- .../AssemblyResourceFactoryTestCase.cs | 2 +- .../Resource/MoreRes/TestRes.Designer.cs | 2 +- .../AttributesToAvoidReplicatingTestCase.cs | 2 +- .../BasicClassProxyTestCase.cs | 14 +++--- .../BasicInterfaceProxyTestCase.cs | 46 +++++++++---------- .../DynamicProxy.Tests/CacheKeyTestCase.cs | 8 ++-- .../CanDefineAdditionalCustomAttributes.cs | 4 +- .../ClassEmitterTestCase.cs | 8 ++-- .../ClassWithAttributesTestCase.cs | 10 ++-- .../DelegateMixinTestCase.cs | 6 +-- ...xplicitlyImplementedMethodNamesTestCase.cs | 4 +- .../Interceptors/KeepDataInterceptor.cs | 2 +- .../Interceptors/LogInvocationInterceptor.cs | 2 +- src/Castle.Core.Tests/Program.cs | 2 +- .../AbstractDictionaryAdapterVisitor.cs | 6 +-- .../Attributes/OnDemandAttribute.cs | 10 ++-- .../Attributes/RemoveIfAttribute.cs | 2 +- .../Attributes/StringListAttribute.cs | 2 +- .../DictionaryAdapterFactory.cs | 6 +-- .../Util/ListProjection.cs | 4 +- .../Xml/Core/XmlMetadata.cs | 4 +- .../Xml/Core/XmlReferenceManager.cs | 2 +- .../Serializers/XmlTypeSerializerCache.cs | 8 ++-- .../Xml/Internal/Utilities/TypeExtensions.cs | 6 +-- .../Core/Internal/AttributesUtil.cs | 4 +- .../Core/Internal/InterfaceAttributeUtil.cs | 6 +-- src/Castle.Core/Core/ProxyServices.cs | 2 +- .../DynamicProxy/AbstractInvocation.cs | 2 +- .../ClassProxyInstanceContributor.cs | 2 +- .../ClassProxyTargetContributor.cs | 6 +-- .../ClassProxyWithTargetTargetContributor.cs | 6 +-- .../Contributors/CompositeTypeContributor.cs | 2 +- .../InterfaceProxyTargetContributor.cs | 2 +- .../InvocationWithDelegateContributor.cs | 2 +- ...nvocationWithGenericDelegateContributor.cs | 2 +- .../Contributors/MembersCollector.cs | 2 +- .../Contributors/MixinContributor.cs | 4 +- .../Contributors/ProxyInstanceContributor.cs | 2 +- .../DynamicProxy/CustomAttributeInfo.cs | 4 +- .../DynamicProxy/DefaultProxyBuilder.cs | 2 +- .../DynamicProxy/ExceptionMessageBuilder.cs | 2 +- .../AttributesToAvoidReplicating.cs | 2 +- .../Generators/BaseProxyGenerator.cs | 4 +- .../DynamicProxy/Generators/CacheKey.cs | 2 +- .../ClassProxyWithTargetGenerator.cs | 2 +- .../Emitters/AbstractTypeEmitter.cs | 2 +- .../Generators/Emitters/ArgumentsUtil.cs | 2 +- .../Generators/Emitters/ClassEmitter.cs | 6 +-- .../CodeBuilders/ConstructorCodeBuilder.cs | 2 +- .../Generators/Emitters/GenericUtil.cs | 22 ++++----- .../Generators/Emitters/MethodEmitter.cs | 6 +-- .../Generators/Emitters/OpCodeUtil.cs | 22 ++++----- .../SimpleAST/BindDelegateExpression.cs | 2 +- .../Emitters/SimpleAST/ConstReference.cs | 2 +- .../Emitters/SimpleAST/ConvertExpression.cs | 14 +++--- .../SimpleAST/DefaultValueExpression.cs | 14 +++--- .../Emitters/SimpleAST/IndirectReference.cs | 4 +- .../ReferencesToObjectArrayExpression.cs | 6 +-- .../Generators/Emitters/StrongNameUtil.cs | 4 +- .../DynamicProxy/Generators/GeneratorUtil.cs | 2 +- .../InterfaceProxyWithTargetGenerator.cs | 6 +-- .../DynamicProxy/Generators/MetaMethod.cs | 4 +- .../Generators/MetaTypeElement.cs | 2 +- .../Generators/MetaTypeElementUtil.cs | 4 +- .../Generators/MethodGenerator.cs | 2 +- .../Generators/MethodSignatureComparer.cs | 21 ++++----- .../MethodWithInvocationGenerator.cs | 8 ++-- .../DynamicProxy/Internal/AttributeUtil.cs | 6 +-- .../DynamicProxy/Internal/InvocationHelper.cs | 4 +- .../DynamicProxy/Internal/TypeUtil.cs | 22 ++++----- src/Castle.Core/DynamicProxy/ModuleScope.cs | 2 +- .../DynamicProxy/ProxyGenerator.cs | 12 ++--- src/Castle.Core/DynamicProxy/ProxyUtil.cs | 16 +++---- .../ExtendedLog4netFactory.cs | 2 +- .../Log4netFactory.cs | 2 +- 79 files changed, 235 insertions(+), 240 deletions(-) diff --git a/src/Castle.Core.Tests.WeakNamed/DynamicProxy.Tests/BasicClassProxyTestCase.cs b/src/Castle.Core.Tests.WeakNamed/DynamicProxy.Tests/BasicClassProxyTestCase.cs index 9fd86b380a..0d05bfc6b0 100644 --- a/src/Castle.Core.Tests.WeakNamed/DynamicProxy.Tests/BasicClassProxyTestCase.cs +++ b/src/Castle.Core.Tests.WeakNamed/DynamicProxy.Tests/BasicClassProxyTestCase.cs @@ -29,9 +29,9 @@ public class BasicClassProxyTestCase : BasePEVerifyTestCase public void ProxyForBaseTypeFromUnsignedAssembly() { Type t = typeof(Class); - Assert.False(StrongNameUtil.IsAssemblySigned(t.GetTypeInfo().Assembly)); + Assert.False(StrongNameUtil.IsAssemblySigned(t.Assembly)); object proxy = generator.CreateClassProxy(t, new StandardInterceptor()); - Assert.False(StrongNameUtil.IsAssemblySigned(proxy.GetType().GetTypeInfo().Assembly)); + Assert.False(StrongNameUtil.IsAssemblySigned(proxy.GetType().Assembly)); } [Test] @@ -39,10 +39,10 @@ public void ProxyForBaseTypeAndInterfaceFromUnsignedAssembly() { Type t1 = typeof(Class); Type t2 = typeof(IInterface); - Assert.IsFalse(StrongNameUtil.IsAssemblySigned(t1.GetTypeInfo().Assembly)); - Assert.IsFalse(StrongNameUtil.IsAssemblySigned(t2.GetTypeInfo().Assembly)); + Assert.IsFalse(StrongNameUtil.IsAssemblySigned(t1.Assembly)); + Assert.IsFalse(StrongNameUtil.IsAssemblySigned(t2.Assembly)); object proxy = generator.CreateClassProxy(t1, new Type[] { t2 }, new StandardInterceptor()); - Assert.IsFalse(StrongNameUtil.IsAssemblySigned(proxy.GetType().GetTypeInfo().Assembly)); + Assert.IsFalse(StrongNameUtil.IsAssemblySigned(proxy.GetType().Assembly)); } [Test] @@ -50,10 +50,10 @@ public void ProxyForBaseTypeAndInterfaceFromSignedAndUnsignedAssemblies1() { Type t1 = typeof(Class); Type t2 = typeof(IServiceProvider); - Assert.IsFalse(StrongNameUtil.IsAssemblySigned(t1.GetTypeInfo().Assembly)); - Assert.IsTrue(StrongNameUtil.IsAssemblySigned(t2.GetTypeInfo().Assembly)); + Assert.IsFalse(StrongNameUtil.IsAssemblySigned(t1.Assembly)); + Assert.IsTrue(StrongNameUtil.IsAssemblySigned(t2.Assembly)); object proxy = generator.CreateClassProxy(t1, new Type[] { t2 }, new StandardInterceptor()); - Assert.IsFalse(StrongNameUtil.IsAssemblySigned(proxy.GetType().GetTypeInfo().Assembly)); + Assert.IsFalse(StrongNameUtil.IsAssemblySigned(proxy.GetType().Assembly)); } [Test] @@ -61,10 +61,10 @@ public void ProxyForBaseTypeAndInterfaceFromSignedAndUnsignedAssemblies2() { Type t1 = typeof(List); Type t2 = typeof(IInterface); - Assert.IsTrue(StrongNameUtil.IsAssemblySigned(t1.GetTypeInfo().Assembly)); - Assert.IsFalse(StrongNameUtil.IsAssemblySigned(t2.GetTypeInfo().Assembly)); + Assert.IsTrue(StrongNameUtil.IsAssemblySigned(t1.Assembly)); + Assert.IsFalse(StrongNameUtil.IsAssemblySigned(t2.Assembly)); object proxy = generator.CreateClassProxy(t1, new Type[] { t2 }, new StandardInterceptor()); - Assert.IsFalse(StrongNameUtil.IsAssemblySigned(proxy.GetType().GetTypeInfo().Assembly)); + Assert.IsFalse(StrongNameUtil.IsAssemblySigned(proxy.GetType().Assembly)); } public abstract class Class diff --git a/src/Castle.Core.Tests.WeakNamed/Program.cs b/src/Castle.Core.Tests.WeakNamed/Program.cs index da431bfb1f..a5dbb5a2a2 100644 --- a/src/Castle.Core.Tests.WeakNamed/Program.cs +++ b/src/Castle.Core.Tests.WeakNamed/Program.cs @@ -7,7 +7,7 @@ internal class Program { public static int Main(string[] args) { - return new AutoRun(typeof(Program).GetTypeInfo().Assembly) + return new AutoRun(typeof(Program).Assembly) .Execute(args, new ExtendedTextWrapper(Console.Out), Console.In); } } \ No newline at end of file diff --git a/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/DictionaryAdapterFactoryTestCase.cs b/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/DictionaryAdapterFactoryTestCase.cs index 197f14ba87..64ca27d704 100644 --- a/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/DictionaryAdapterFactoryTestCase.cs +++ b/src/Castle.Core.Tests/Components.DictionaryAdapter.Tests/DictionaryAdapterFactoryTestCase.cs @@ -1322,7 +1322,7 @@ public void CanGetNewGuidPropertyOnDemand() public void CanDetermineTheAdaptedInterface() { var person = factory.GetAdapter(dictionary); - var type = person.GetType().GetTypeInfo().GetCustomAttributes( + var type = person.GetType().GetCustomAttributes( typeof(DictionaryAdapterAttribute), false).Cast() .FirstOrDefault(); Assert.IsNotNull(type); diff --git a/src/Castle.Core.Tests/Core.Tests/ReflectionBasedDictionaryAdapterTestCase.cs b/src/Castle.Core.Tests/Core.Tests/ReflectionBasedDictionaryAdapterTestCase.cs index 3b694bc0fd..f73db51416 100644 --- a/src/Castle.Core.Tests/Core.Tests/ReflectionBasedDictionaryAdapterTestCase.cs +++ b/src/Castle.Core.Tests/Core.Tests/ReflectionBasedDictionaryAdapterTestCase.cs @@ -109,7 +109,7 @@ public void EnumeratorIteration() public void Using_anonymous_types_works_without_exception() { var target = new { foo = 1, name = "john", age = 25 }; - Assert.IsFalse(target.GetType().GetTypeInfo().IsPublic); + Assert.IsFalse(target.GetType().IsPublic); var dict = new ReflectionBasedDictionaryAdapter(target); Assert.AreEqual(3, dict.Count); diff --git a/src/Castle.Core.Tests/Core.Tests/Resource/AssemblyResourceFactoryTestCase.cs b/src/Castle.Core.Tests/Core.Tests/Resource/AssemblyResourceFactoryTestCase.cs index b058c824f6..6b3be7c6a7 100644 --- a/src/Castle.Core.Tests/Core.Tests/Resource/AssemblyResourceFactoryTestCase.cs +++ b/src/Castle.Core.Tests/Core.Tests/Resource/AssemblyResourceFactoryTestCase.cs @@ -29,7 +29,7 @@ public void SetUp() } private AssemblyResourceFactory resFactory; - private static readonly String AssemblyName = typeof(AssemblyResourceFactoryTestCase).GetTypeInfo().Assembly.FullName; + private static readonly String AssemblyName = typeof(AssemblyResourceFactoryTestCase).Assembly.FullName; private const String ResPath = "Resources"; [Test] diff --git a/src/Castle.Core.Tests/Core.Tests/Resource/MoreRes/TestRes.Designer.cs b/src/Castle.Core.Tests/Core.Tests/Resource/MoreRes/TestRes.Designer.cs index 5e8b8ae39b..38ab209a7b 100644 --- a/src/Castle.Core.Tests/Core.Tests/Resource/MoreRes/TestRes.Designer.cs +++ b/src/Castle.Core.Tests/Core.Tests/Resource/MoreRes/TestRes.Designer.cs @@ -40,7 +40,7 @@ internal TestRes() { internal static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Castle.Core.Resource.Tests.MoreRes.TestRes", typeof(TestRes).GetTypeInfo().Assembly); + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Castle.Core.Resource.Tests.MoreRes.TestRes", typeof(TestRes).Assembly); resourceMan = temp; } return resourceMan; diff --git a/src/Castle.Core.Tests/DynamicProxy.Tests/AttributesToAvoidReplicatingTestCase.cs b/src/Castle.Core.Tests/DynamicProxy.Tests/AttributesToAvoidReplicatingTestCase.cs index 13bf17a300..f82ef974c4 100644 --- a/src/Castle.Core.Tests/DynamicProxy.Tests/AttributesToAvoidReplicatingTestCase.cs +++ b/src/Castle.Core.Tests/DynamicProxy.Tests/AttributesToAvoidReplicatingTestCase.cs @@ -99,7 +99,7 @@ public class AttributedClass_ReflectionPermission private int AttributeCount(object proxy) where TAttribute : Attribute { - return proxy.GetType().GetTypeInfo().GetCustomAttributes(typeof(TAttribute), false).Count(); + return proxy.GetType().GetCustomAttributes(typeof(TAttribute), false).Count(); } } } \ No newline at end of file diff --git a/src/Castle.Core.Tests/DynamicProxy.Tests/BasicClassProxyTestCase.cs b/src/Castle.Core.Tests/DynamicProxy.Tests/BasicClassProxyTestCase.cs index 12d06bf539..19a2a6e2c2 100644 --- a/src/Castle.Core.Tests/DynamicProxy.Tests/BasicClassProxyTestCase.cs +++ b/src/Castle.Core.Tests/DynamicProxy.Tests/BasicClassProxyTestCase.cs @@ -80,7 +80,7 @@ public void ProxyForNonPublicClass() { // We need to use a type that is not from our assembly, because we are marked as internals visible to DynamicProxy2 var type = Type.GetType("System.Text.Latin1Encoding"); - Assert.True(type.GetTypeInfo().IsNotPublic); // Just ensure it is internal as a good use case for this test + Assert.True(type.IsNotPublic); // Just ensure it is internal as a good use case for this test var ex = Assert.Throws(() => generator.CreateClassProxy(type, new StandardInterceptor())); StringAssert.StartsWith( @@ -307,9 +307,9 @@ public void ProxyForBaseTypeFromSignedAssembly() { const bool shouldBeSigned = true; Type t = typeof(List); - Assert.IsTrue(StrongNameUtil.IsAssemblySigned(t.GetTypeInfo().Assembly)); + Assert.IsTrue(StrongNameUtil.IsAssemblySigned(t.Assembly)); object proxy = generator.CreateClassProxy(t, new StandardInterceptor()); - Assert.AreEqual(shouldBeSigned, StrongNameUtil.IsAssemblySigned(proxy.GetType().GetTypeInfo().Assembly)); + Assert.AreEqual(shouldBeSigned, StrongNameUtil.IsAssemblySigned(proxy.GetType().Assembly)); } [Test] @@ -318,10 +318,10 @@ public void ProxyForBaseTypeAndInterfaceFromSignedAssembly() const bool shouldBeSigned = true; Type t1 = typeof(List); Type t2 = typeof(IServiceProvider); - Assert.IsTrue(StrongNameUtil.IsAssemblySigned(t1.GetTypeInfo().Assembly)); - Assert.IsTrue(StrongNameUtil.IsAssemblySigned(t2.GetTypeInfo().Assembly)); + Assert.IsTrue(StrongNameUtil.IsAssemblySigned(t1.Assembly)); + Assert.IsTrue(StrongNameUtil.IsAssemblySigned(t2.Assembly)); object proxy = generator.CreateClassProxy(t1, new Type[] { t2 }, new StandardInterceptor()); - Assert.AreEqual(shouldBeSigned, StrongNameUtil.IsAssemblySigned(proxy.GetType().GetTypeInfo().Assembly)); + Assert.AreEqual(shouldBeSigned, StrongNameUtil.IsAssemblySigned(proxy.GetType().Assembly)); } [Test] @@ -400,7 +400,7 @@ public void ClassImplementingInterfaceVitrually() var baseMethod = @class.GetMethod("Do"); var interceptor = new SetReturnValueInterceptor(123); var proxy = generator.CreateClassProxy(@class, new[] {@interface}, interceptor); - var mapping = proxy.GetType().GetTypeInfo().GetRuntimeInterfaceMap(@interface); + var mapping = proxy.GetType().GetInterfaceMap(@interface); Assert.AreEqual(mapping.TargetMethods[0].GetBaseDefinition(), baseMethod); diff --git a/src/Castle.Core.Tests/DynamicProxy.Tests/BasicInterfaceProxyTestCase.cs b/src/Castle.Core.Tests/DynamicProxy.Tests/BasicInterfaceProxyTestCase.cs index 1adb158593..63e8fa73b9 100644 --- a/src/Castle.Core.Tests/DynamicProxy.Tests/BasicInterfaceProxyTestCase.cs +++ b/src/Castle.Core.Tests/DynamicProxy.Tests/BasicInterfaceProxyTestCase.cs @@ -209,7 +209,7 @@ public void Should_implement_explicitly_duplicate_interface_members() generator.CreateInterfaceProxyWithoutTarget(typeof(IIdenticalOne), new[] { typeof(IIdenticalTwo) }).GetType(); MethodInfo method = type.GetMethod("Foo", BindingFlags.Instance | BindingFlags.Public); Assert.IsNotNull(method); - Assert.AreSame(method, type.GetTypeInfo().GetRuntimeInterfaceMap(typeof(IIdenticalOne)).TargetMethods[0]); + Assert.AreSame(method, type.GetInterfaceMap(typeof(IIdenticalOne)).TargetMethods[0]); MethodInfo method2 = type.GetMethod("Castle.DynamicProxy.Tests.Interfaces.IIdenticalTwo.Foo", BindingFlags.Instance | BindingFlags.Public); Assert.IsNotNull(method2); } @@ -225,15 +225,15 @@ public void Should_choose_noncolliding_method_names_when_implementing_same_gener boolInterfaceType, new[] { intInterfaceType, nestedGenericBoolInterfaceType }); - var type = proxy.GetType().GetTypeInfo(); + var type = proxy.GetType(); - var boolMethod = type.GetRuntimeInterfaceMap(boolInterfaceType).TargetMethods[0]; + var boolMethod = type.GetInterfaceMap(boolInterfaceType).TargetMethods[0]; Assert.AreEqual("SomeMethod", boolMethod.Name); - var intMethod = type.GetRuntimeInterfaceMap(intInterfaceType).TargetMethods[0]; + var intMethod = type.GetInterfaceMap(intInterfaceType).TargetMethods[0]; Assert.AreEqual("Castle.DynamicProxy.Tests.Interfaces.IGenericWithNonGenericMethod`1[Int32].SomeMethod", intMethod.Name); - var nestedGenericBoolMethod = type.GetRuntimeInterfaceMap(nestedGenericBoolInterfaceType).TargetMethods[0]; + var nestedGenericBoolMethod = type.GetInterfaceMap(nestedGenericBoolInterfaceType).TargetMethods[0]; Assert.AreEqual("Castle.DynamicProxy.Tests.Interfaces.IGenericWithNonGenericMethod`1[IGenericWithNonGenericMethod`1[Boolean]].SomeMethod", nestedGenericBoolMethod.Name); } @@ -248,20 +248,20 @@ public void Should_choose_noncolliding_property_accessor_names_when_implementing boolInterfaceType, new[] { intInterfaceType, nestedGenericBoolInterfaceType }); - var type = proxy.GetType().GetTypeInfo(); + var type = proxy.GetType(); - var boolGetter = type.GetRuntimeInterfaceMap(boolInterfaceType).TargetMethods[0]; - var boolSetter = type.GetRuntimeInterfaceMap(boolInterfaceType).TargetMethods[1]; + var boolGetter = type.GetInterfaceMap(boolInterfaceType).TargetMethods[0]; + var boolSetter = type.GetInterfaceMap(boolInterfaceType).TargetMethods[1]; Assert.AreEqual("get_SomeProperty", boolGetter.Name); Assert.AreEqual("set_SomeProperty", boolSetter.Name); - var intGetter = type.GetRuntimeInterfaceMap(intInterfaceType).TargetMethods[0]; - var intSetter = type.GetRuntimeInterfaceMap(intInterfaceType).TargetMethods[1]; + var intGetter = type.GetInterfaceMap(intInterfaceType).TargetMethods[0]; + var intSetter = type.GetInterfaceMap(intInterfaceType).TargetMethods[1]; Assert.AreEqual("Castle.DynamicProxy.Tests.Interfaces.IGenericWithProperty`1[Int32].get_SomeProperty", intGetter.Name); Assert.AreEqual("Castle.DynamicProxy.Tests.Interfaces.IGenericWithProperty`1[Int32].set_SomeProperty", intSetter.Name); - var nestedGenericBoolGetter = type.GetRuntimeInterfaceMap(nestedGenericBoolInterfaceType).TargetMethods[0]; - var nestedGenericBoolSetter = type.GetRuntimeInterfaceMap(nestedGenericBoolInterfaceType).TargetMethods[1]; + var nestedGenericBoolGetter = type.GetInterfaceMap(nestedGenericBoolInterfaceType).TargetMethods[0]; + var nestedGenericBoolSetter = type.GetInterfaceMap(nestedGenericBoolInterfaceType).TargetMethods[1]; Assert.AreEqual("Castle.DynamicProxy.Tests.Interfaces.IGenericWithProperty`1[IGenericWithProperty`1[Boolean]].get_SomeProperty", nestedGenericBoolGetter.Name); Assert.AreEqual("Castle.DynamicProxy.Tests.Interfaces.IGenericWithProperty`1[IGenericWithProperty`1[Boolean]].set_SomeProperty", nestedGenericBoolSetter.Name); } @@ -277,20 +277,20 @@ public void Should_choose_noncolliding_event_accessor_names_when_implementing_sa boolInterfaceType, new[] { intInterfaceType, nestedGenericBoolInterfaceType }); - var type = proxy.GetType().GetTypeInfo(); + var type = proxy.GetType(); - var boolAdder = type.GetRuntimeInterfaceMap(boolInterfaceType).TargetMethods[0]; - var boolRemover = type.GetRuntimeInterfaceMap(boolInterfaceType).TargetMethods[1]; + var boolAdder = type.GetInterfaceMap(boolInterfaceType).TargetMethods[0]; + var boolRemover = type.GetInterfaceMap(boolInterfaceType).TargetMethods[1]; Assert.AreEqual("add_SomeEvent", boolAdder.Name); Assert.AreEqual("remove_SomeEvent", boolRemover.Name); - var intAdder = type.GetRuntimeInterfaceMap(intInterfaceType).TargetMethods[0]; - var intRemover = type.GetRuntimeInterfaceMap(intInterfaceType).TargetMethods[1]; + var intAdder = type.GetInterfaceMap(intInterfaceType).TargetMethods[0]; + var intRemover = type.GetInterfaceMap(intInterfaceType).TargetMethods[1]; Assert.AreEqual("Castle.DynamicProxy.Tests.Interfaces.IGenericWithEvent`1[Int32].add_SomeEvent", intAdder.Name); Assert.AreEqual("Castle.DynamicProxy.Tests.Interfaces.IGenericWithEvent`1[Int32].remove_SomeEvent", intRemover.Name); - var nestedGenericBoolAdder = type.GetRuntimeInterfaceMap(nestedGenericBoolInterfaceType).TargetMethods[0]; - var nestedGenericBoolRemover = type.GetRuntimeInterfaceMap(nestedGenericBoolInterfaceType).TargetMethods[1]; + var nestedGenericBoolAdder = type.GetInterfaceMap(nestedGenericBoolInterfaceType).TargetMethods[0]; + var nestedGenericBoolRemover = type.GetInterfaceMap(nestedGenericBoolInterfaceType).TargetMethods[1]; Assert.AreEqual("Castle.DynamicProxy.Tests.Interfaces.IGenericWithEvent`1[IGenericWithEvent`1[Boolean]].add_SomeEvent", nestedGenericBoolAdder.Name); Assert.AreEqual("Castle.DynamicProxy.Tests.Interfaces.IGenericWithEvent`1[IGenericWithEvent`1[Boolean]].remove_SomeEvent", nestedGenericBoolRemover.Name); } @@ -306,15 +306,15 @@ public void Should_choose_noncolliding_member_names_when_implementing_same_gener boolIntInterfaceType, new[] { intBoolInterfaceType, intNestedGenericBoolInterfaceType }); - var type = proxy.GetType().GetTypeInfo(); + var type = proxy.GetType(); - var boolIntMethod = type.GetRuntimeInterfaceMap(boolIntInterfaceType).TargetMethods[0]; + var boolIntMethod = type.GetInterfaceMap(boolIntInterfaceType).TargetMethods[0]; Assert.AreEqual("SomeMethod", boolIntMethod.Name); - var intBoolMethod = type.GetRuntimeInterfaceMap(intBoolInterfaceType).TargetMethods[0]; + var intBoolMethod = type.GetInterfaceMap(intBoolInterfaceType).TargetMethods[0]; Assert.AreEqual("Castle.DynamicProxy.Tests.Interfaces.IGenericWithNonGenericMethod`2[Int32,Boolean].SomeMethod", intBoolMethod.Name); - var intNestedGenericBoolMethod = type.GetRuntimeInterfaceMap(intNestedGenericBoolInterfaceType).TargetMethods[0]; + var intNestedGenericBoolMethod = type.GetInterfaceMap(intNestedGenericBoolInterfaceType).TargetMethods[0]; Assert.AreEqual("Castle.DynamicProxy.Tests.Interfaces.IGenericWithNonGenericMethod`2[Int32,IGenericWithNonGenericMethod`1[Boolean]].SomeMethod", intNestedGenericBoolMethod.Name); } diff --git a/src/Castle.Core.Tests/DynamicProxy.Tests/CacheKeyTestCase.cs b/src/Castle.Core.Tests/DynamicProxy.Tests/CacheKeyTestCase.cs index 2a98a4245b..75dc7746a2 100644 --- a/src/Castle.Core.Tests/DynamicProxy.Tests/CacheKeyTestCase.cs +++ b/src/Castle.Core.Tests/DynamicProxy.Tests/CacheKeyTestCase.cs @@ -110,8 +110,8 @@ public void EquivalentOptions() [Test] public void EqualWithProxyForType() { - CacheKey key1 = new CacheKey(typeof (NonPublicConstructorClass).GetTypeInfo(), null, null, ProxyGenerationOptions.Default); - CacheKey key2 = new CacheKey(typeof (NonPublicConstructorClass).GetTypeInfo(), null, null, ProxyGenerationOptions.Default); + CacheKey key1 = new CacheKey(typeof (NonPublicConstructorClass), null, null, ProxyGenerationOptions.Default); + CacheKey key2 = new CacheKey(typeof (NonPublicConstructorClass), null, null, ProxyGenerationOptions.Default); Assert.AreEqual(key1, key2); @@ -127,8 +127,8 @@ public void EqualWithProxyForType() [Test] public void EqualNullAndEmptyInterfaces() { - CacheKey key1 = new CacheKey(typeof (NonPublicConstructorClass).GetTypeInfo(), null, null, ProxyGenerationOptions.Default); - CacheKey key2 = new CacheKey(typeof (NonPublicConstructorClass).GetTypeInfo(), null, Type.EmptyTypes, + CacheKey key1 = new CacheKey(typeof (NonPublicConstructorClass), null, null, ProxyGenerationOptions.Default); + CacheKey key2 = new CacheKey(typeof (NonPublicConstructorClass), null, Type.EmptyTypes, ProxyGenerationOptions.Default); Assert.AreEqual(key1, key2); diff --git a/src/Castle.Core.Tests/DynamicProxy.Tests/CanDefineAdditionalCustomAttributes.cs b/src/Castle.Core.Tests/DynamicProxy.Tests/CanDefineAdditionalCustomAttributes.cs index 9ccd214e4b..2678ed4809 100644 --- a/src/Castle.Core.Tests/DynamicProxy.Tests/CanDefineAdditionalCustomAttributes.cs +++ b/src/Castle.Core.Tests/DynamicProxy.Tests/CanDefineAdditionalCustomAttributes.cs @@ -52,7 +52,7 @@ public void On_class() var proxy = generator.CreateClassProxy(typeof(CanDefineAdditionalCustomAttributes), options); - Assert.IsTrue(proxy.GetType().GetTypeInfo().IsDefined(typeof(__Protect), false)); + Assert.IsTrue(proxy.GetType().IsDefined(typeof(__Protect), false)); } [Test] @@ -63,7 +63,7 @@ public void On_interfaces() var proxy = generator.CreateInterfaceProxyWithoutTarget(typeof(IDisposable), new Type[0], options); - Assert.IsTrue(proxy.GetType().GetTypeInfo().IsDefined(typeof(__Protect), false)); + Assert.IsTrue(proxy.GetType().IsDefined(typeof(__Protect), false)); } } diff --git a/src/Castle.Core.Tests/DynamicProxy.Tests/ClassEmitterTestCase.cs b/src/Castle.Core.Tests/DynamicProxy.Tests/ClassEmitterTestCase.cs index 0e7d755158..dd7c800d49 100644 --- a/src/Castle.Core.Tests/DynamicProxy.Tests/ClassEmitterTestCase.cs +++ b/src/Castle.Core.Tests/DynamicProxy.Tests/ClassEmitterTestCase.cs @@ -73,7 +73,7 @@ public void ForceUnsignedFalseWithSignedTypes() ClassEmitter emitter = new ClassEmitter(generator.ProxyBuilder.ModuleScope, "Foo", typeof (object), Type.EmptyTypes, TypeAttributes.Public, false); Type t = emitter.BuildType(); - Assert.AreEqual(shouldBeSigned, StrongNameUtil.IsAssemblySigned(t.GetTypeInfo().Assembly)); + Assert.AreEqual(shouldBeSigned, StrongNameUtil.IsAssemblySigned(t.Assembly)); } [Test] @@ -82,7 +82,7 @@ public void ForceUnsignedTrueWithSignedTypes() ClassEmitter emitter = new ClassEmitter(generator.ProxyBuilder.ModuleScope, "Foo", typeof (object), Type.EmptyTypes, TypeAttributes.Public, true); Type t = emitter.BuildType(); - Assert.IsFalse(StrongNameUtil.IsAssemblySigned(t.GetTypeInfo().Assembly)); + Assert.IsFalse(StrongNameUtil.IsAssemblySigned(t.Assembly)); } [Test] @@ -115,7 +115,7 @@ public void UsingClassEmitterForInterfaces() emitter.CreateMethod("MyMethod", MethodAttributes.Public | MethodAttributes.Abstract | MethodAttributes.Virtual, typeof(void), Type.EmptyTypes); Type t = emitter.BuildType(); - Assert.IsTrue(t.GetTypeInfo().IsInterface); + Assert.IsTrue(t.IsInterface); MethodInfo method = t.GetMethod("MyMethod"); Assert.IsNotNull(method); } @@ -169,7 +169,7 @@ public void NestedInterface() typeof(void), Type.EmptyTypes); Type inner = innerEmitter.BuildType(); Type outer = outerEmitter.BuildType(); - Assert.IsTrue(inner.GetTypeInfo().IsInterface); + Assert.IsTrue(inner.IsInterface); MethodInfo method = inner.GetMethod("MyMethod"); Assert.IsNotNull(method); Assert.AreSame(inner, outer.GetNestedType("IInner", BindingFlags.Public)); diff --git a/src/Castle.Core.Tests/DynamicProxy.Tests/ClassWithAttributesTestCase.cs b/src/Castle.Core.Tests/DynamicProxy.Tests/ClassWithAttributesTestCase.cs index 2779aa63dc..c9104a2005 100644 --- a/src/Castle.Core.Tests/DynamicProxy.Tests/ClassWithAttributesTestCase.cs +++ b/src/Castle.Core.Tests/DynamicProxy.Tests/ClassWithAttributesTestCase.cs @@ -31,7 +31,7 @@ public void EnsureProxyHasAttributesOnClassAndMethods() HasNonInheritableAttribute instance = (HasNonInheritableAttribute) generator.CreateClassProxy(typeof (HasNonInheritableAttribute), new StandardInterceptor()); - object[] attributes = instance.GetType().GetTypeInfo().GetCustomAttributes(typeof (NonInheritableAttribute), false).ToArray(); + object[] attributes = instance.GetType().GetCustomAttributes(typeof (NonInheritableAttribute), false).ToArray(); Assert.AreEqual(1, attributes.Length); Assert.IsInstanceOf(typeof (NonInheritableAttribute), attributes[0]); @@ -46,7 +46,7 @@ public void EnsureProxyHasAttributesOnClassAndMethods_ComplexAttributes() AttributedClass2 instance = (AttributedClass2) generator.CreateClassProxy(typeof (AttributedClass2), new StandardInterceptor()); - object[] attributes = instance.GetType().GetTypeInfo().GetCustomAttributes(typeof (ComplexNonInheritableAttribute), false).ToArray(); + object[] attributes = instance.GetType().GetCustomAttributes(typeof (ComplexNonInheritableAttribute), false).ToArray(); Assert.AreEqual(1, attributes.Length); Assert.IsInstanceOf(typeof (ComplexNonInheritableAttribute), attributes[0]); ComplexNonInheritableAttribute att = (ComplexNonInheritableAttribute) attributes[0]; @@ -109,14 +109,14 @@ public void EnsureProxyHasAttributesOnGenericArgument() { var proxy = generator.CreateClassProxy(); var nameProperty = proxy.GetType().GetMethod("OnGenericArgument").GetGenericArguments().Single(); - Assert.IsTrue(nameProperty.GetTypeInfo().IsDefined(typeof(NonInheritableAttribute), false)); + Assert.IsTrue(nameProperty.IsDefined(typeof(NonInheritableAttribute), false)); } [Test] public void Can_proxy_type_with_non_inheritable_attribute_depending_on_array_of_something_via_property() { var proxy = generator.CreateInterfaceProxyWithoutTarget(); - var attribute = proxy.GetType().GetTypeInfo() + var attribute = proxy.GetType() .GetCustomAttributes(typeof(NonInheritableWithArrayAttribute), false) .Cast().Single(); CollectionAssert.AreEqual(attribute.Values, new[] {"1", "2", "3"}); @@ -126,7 +126,7 @@ public void Can_proxy_type_with_non_inheritable_attribute_depending_on_array_of_ public void Can_proxy_type_with_non_inheritable_attribute_depending_on_array_of_something_via_field() { var proxy = generator.CreateInterfaceProxyWithoutTarget(); - var attribute = proxy.GetType().GetTypeInfo() + var attribute = proxy.GetType() .GetCustomAttributes(typeof(NonInheritableWithArray2Attribute), false) .Cast().Single(); CollectionAssert.AreEqual(attribute.Values, new[] { "1", "2", "3" }); diff --git a/src/Castle.Core.Tests/DynamicProxy.Tests/DelegateMixinTestCase.cs b/src/Castle.Core.Tests/DynamicProxy.Tests/DelegateMixinTestCase.cs index ace7091cf6..8f6cb534a4 100644 --- a/src/Castle.Core.Tests/DynamicProxy.Tests/DelegateMixinTestCase.cs +++ b/src/Castle.Core.Tests/DynamicProxy.Tests/DelegateMixinTestCase.cs @@ -100,7 +100,7 @@ public void ProxyGenerator_CreateClassProxy_can_create_callable_delegate_proxy_w Assert.NotNull(action); action.Invoke(); - Assert.AreSame(typeof(Action).GetTypeInfo().GetMethod("Invoke"), interceptor.LastInvocation.Method); + Assert.AreSame(typeof(Action).GetMethod("Invoke"), interceptor.LastInvocation.Method); } [Test] @@ -116,7 +116,7 @@ public void ProxyGenerator_CreateInterfaceProxyWithoutTarget_can_create_callable Assert.NotNull(action); action.Invoke(); - Assert.AreSame(typeof(Action).GetTypeInfo().GetMethod("Invoke"), interceptor.LastInvocation.Method); + Assert.AreSame(typeof(Action).GetMethod("Invoke"), interceptor.LastInvocation.Method); } [Test] @@ -134,7 +134,7 @@ public void ProxyGenerator_CreateInterfaceProxyWithTarget_can_create_callable_de Assert.NotNull(action); action.Invoke(); - Assert.AreSame(typeof(Action).GetTypeInfo().GetMethod("Invoke"), interceptor.LastInvocation.Method); + Assert.AreSame(typeof(Action).GetMethod("Invoke"), interceptor.LastInvocation.Method); } [Test] diff --git a/src/Castle.Core.Tests/DynamicProxy.Tests/ExplicitlyImplementedMethodNamesTestCase.cs b/src/Castle.Core.Tests/DynamicProxy.Tests/ExplicitlyImplementedMethodNamesTestCase.cs index 65ec70e9ec..ccac2eb4a4 100644 --- a/src/Castle.Core.Tests/DynamicProxy.Tests/ExplicitlyImplementedMethodNamesTestCase.cs +++ b/src/Castle.Core.Tests/DynamicProxy.Tests/ExplicitlyImplementedMethodNamesTestCase.cs @@ -65,8 +65,8 @@ private void AssertNamingSchemeOfExplicitlyImplementedMethods(Type b, Type c, Ty // are met. We verify those using NUnit assumptions: // We require two interface types that have the same name and a method named `M` each: - Assume.That(b.GetTypeInfo().IsInterface); - Assume.That(c.GetTypeInfo().IsInterface); + Assume.That(b.IsInterface); + Assume.That(c.IsInterface); Assume.That(b.Name == c.Name); Assume.That(b.GetMethod("M") != null); Assume.That(c.GetMethod("M") != null); diff --git a/src/Castle.Core.Tests/DynamicProxy.Tests/Interceptors/KeepDataInterceptor.cs b/src/Castle.Core.Tests/DynamicProxy.Tests/Interceptors/KeepDataInterceptor.cs index 01d05da68e..24fd5ddcec 100644 --- a/src/Castle.Core.Tests/DynamicProxy.Tests/Interceptors/KeepDataInterceptor.cs +++ b/src/Castle.Core.Tests/DynamicProxy.Tests/Interceptors/KeepDataInterceptor.cs @@ -35,7 +35,7 @@ public void Intercept(IInvocation invocation) { invocation.Proceed(); } - else if (concreteMethod.ReturnType.GetTypeInfo().IsValueType && !concreteMethod.ReturnType.Equals(typeof(void))) + else if (concreteMethod.ReturnType.IsValueType && !concreteMethod.ReturnType.Equals(typeof(void))) // ensure valid return value { invocation.ReturnValue = Activator.CreateInstance(concreteMethod.ReturnType); diff --git a/src/Castle.Core.Tests/DynamicProxy.Tests/Interceptors/LogInvocationInterceptor.cs b/src/Castle.Core.Tests/DynamicProxy.Tests/Interceptors/LogInvocationInterceptor.cs index 073942b710..6304243e86 100644 --- a/src/Castle.Core.Tests/DynamicProxy.Tests/Interceptors/LogInvocationInterceptor.cs +++ b/src/Castle.Core.Tests/DynamicProxy.Tests/Interceptors/LogInvocationInterceptor.cs @@ -40,7 +40,7 @@ protected override void PerformProceed (IInvocation invocation) { base.PerformProceed (invocation); } - else if (invocation.Method.ReturnType.GetTypeInfo().IsValueType && invocation.Method.ReturnType != typeof (void)) + else if (invocation.Method.ReturnType.IsValueType && invocation.Method.ReturnType != typeof (void)) { invocation.ReturnValue = Activator.CreateInstance (invocation.Method.ReturnType); // set default return value } diff --git a/src/Castle.Core.Tests/Program.cs b/src/Castle.Core.Tests/Program.cs index da431bfb1f..a5dbb5a2a2 100644 --- a/src/Castle.Core.Tests/Program.cs +++ b/src/Castle.Core.Tests/Program.cs @@ -7,7 +7,7 @@ internal class Program { public static int Main(string[] args) { - return new AutoRun(typeof(Program).GetTypeInfo().Assembly) + return new AutoRun(typeof(Program).Assembly) .Execute(args, new ExtendedTextWrapper(Console.Out), Console.In); } } \ No newline at end of file diff --git a/src/Castle.Core/Components.DictionaryAdapter/AbstractDictionaryAdapterVisitor.cs b/src/Castle.Core/Components.DictionaryAdapter/AbstractDictionaryAdapterVisitor.cs index 7d804e3b71..a94ced5967 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/AbstractDictionaryAdapterVisitor.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/AbstractDictionaryAdapterVisitor.cs @@ -69,7 +69,7 @@ public virtual bool VisitDictionaryAdapter(IDictionaryAdapter dictionaryAdapter, { VisitCollection(dictionaryAdapter, property, collectionItemType, state); } - else if (property.PropertyType.GetTypeInfo().IsInterface) + else if (property.PropertyType.IsInterface) { VisitInterface(dictionaryAdapter, property, state); } @@ -138,11 +138,11 @@ private static bool IsCollection(PropertyDescriptor property, out Type collectio var propertyType = property.PropertyType; if (propertyType != typeof(string) && typeof(IEnumerable).IsAssignableFrom(propertyType)) { - if (propertyType.GetTypeInfo().IsArray) + if (propertyType.IsArray) { collectionItemType = propertyType.GetElementType(); } - else if (propertyType.GetTypeInfo().IsGenericType) + else if (propertyType.IsGenericType) { var arguments = propertyType.GetGenericArguments(); collectionItemType = arguments[0]; diff --git a/src/Castle.Core/Components.DictionaryAdapter/Attributes/OnDemandAttribute.cs b/src/Castle.Core/Components.DictionaryAdapter/Attributes/OnDemandAttribute.cs index 509576ea26..611ee17faa 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Attributes/OnDemandAttribute.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Attributes/OnDemandAttribute.cs @@ -67,7 +67,7 @@ public object GetPropertyValue(IDictionaryAdapter dictionaryAdapter, string key, if (IsAcceptedType(type)) { - if (type.GetTypeInfo().IsInterface) + if (type.IsInterface) { if (property.IsDynamicProperty == false) { @@ -77,7 +77,7 @@ public object GetPropertyValue(IDictionaryAdapter dictionaryAdapter, string key, } } } - else if (type.GetTypeInfo().IsArray) + else if (type.IsArray) { storedValue = Array.CreateInstance(type.GetElementType(), 0); } @@ -139,7 +139,7 @@ public object GetPropertyValue(IDictionaryAdapter dictionaryAdapter, string key, private static bool IsAcceptedType(Type type) { - return type != null && type != typeof(string) && !type.GetTypeInfo().IsPrimitive && !type.GetTypeInfo().IsEnum; + return type != null && type != typeof(string) && !type.IsPrimitive && !type.IsEnum; } private static Type GetInferredType(IDictionaryAdapter dictionaryAdapter, PropertyDescriptor property, out IValueInitializer initializer) @@ -155,7 +155,7 @@ private static Type GetInferredType(IDictionaryAdapter dictionaryAdapter, Proper Type collectionType = null; - if (type.GetTypeInfo().IsGenericType) + if (type.IsGenericType) { var genericDef = type.GetGenericTypeDefinition(); var genericArg = type.GetGenericArguments()[0]; @@ -169,7 +169,7 @@ private static Type GetInferredType(IDictionaryAdapter dictionaryAdapter, Proper collectionType = isBindingList ? typeof(EditableBindingList<>) : typeof(EditableList<>); } - if (isBindingList && genericArg.GetTypeInfo().IsInterface) + if (isBindingList && genericArg.IsInterface) { Func addNew = () => dictionaryAdapter.Create(genericArg); initializer = (IValueInitializer)Activator.CreateInstance( diff --git a/src/Castle.Core/Components.DictionaryAdapter/Attributes/RemoveIfAttribute.cs b/src/Castle.Core/Components.DictionaryAdapter/Attributes/RemoveIfAttribute.cs index bbbf0135db..593ac8dddf 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Attributes/RemoveIfAttribute.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Attributes/RemoveIfAttribute.cs @@ -78,7 +78,7 @@ private static TBase Construct(Type type, string paramName) throw new ArgumentNullException(paramName); } - if (type.GetTypeInfo().IsAbstract == false && typeof(TBase).IsAssignableFrom(type)) + if (type.IsAbstract == false && typeof(TBase).IsAssignableFrom(type)) { var constructor = type.GetConstructor(Type.EmptyTypes); if (constructor != null) diff --git a/src/Castle.Core/Components.DictionaryAdapter/Attributes/StringListAttribute.cs b/src/Castle.Core/Components.DictionaryAdapter/Attributes/StringListAttribute.cs index baec69ac4b..b5465f4ab5 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Attributes/StringListAttribute.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Attributes/StringListAttribute.cs @@ -46,7 +46,7 @@ object IDictionaryPropertyGetter.GetPropertyValue(IDictionaryAdapter dictionaryA if (storedValue == null || !storedValue.GetType().IsInstanceOfType(propertyType)) { - if (propertyType.GetTypeInfo().IsGenericType) + if (propertyType.IsGenericType) { var genericDef = propertyType.GetGenericTypeDefinition(); diff --git a/src/Castle.Core/Components.DictionaryAdapter/DictionaryAdapterFactory.cs b/src/Castle.Core/Components.DictionaryAdapter/DictionaryAdapterFactory.cs index 09a06f2f47..7598fb8e56 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/DictionaryAdapterFactory.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/DictionaryAdapterFactory.cs @@ -122,7 +122,7 @@ private DictionaryAdapterMeta InternalGetAdapterMeta(Type type, { if (type == null) throw new ArgumentNullException("type"); - if (type.GetTypeInfo().IsInterface == false) + if (type.IsInterface == false) throw new ArgumentException("Only interfaces can be adapted to a dictionary", "type"); return interfaceToMeta.GetOrAdd(type, t => @@ -198,7 +198,7 @@ private DictionaryAdapterMeta CreateAdapterMeta(Type type, TypeBuilder typeBuild var implementation = typeBuilder.CreateTypeInfo(); var creator = (Func)implementation - .GetTypeInfo().GetDeclaredMethod("__Create") + .GetDeclaredMethod("__Create") .CreateDelegate(typeof(Func)); var meta = new DictionaryAdapterMeta(type, implementation, typeBehaviors, @@ -370,7 +370,7 @@ private static void CreatePropertySetMethod(TypeBuilder typeBuilder, PropertyBui PreparePropertyMethod(descriptor, setILGenerator); setILGenerator.Emit(OpCodes.Ldarg_1); - if (descriptor.PropertyType.GetTypeInfo().IsValueType) + if (descriptor.PropertyType.IsValueType) { setILGenerator.Emit(OpCodes.Box, descriptor.PropertyType); } diff --git a/src/Castle.Core/Components.DictionaryAdapter/Util/ListProjection.cs b/src/Castle.Core/Components.DictionaryAdapter/Util/ListProjection.cs index ce19eef9ed..531a15c00e 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Util/ListProjection.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Util/ListProjection.cs @@ -415,7 +415,7 @@ public void RejectChanges() private void AttachPropertyChanged(T value) { - if (typeof(T).GetTypeInfo().IsValueType) + if (typeof(T).IsValueType) return; var notifier = value as INotifyPropertyChanged; @@ -430,7 +430,7 @@ private void AttachPropertyChanged(T value) private void DetachPropertyChanged(T value) { - if (typeof(T).GetTypeInfo().IsValueType) + if (typeof(T).IsValueType) return; var notifier = value as INotifyPropertyChanged; diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/XmlMetadata.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/XmlMetadata.cs index 789623351b..342a20cbf0 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/XmlMetadata.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/XmlMetadata.cs @@ -284,7 +284,7 @@ public XmlName GetDefaultXsiType(Type clrType) switch (kind) { case XmlTypeKind.Complex: - if (!clrType.GetTypeInfo().IsInterface) goto default; + if (!clrType.IsInterface) goto default; return GetXmlMetadata(clrType).XsiType; case XmlTypeKind.Collection: @@ -338,7 +338,7 @@ private bool TryGetXmlMetadata(Type clrType, out XmlMetadata metadata) { var kind = XmlTypeSerializer.For(clrType).Kind; - return kind == XmlTypeKind.Complex && clrType.GetTypeInfo().IsInterface + return kind == XmlTypeKind.Complex && clrType.IsInterface ? Try.Success(out metadata, GetXmlMetadata(clrType)) : Try.Failure(out metadata); } diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/XmlReferenceManager.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/XmlReferenceManager.cs index 1e09b58a5f..3f11932e74 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/XmlReferenceManager.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Core/XmlReferenceManager.cs @@ -421,7 +421,7 @@ private static void SetNotInGraph(Entry entry, object value) private static bool ShouldExclude(Type type) { - return type.GetTypeInfo().IsValueType + return type.IsValueType || type == StringType; } diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlTypeSerializerCache.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlTypeSerializerCache.cs index 43b1fa0c6b..a22740201a 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlTypeSerializerCache.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Serializers/XmlTypeSerializerCache.cs @@ -53,10 +53,10 @@ private XmlTypeSerializerCache() private static XmlTypeSerializer CreateSerializer(Type type) { - if (type.GetTypeInfo().IsArray) + if (type.IsArray) return XmlArraySerializer.Instance; - if (type.GetTypeInfo().IsGenericType) + if (type.IsGenericType) { var genericType = type.GetGenericTypeDefinition(); if (genericType == typeof(IList<>) || @@ -84,9 +84,9 @@ private static XmlTypeSerializer CreateSerializer(Type type) throw Error.UnsupportedCollectionType(type); } - if (type.GetTypeInfo().IsInterface) + if (type.IsInterface) return XmlComponentSerializer.Instance; - if (type.GetTypeInfo().IsEnum) + if (type.IsEnum) return XmlEnumerationSerializer.Instance; if (type.IsCustomSerializable()) return XmlCustomSerializer.Instance; diff --git a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/TypeExtensions.cs b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/TypeExtensions.cs index 8bee8d2f1e..c9d0411344 100644 --- a/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/TypeExtensions.cs +++ b/src/Castle.Core/Components.DictionaryAdapter/Xml/Internal/Utilities/TypeExtensions.cs @@ -23,7 +23,7 @@ public static class TypeExtensions { public static Type NonNullable(this Type type) { - return type.GetTypeInfo().IsGenericType + return type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>) ? type.GetGenericArguments()[0] : type; @@ -31,9 +31,9 @@ public static Type NonNullable(this Type type) public static Type GetCollectionItemType(this Type type) { - if (type.GetTypeInfo().IsArray) + if (type.IsArray) return type.GetElementType(); - if (type.GetTypeInfo().IsGenericType) + if (type.IsGenericType) return type.GetGenericArguments().Single(); throw Error.NotCollectionType("type"); } diff --git a/src/Castle.Core/Core/Internal/AttributesUtil.cs b/src/Castle.Core/Core/Internal/AttributesUtil.cs index b3fd1f4f5a..10315a855a 100644 --- a/src/Castle.Core/Core/Internal/AttributesUtil.cs +++ b/src/Castle.Core/Core/Internal/AttributesUtil.cs @@ -42,7 +42,7 @@ public static T GetAttribute(this Type type) where T : Attribute /// The type attributes. public static IEnumerable GetAttributes(this Type type) where T : Attribute { - foreach (T a in type.GetTypeInfo().GetCustomAttributes(typeof(T), false)) + foreach (T a in type.GetCustomAttributes(typeof(T), false)) { yield return a; } @@ -121,7 +121,7 @@ public static T[] GetTypeAttributes(Type type) where T : Attribute public static AttributeUsageAttribute GetAttributeUsage(this Type attributeType) { - var attributes = attributeType.GetTypeInfo().GetCustomAttributes(true).ToArray(); + var attributes = attributeType.GetCustomAttributes(true).ToArray(); return attributes.Length != 0 ? attributes[0] : DefaultAttributeUsage; } diff --git a/src/Castle.Core/Core/Internal/InterfaceAttributeUtil.cs b/src/Castle.Core/Core/Internal/InterfaceAttributeUtil.cs index bd00294b65..9564894bc1 100644 --- a/src/Castle.Core/Core/Internal/InterfaceAttributeUtil.cs +++ b/src/Castle.Core/Core/Internal/InterfaceAttributeUtil.cs @@ -45,10 +45,10 @@ private bool IsMostDerivedType public static object[] GetAttributes(Type type, bool inherit) { - if (type.GetTypeInfo().IsInterface == false) + if (type.IsInterface == false) throw new ArgumentOutOfRangeException("type"); - var attributes = type.GetTypeInfo().GetCustomAttributes(false).ToArray(); + var attributes = type.GetCustomAttributes(false).ToArray(); var baseTypes = type.GetInterfaces(); if (baseTypes.Length == 0 || !inherit) @@ -91,7 +91,7 @@ private Aged[] CollectTypes(Type derivedType, Type[] baseTypes) private object[] GetAttributes(object[] attributes) { for (index = types.Length - 1; index > 0; index--) - ProcessType(CurrentType.GetTypeInfo().GetCustomAttributes(false).ToArray()); + ProcessType(CurrentType.GetCustomAttributes(false).ToArray()); ProcessType(attributes); diff --git a/src/Castle.Core/Core/ProxyServices.cs b/src/Castle.Core/Core/ProxyServices.cs index b05128d48b..b3eb343903 100644 --- a/src/Castle.Core/Core/ProxyServices.cs +++ b/src/Castle.Core/Core/ProxyServices.cs @@ -32,7 +32,7 @@ public static class ProxyServices /// public static bool IsDynamicProxy(Type type) { - string assemblyName = type.GetTypeInfo().Assembly.FullName; + string assemblyName = type.Assembly.FullName; return (assemblyName.StartsWith("DynamicAssemblyProxyGen", StringComparison.Ordinal) || assemblyName.StartsWith("DynamicProxyGenAssembly2", StringComparison.Ordinal)); diff --git a/src/Castle.Core/DynamicProxy/AbstractInvocation.cs b/src/Castle.Core/DynamicProxy/AbstractInvocation.cs index 74993b6314..023b6844d6 100644 --- a/src/Castle.Core/DynamicProxy/AbstractInvocation.cs +++ b/src/Castle.Core/DynamicProxy/AbstractInvocation.cs @@ -152,7 +152,7 @@ protected void ThrowOnNoTarget() string methodKindIs; string methodKindDescription; - if (Method.DeclaringType.GetTypeInfo().IsClass && Method.IsAbstract) + if (Method.DeclaringType.IsClass && Method.IsAbstract) { methodKindIs = "is abstract"; methodKindDescription = "an abstract method"; diff --git a/src/Castle.Core/DynamicProxy/Contributors/ClassProxyInstanceContributor.cs b/src/Castle.Core/DynamicProxy/Contributors/ClassProxyInstanceContributor.cs index 82ebf0f3eb..dd944532bf 100644 --- a/src/Castle.Core/DynamicProxy/Contributors/ClassProxyInstanceContributor.cs +++ b/src/Castle.Core/DynamicProxy/Contributors/ClassProxyInstanceContributor.cs @@ -65,7 +65,7 @@ public override void Generate(ClassEmitter @class, ProxyGenerationOptions option } #endif ImplementProxyTargetAccessor(@class, interceptors); - foreach (var attribute in targetType.GetTypeInfo().GetNonInheritableAttributes()) + foreach (var attribute in targetType.GetNonInheritableAttributes()) { @class.DefineCustomAttribute(attribute.Builder); } diff --git a/src/Castle.Core/DynamicProxy/Contributors/ClassProxyTargetContributor.cs b/src/Castle.Core/DynamicProxy/Contributors/ClassProxyTargetContributor.cs index cd20725586..ecf3a58add 100644 --- a/src/Castle.Core/DynamicProxy/Contributors/ClassProxyTargetContributor.cs +++ b/src/Castle.Core/DynamicProxy/Contributors/ClassProxyTargetContributor.cs @@ -50,7 +50,7 @@ protected override IEnumerable CollectElementsToProxyInternal( foreach (var @interface in interfaces) { var item = new InterfaceMembersOnClassCollector(@interface, true, - targetType.GetTypeInfo().GetRuntimeInterfaceMap(@interface)) { Logger = Logger }; + targetType.GetInterfaceMap(@interface)) { Logger = Logger }; item.CollectMembersToProxy(hook); yield return item; } @@ -159,7 +159,7 @@ private MethodGenerator ExplicitlyImplementedInterfaceMethodGenerator(MetaMethod private IInvocationCreationContributor GetContributor(Type @delegate, MetaMethod method) { - if (@delegate.GetTypeInfo().IsGenericType == false) + if (@delegate.IsGenericType == false) { return new InvocationWithDelegateContributor(@delegate, targetType, method, namingScope); } @@ -172,7 +172,7 @@ private Type GetDelegateType(MetaMethod method, ClassEmitter @class, ProxyGenera { var scope = @class.ModuleScope; var key = new CacheKey( - typeof(Delegate).GetTypeInfo(), + typeof(Delegate), targetType, new[] { method.MethodOnTarget.ReturnType } .Concat(ArgumentsUtil.GetTypes(method.MethodOnTarget.GetParameters())). diff --git a/src/Castle.Core/DynamicProxy/Contributors/ClassProxyWithTargetTargetContributor.cs b/src/Castle.Core/DynamicProxy/Contributors/ClassProxyWithTargetTargetContributor.cs index 9ec2ef1b47..8e290f2867 100644 --- a/src/Castle.Core/DynamicProxy/Contributors/ClassProxyWithTargetTargetContributor.cs +++ b/src/Castle.Core/DynamicProxy/Contributors/ClassProxyWithTargetTargetContributor.cs @@ -49,7 +49,7 @@ protected override IEnumerable CollectElementsToProxyInternal( foreach (var @interface in interfaces) { var item = new InterfaceMembersOnClassCollector(@interface, true, - targetType.GetTypeInfo().GetRuntimeInterfaceMap(@interface)) { Logger = Logger }; + targetType.GetInterfaceMap(@interface)) { Logger = Logger }; item.CollectMembersToProxy(hook); yield return item; } @@ -106,7 +106,7 @@ private Type BuildInvocationType(MetaMethod method, ClassEmitter @class, ProxyGe private IInvocationCreationContributor GetContributor(Type @delegate, MetaMethod method) { - if (@delegate.GetTypeInfo().IsGenericType == false) + if (@delegate.IsGenericType == false) { return new InvocationWithDelegateContributor(@delegate, targetType, method, namingScope); } @@ -119,7 +119,7 @@ private Type GetDelegateType(MetaMethod method, ClassEmitter @class, ProxyGenera { var scope = @class.ModuleScope; var key = new CacheKey( - typeof(Delegate).GetTypeInfo(), + typeof(Delegate), targetType, new[] { method.MethodOnTarget.ReturnType } .Concat(ArgumentsUtil.GetTypes(method.MethodOnTarget.GetParameters())). diff --git a/src/Castle.Core/DynamicProxy/Contributors/CompositeTypeContributor.cs b/src/Castle.Core/DynamicProxy/Contributors/CompositeTypeContributor.cs index 359a9e348a..40a57e3189 100644 --- a/src/Castle.Core/DynamicProxy/Contributors/CompositeTypeContributor.cs +++ b/src/Castle.Core/DynamicProxy/Contributors/CompositeTypeContributor.cs @@ -99,7 +99,7 @@ public virtual void Generate(ClassEmitter @class, ProxyGenerationOptions options public void AddInterfaceToProxy(Type @interface) { Debug.Assert(@interface != null, "@interface == null", "Shouldn't be adding empty interfaces..."); - Debug.Assert(@interface.GetTypeInfo().IsInterface || @interface.IsDelegateType(), "@interface.IsInterface || @interface.IsDelegateType()", "Should be adding interfaces or delegate types only..."); + Debug.Assert(@interface.IsInterface || @interface.IsDelegateType(), "@interface.IsInterface || @interface.IsDelegateType()", "Should be adding interfaces or delegate types only..."); Debug.Assert(!interfaces.Contains(@interface), "!interfaces.ContainsKey(@interface)", "Shouldn't be adding same interface twice..."); diff --git a/src/Castle.Core/DynamicProxy/Contributors/InterfaceProxyTargetContributor.cs b/src/Castle.Core/DynamicProxy/Contributors/InterfaceProxyTargetContributor.cs index 4c333be11c..987a0528f2 100644 --- a/src/Castle.Core/DynamicProxy/Contributors/InterfaceProxyTargetContributor.cs +++ b/src/Castle.Core/DynamicProxy/Contributors/InterfaceProxyTargetContributor.cs @@ -50,7 +50,7 @@ protected override IEnumerable CollectElementsToProxyInternal( protected virtual MembersCollector GetCollectorForInterface(Type @interface) { return new InterfaceMembersOnClassCollector(@interface, false, - proxyTargetType.GetTypeInfo().GetRuntimeInterfaceMap(@interface)); + proxyTargetType.GetInterfaceMap(@interface)); } protected override MethodGenerator GetMethodGenerator(MetaMethod method, ClassEmitter @class, diff --git a/src/Castle.Core/DynamicProxy/Contributors/InvocationWithDelegateContributor.cs b/src/Castle.Core/DynamicProxy/Contributors/InvocationWithDelegateContributor.cs index 1d14b81dba..742c0ab53d 100644 --- a/src/Castle.Core/DynamicProxy/Contributors/InvocationWithDelegateContributor.cs +++ b/src/Castle.Core/DynamicProxy/Contributors/InvocationWithDelegateContributor.cs @@ -33,7 +33,7 @@ public class InvocationWithDelegateContributor : IInvocationCreationContributor public InvocationWithDelegateContributor(Type delegateType, Type targetType, MetaMethod method, INamingScope namingScope) { - Debug.Assert(delegateType.GetTypeInfo().IsGenericType == false, "delegateType.IsGenericType == false"); + Debug.Assert(delegateType.IsGenericType == false, "delegateType.IsGenericType == false"); this.delegateType = delegateType; this.targetType = targetType; this.method = method; diff --git a/src/Castle.Core/DynamicProxy/Contributors/InvocationWithGenericDelegateContributor.cs b/src/Castle.Core/DynamicProxy/Contributors/InvocationWithGenericDelegateContributor.cs index 41531f002c..97374f8105 100644 --- a/src/Castle.Core/DynamicProxy/Contributors/InvocationWithGenericDelegateContributor.cs +++ b/src/Castle.Core/DynamicProxy/Contributors/InvocationWithGenericDelegateContributor.cs @@ -33,7 +33,7 @@ public class InvocationWithGenericDelegateContributor : IInvocationCreationContr public InvocationWithGenericDelegateContributor(Type delegateType, MetaMethod method, Reference targetReference) { - Debug.Assert(delegateType.GetTypeInfo().IsGenericType, "delegateType.IsGenericType"); + Debug.Assert(delegateType.IsGenericType, "delegateType.IsGenericType"); this.delegateType = delegateType; this.method = method; this.targetReference = targetReference; diff --git a/src/Castle.Core/DynamicProxy/Contributors/MembersCollector.cs b/src/Castle.Core/DynamicProxy/Contributors/MembersCollector.cs index 8198bc672c..0a8728cd21 100644 --- a/src/Castle.Core/DynamicProxy/Contributors/MembersCollector.cs +++ b/src/Castle.Core/DynamicProxy/Contributors/MembersCollector.cs @@ -248,7 +248,7 @@ protected bool AcceptMethod(MethodInfo method, bool onlyVirtuals, IProxyGenerati private static bool IsInternalAndNotVisibleToDynamicProxy(MethodInfo method) { return ProxyUtil.IsInternal(method) && - ProxyUtil.AreInternalsVisibleToDynamicProxy(method.DeclaringType.GetTypeInfo().Assembly) == false; + ProxyUtil.AreInternalsVisibleToDynamicProxy(method.DeclaringType.Assembly) == false; } } } \ No newline at end of file diff --git a/src/Castle.Core/DynamicProxy/Contributors/MixinContributor.cs b/src/Castle.Core/DynamicProxy/Contributors/MixinContributor.cs index 197e38b7eb..02eacf0eb7 100644 --- a/src/Castle.Core/DynamicProxy/Contributors/MixinContributor.cs +++ b/src/Castle.Core/DynamicProxy/Contributors/MixinContributor.cs @@ -46,7 +46,7 @@ public IEnumerable Fields public void AddEmptyInterface(Type @interface) { Debug.Assert(@interface != null, "@interface == null", "Shouldn't be adding empty interfaces..."); - Debug.Assert(@interface.GetTypeInfo().IsInterface, "@interface.IsInterface", "Should be adding interfaces only..."); + Debug.Assert(@interface.IsInterface, "@interface.IsInterface", "Should be adding interfaces only..."); Debug.Assert(!interfaces.Contains(@interface), "!interfaces.Contains(@interface)", "Shouldn't be adding same interface twice..."); Debug.Assert(!empty.Contains(@interface), "!empty.Contains(@interface)", @@ -74,7 +74,7 @@ protected override IEnumerable CollectElementsToProxyInternal( foreach (var @interface in interfaces) { MembersCollector item; - if (@interface.GetTypeInfo().IsInterface) + if (@interface.IsInterface) { item = new InterfaceMembersCollector(@interface); } diff --git a/src/Castle.Core/DynamicProxy/Contributors/ProxyInstanceContributor.cs b/src/Castle.Core/DynamicProxy/Contributors/ProxyInstanceContributor.cs index ca57a51239..488b52e4c4 100644 --- a/src/Castle.Core/DynamicProxy/Contributors/ProxyInstanceContributor.cs +++ b/src/Castle.Core/DynamicProxy/Contributors/ProxyInstanceContributor.cs @@ -57,7 +57,7 @@ public virtual void Generate(ClassEmitter @class, ProxyGenerationOptions options ImplementGetObjectData(@class); #endif ImplementProxyTargetAccessor(@class, interceptors); - foreach (var attribute in targetType.GetTypeInfo().GetNonInheritableAttributes()) + foreach (var attribute in targetType.GetNonInheritableAttributes()) { @class.DefineCustomAttribute(attribute.Builder); } diff --git a/src/Castle.Core/DynamicProxy/CustomAttributeInfo.cs b/src/Castle.Core/DynamicProxy/CustomAttributeInfo.cs index dc575fe196..b2d8c23389 100644 --- a/src/Castle.Core/DynamicProxy/CustomAttributeInfo.cs +++ b/src/Castle.Core/DynamicProxy/CustomAttributeInfo.cs @@ -208,7 +208,7 @@ private static object GetAttributeArgumentValue(Expression arg, bool allowArray) private static bool IsCompilerGenerated(Type type) { - return type.GetTypeInfo().IsDefined(typeof(CompilerGeneratedAttribute)); + return type.IsDefined(typeof(CompilerGeneratedAttribute)); } internal CustomAttributeBuilder Builder @@ -337,7 +337,7 @@ int IEqualityComparer.GetHashCode(object obj) private static IEnumerable AsObjectEnumerable(object array) { // Covariance doesn't work for value types - if (array.GetType().GetElementType().GetTypeInfo().IsValueType) + if (array.GetType().GetElementType().IsValueType) return ((Array)array).Cast(); return (IEnumerable)array; diff --git a/src/Castle.Core/DynamicProxy/DefaultProxyBuilder.cs b/src/Castle.Core/DynamicProxy/DefaultProxyBuilder.cs index ec435a3c41..45d092cc53 100644 --- a/src/Castle.Core/DynamicProxy/DefaultProxyBuilder.cs +++ b/src/Castle.Core/DynamicProxy/DefaultProxyBuilder.cs @@ -116,7 +116,7 @@ private void AssertValidType(Type target) private void AssertValidTypeForTarget(Type type, Type target) { - if (type.GetTypeInfo().IsGenericTypeDefinition) + if (type.IsGenericTypeDefinition) { throw new GeneratorException(string.Format("Can not create proxy for type {0} because type {1} is an open generic type.", target.GetBestName(), type.GetBestName())); diff --git a/src/Castle.Core/DynamicProxy/ExceptionMessageBuilder.cs b/src/Castle.Core/DynamicProxy/ExceptionMessageBuilder.cs index 17dc4e5a9e..7b32af7c61 100644 --- a/src/Castle.Core/DynamicProxy/ExceptionMessageBuilder.cs +++ b/src/Castle.Core/DynamicProxy/ExceptionMessageBuilder.cs @@ -67,7 +67,7 @@ bool ReferencesCastleCore(Assembly ia) /// the type that couldn't be proxied public static string CreateMessageForInaccessibleType(Type inaccessibleType, Type typeToProxy) { - var targetAssembly = typeToProxy.GetTypeInfo().Assembly; + var targetAssembly = typeToProxy.Assembly; string inaccessibleTypeDescription = inaccessibleType == typeToProxy ? "it" diff --git a/src/Castle.Core/DynamicProxy/Generators/AttributesToAvoidReplicating.cs b/src/Castle.Core/DynamicProxy/Generators/AttributesToAvoidReplicating.cs index c20e333891..e177d06571 100644 --- a/src/Castle.Core/DynamicProxy/Generators/AttributesToAvoidReplicating.cs +++ b/src/Castle.Core/DynamicProxy/Generators/AttributesToAvoidReplicating.cs @@ -59,7 +59,7 @@ public static bool Contains(Type attribute) internal static bool ShouldAvoid(Type attribute) { - return attributes.Any(attr => attr.GetTypeInfo().IsAssignableFrom(attribute.GetTypeInfo())); + return attributes.Any(attr => attr.IsAssignableFrom(attribute)); } } } \ No newline at end of file diff --git a/src/Castle.Core/DynamicProxy/Generators/BaseProxyGenerator.cs b/src/Castle.Core/DynamicProxy/Generators/BaseProxyGenerator.cs index 33f3119985..0777824c19 100644 --- a/src/Castle.Core/DynamicProxy/Generators/BaseProxyGenerator.cs +++ b/src/Castle.Core/DynamicProxy/Generators/BaseProxyGenerator.cs @@ -84,7 +84,7 @@ protected void AddMapping(Type @interface, ITypeContributor implementer, IDictio { Debug.Assert(implementer != null, "implementer != null"); Debug.Assert(@interface != null, "@interface != null"); - Debug.Assert(@interface.GetTypeInfo().IsInterface, "@interface.IsInterface"); + Debug.Assert(@interface.IsInterface, "@interface.IsInterface"); if (!mapping.ContainsKey(@interface)) { @@ -126,7 +126,7 @@ protected virtual ClassEmitter BuildClassEmitter(string typeName, Type parentTyp protected void CheckNotGenericTypeDefinition(Type type, string argumentName) { - if (type != null && type.GetTypeInfo().IsGenericTypeDefinition) + if (type != null && type.IsGenericTypeDefinition) { throw new ArgumentException("Type cannot be a generic type definition. Type: " + type.FullName, argumentName); } diff --git a/src/Castle.Core/DynamicProxy/Generators/CacheKey.cs b/src/Castle.Core/DynamicProxy/Generators/CacheKey.cs index b478f7a6d7..071848b232 100644 --- a/src/Castle.Core/DynamicProxy/Generators/CacheKey.cs +++ b/src/Castle.Core/DynamicProxy/Generators/CacheKey.cs @@ -52,7 +52,7 @@ public CacheKey(MemberInfo target, Type type, Type[] interfaces, ProxyGeneration /// The interfaces. /// The options. public CacheKey(Type target, Type[] interfaces, ProxyGenerationOptions options) - : this(target.GetTypeInfo(), null, interfaces, options) + : this(target, null, interfaces, options) { } diff --git a/src/Castle.Core/DynamicProxy/Generators/ClassProxyWithTargetGenerator.cs b/src/Castle.Core/DynamicProxy/Generators/ClassProxyWithTargetGenerator.cs index 84ffd13e6e..b402e5f047 100644 --- a/src/Castle.Core/DynamicProxy/Generators/ClassProxyWithTargetGenerator.cs +++ b/src/Castle.Core/DynamicProxy/Generators/ClassProxyWithTargetGenerator.cs @@ -47,7 +47,7 @@ public ClassProxyWithTargetGenerator(ModuleScope scope, Type classToProxy, Type[ public Type GetGeneratedType() { - var cacheKey = new CacheKey(targetType.GetTypeInfo(), targetType, additionalInterfacesToProxy, ProxyGenerationOptions); + var cacheKey = new CacheKey(targetType, targetType, additionalInterfacesToProxy, ProxyGenerationOptions); return ObtainProxyType(cacheKey, GenerateType); } diff --git a/src/Castle.Core/DynamicProxy/Generators/Emitters/AbstractTypeEmitter.cs b/src/Castle.Core/DynamicProxy/Generators/Emitters/AbstractTypeEmitter.cs index 9a9b0ce809..c7cfcc3f14 100644 --- a/src/Castle.Core/DynamicProxy/Generators/Emitters/AbstractTypeEmitter.cs +++ b/src/Castle.Core/DynamicProxy/Generators/Emitters/AbstractTypeEmitter.cs @@ -285,7 +285,7 @@ public Type[] GetGenericArgumentsFor(Type genericType) foreach (var genType in genericType.GetGenericArguments()) { - if (genType.GetTypeInfo().IsGenericParameter) + if (genType.IsGenericParameter) { types.Add(name2GenericType[genType.Name]); } diff --git a/src/Castle.Core/DynamicProxy/Generators/Emitters/ArgumentsUtil.cs b/src/Castle.Core/DynamicProxy/Generators/Emitters/ArgumentsUtil.cs index 118a1e61d1..b6649b9257 100644 --- a/src/Castle.Core/DynamicProxy/Generators/Emitters/ArgumentsUtil.cs +++ b/src/Castle.Core/DynamicProxy/Generators/Emitters/ArgumentsUtil.cs @@ -121,7 +121,7 @@ public static bool IsAnyByRef(ParameterInfo[] parameters) { for (var i = 0; i < parameters.Length; i++) { - if (parameters[i].ParameterType.GetTypeInfo().IsByRef) + if (parameters[i].ParameterType.IsByRef) { return true; } diff --git a/src/Castle.Core/DynamicProxy/Generators/Emitters/ClassEmitter.cs b/src/Castle.Core/DynamicProxy/Generators/Emitters/ClassEmitter.cs index 0be0c0345a..49a25ed4ba 100644 --- a/src/Castle.Core/DynamicProxy/Generators/Emitters/ClassEmitter.cs +++ b/src/Castle.Core/DynamicProxy/Generators/Emitters/ClassEmitter.cs @@ -51,7 +51,7 @@ public ClassEmitter(ModuleScope modulescope, String name, Type baseType, IEnumer { foreach (var inter in interfaces) { - if (inter.GetTypeInfo().IsInterface) + if (inter.IsInterface) { TypeBuilder.AddInterfaceImplementation(inter); } @@ -84,7 +84,7 @@ internal bool InStrongNamedModule protected virtual IEnumerable InitializeGenericArgumentsFromBases(ref Type baseType, IEnumerable interfaces) { - if (baseType != null && baseType.GetTypeInfo().IsGenericTypeDefinition) + if (baseType != null && baseType.IsGenericTypeDefinition) { throw new NotSupportedException("ClassEmitter does not support open generic base types. Type: " + baseType.FullName); } @@ -96,7 +96,7 @@ protected virtual IEnumerable InitializeGenericArgumentsFromBases(ref Type foreach (var inter in interfaces) { - if (inter.GetTypeInfo().IsGenericTypeDefinition) + if (inter.IsGenericTypeDefinition) { throw new NotSupportedException("ClassEmitter does not support open generic interfaces. Type: " + inter.FullName); } diff --git a/src/Castle.Core/DynamicProxy/Generators/Emitters/CodeBuilders/ConstructorCodeBuilder.cs b/src/Castle.Core/DynamicProxy/Generators/Emitters/CodeBuilders/ConstructorCodeBuilder.cs index 3f2f62a6a2..25f1ae0fce 100644 --- a/src/Castle.Core/DynamicProxy/Generators/Emitters/CodeBuilders/ConstructorCodeBuilder.cs +++ b/src/Castle.Core/DynamicProxy/Generators/Emitters/CodeBuilders/ConstructorCodeBuilder.cs @@ -32,7 +32,7 @@ public ConstructorCodeBuilder(Type baseType, ILGenerator generator) : base(gener public void InvokeBaseConstructor() { var type = baseType; - if (type.GetTypeInfo().ContainsGenericParameters) + if (type.ContainsGenericParameters) { type = type.GetGenericTypeDefinition(); // need to get generic type definition, otherwise the GetConstructor method might throw NotSupportedException diff --git a/src/Castle.Core/DynamicProxy/Generators/Emitters/GenericUtil.cs b/src/Castle.Core/DynamicProxy/Generators/Emitters/GenericUtil.cs index 6dd0fdda01..40aa4583f3 100644 --- a/src/Castle.Core/DynamicProxy/Generators/Emitters/GenericUtil.cs +++ b/src/Castle.Core/DynamicProxy/Generators/Emitters/GenericUtil.cs @@ -49,13 +49,13 @@ public static GenericTypeParameterBuilder[] CopyGenericArguments( public static Type ExtractCorrectType(Type paramType, Dictionary name2GenericType) { - if (paramType.GetTypeInfo().IsArray) + if (paramType.IsArray) { var rank = paramType.GetArrayRank(); var underlyingType = paramType.GetElementType(); - if (underlyingType.GetTypeInfo().IsGenericParameter) + if (underlyingType.IsGenericParameter) { GenericTypeParameterBuilder genericType; if (name2GenericType.TryGetValue(underlyingType.Name, out genericType) == false) @@ -76,7 +76,7 @@ public static Type ExtractCorrectType(Type paramType, Dictionary public static void EmitLoadIndirectOpCodeForType(ILGenerator gen, Type type) { - if (type.GetTypeInfo().IsEnum) + if (type.IsEnum) { EmitLoadIndirectOpCodeForType(gen, GetUnderlyingTypeOfEnum(type)); return; } - if (type.GetTypeInfo().IsByRef) + if (type.IsByRef) { throw new NotSupportedException("Cannot load ByRef values"); } - else if (type.GetTypeInfo().IsPrimitive && type != typeof(IntPtr) && type != typeof(UIntPtr)) + else if (type.IsPrimitive && type != typeof(IntPtr) && type != typeof(UIntPtr)) { var opCode = LdindOpCodesDictionary.Instance[type]; @@ -48,11 +48,11 @@ public static void EmitLoadIndirectOpCodeForType(ILGenerator gen, Type type) gen.Emit(opCode); } - else if (type.GetTypeInfo().IsValueType) + else if (type.IsValueType) { gen.Emit(OpCodes.Ldobj, type); } - else if (type.GetTypeInfo().IsGenericParameter) + else if (type.IsGenericParameter) { gen.Emit(OpCodes.Ldobj, type); } @@ -94,7 +94,7 @@ public static void EmitLoadOpCodeForConstantValue(ILGenerator gen, object value) /// public static void EmitLoadOpCodeForDefaultValueOfType(ILGenerator gen, Type type) { - if (type.GetTypeInfo().IsPrimitive) + if (type.IsPrimitive) { var opCode = LdcOpCodesDictionary.Instance[type]; switch (opCode.StackBehaviourPush) @@ -133,17 +133,17 @@ public static void EmitLoadOpCodeForDefaultValueOfType(ILGenerator gen, Type typ /// public static void EmitStoreIndirectOpCodeForType(ILGenerator gen, Type type) { - if (type.GetTypeInfo().IsEnum) + if (type.IsEnum) { EmitStoreIndirectOpCodeForType(gen, GetUnderlyingTypeOfEnum(type)); return; } - if (type.GetTypeInfo().IsByRef) + if (type.IsByRef) { throw new NotSupportedException("Cannot store ByRef values"); } - else if (type.GetTypeInfo().IsPrimitive && type != typeof(IntPtr) && type != typeof(UIntPtr)) + else if (type.IsPrimitive && type != typeof(IntPtr) && type != typeof(UIntPtr)) { var opCode = StindOpCodesDictionary.Instance[type]; @@ -154,11 +154,11 @@ public static void EmitStoreIndirectOpCodeForType(ILGenerator gen, Type type) gen.Emit(opCode); } - else if (type.GetTypeInfo().IsValueType) + else if (type.IsValueType) { gen.Emit(OpCodes.Stobj, type); } - else if (type.GetTypeInfo().IsGenericParameter) + else if (type.IsGenericParameter) { gen.Emit(OpCodes.Stobj, type); } diff --git a/src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/BindDelegateExpression.cs b/src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/BindDelegateExpression.cs index 4a1d69b07f..27dc50f27f 100644 --- a/src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/BindDelegateExpression.cs +++ b/src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/BindDelegateExpression.cs @@ -31,7 +31,7 @@ public BindDelegateExpression(Type @delegate, Expression owner, MethodInfo metho { delegateCtor = @delegate.GetConstructors()[0]; this.methodToBindTo = methodToBindTo; - if (@delegate.GetTypeInfo().IsGenericTypeDefinition) + if (@delegate.IsGenericTypeDefinition) { var genericTypeParameters = genericTypeParams.AsTypeArray(); var closedDelegate = @delegate.MakeGenericType(genericTypeParameters); diff --git a/src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/ConstReference.cs b/src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/ConstReference.cs index 2a90a25d09..68c23cad63 100644 --- a/src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/ConstReference.cs +++ b/src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/ConstReference.cs @@ -27,7 +27,7 @@ public class ConstReference : TypeReference public ConstReference(object value) : base(value.GetType()) { - if (!value.GetType().GetTypeInfo().IsPrimitive && !(value is String)) + if (!value.GetType().IsPrimitive && !(value is String)) { throw new ProxyGenerationException("Invalid type to ConstReference"); } diff --git a/src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/ConvertExpression.cs b/src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/ConvertExpression.cs index 72bdb6f2ee..7b0ab84fb9 100644 --- a/src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/ConvertExpression.cs +++ b/src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/ConvertExpression.cs @@ -45,7 +45,7 @@ public override void Emit(IMemberEmitter member, ILGenerator gen) return; } - if (fromType.GetTypeInfo().IsByRef) + if (fromType.IsByRef) { fromType = fromType.GetElementType(); } @@ -55,9 +55,9 @@ public override void Emit(IMemberEmitter member, ILGenerator gen) target = target.GetElementType(); } - if (target.GetTypeInfo().IsValueType) + if (target.IsValueType) { - if (fromType.GetTypeInfo().IsValueType) + if (fromType.IsValueType) { throw new NotImplementedException("Cannot convert between distinct value types"); } @@ -79,7 +79,7 @@ public override void Emit(IMemberEmitter member, ILGenerator gen) } else { - if (fromType.GetTypeInfo().IsValueType) + if (fromType.IsValueType) { // Box conversion gen.Emit(OpCodes.Box, fromType); @@ -99,15 +99,15 @@ private static void EmitCastIfNeeded(Type from, Type target, ILGenerator gen) { gen.Emit(OpCodes.Unbox_Any, target); } - else if (from.GetTypeInfo().IsGenericParameter) + else if (from.IsGenericParameter) { gen.Emit(OpCodes.Box, from); } - else if (target.GetTypeInfo().IsGenericType && target != from) + else if (target.IsGenericType && target != from) { gen.Emit(OpCodes.Castclass, target); } - else if (target.GetTypeInfo().IsSubclassOf(from)) + else if (target.IsSubclassOf(from)) { gen.Emit(OpCodes.Castclass, target); } diff --git a/src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/DefaultValueExpression.cs b/src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/DefaultValueExpression.cs index 9a14972bdd..56ceb7266b 100644 --- a/src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/DefaultValueExpression.cs +++ b/src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/DefaultValueExpression.cs @@ -34,7 +34,7 @@ public override void Emit(IMemberEmitter member, ILGenerator gen) { OpCodeUtil.EmitLoadOpCodeForDefaultValueOfType(gen, type); } - else if (type.GetTypeInfo().IsValueType || type.GetTypeInfo().IsGenericParameter) + else if (type.IsValueType || type.IsGenericParameter) { // TODO: handle decimal explicitly var local = gen.DeclareLocal(type); @@ -42,7 +42,7 @@ public override void Emit(IMemberEmitter member, ILGenerator gen) gen.Emit(OpCodes.Initobj, type); gen.Emit(OpCodes.Ldloc, local); } - else if (type.GetTypeInfo().IsByRef) + else if (type.IsByRef) { EmitByRef(gen); } @@ -60,7 +60,7 @@ private void EmitByRef(ILGenerator gen) OpCodeUtil.EmitLoadOpCodeForDefaultValueOfType(gen, elementType); OpCodeUtil.EmitStoreIndirectOpCodeForType(gen, elementType); } - else if (elementType.GetTypeInfo().IsGenericParameter || elementType.GetTypeInfo().IsValueType) + else if (elementType.IsGenericParameter || elementType.IsValueType) { gen.Emit(OpCodes.Initobj, elementType); } @@ -72,13 +72,13 @@ private void EmitByRef(ILGenerator gen) private bool IsPrimitiveOrClass(Type type) { - if ((type.GetTypeInfo().IsPrimitive && type != typeof(IntPtr))) + if ((type.IsPrimitive && type != typeof(IntPtr))) { return true; } - return ((type.GetTypeInfo().IsClass || type.GetTypeInfo().IsInterface) && - type.GetTypeInfo().IsGenericParameter == false && - type.GetTypeInfo().IsByRef == false); + return ((type.IsClass || type.IsInterface) && + type.IsGenericParameter == false && + type.IsByRef == false); } } } \ No newline at end of file diff --git a/src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/IndirectReference.cs b/src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/IndirectReference.cs index 0b3bb39fd9..d753acc82f 100644 --- a/src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/IndirectReference.cs +++ b/src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/IndirectReference.cs @@ -29,7 +29,7 @@ public class IndirectReference : TypeReference public IndirectReference(TypeReference byRefReference) : base(byRefReference, byRefReference.Type.GetElementType()) { - if (!byRefReference.Type.GetTypeInfo().IsByRef) + if (!byRefReference.Type.IsByRef) { throw new ArgumentException("Expected an IsByRef reference", "byRefReference"); } @@ -54,7 +54,7 @@ public override void StoreReference(ILGenerator gen) public static TypeReference WrapIfByRef(TypeReference reference) { - return reference.Type.GetTypeInfo().IsByRef ? new IndirectReference(reference) : reference; + return reference.Type.IsByRef ? new IndirectReference(reference) : reference; } // TODO: Better name diff --git a/src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/ReferencesToObjectArrayExpression.cs b/src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/ReferencesToObjectArrayExpression.cs index 6be9c2836e..14d0019df4 100644 --- a/src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/ReferencesToObjectArrayExpression.cs +++ b/src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/ReferencesToObjectArrayExpression.cs @@ -44,16 +44,16 @@ public override void Emit(IMemberEmitter member, ILGenerator gen) ArgumentsUtil.EmitLoadOwnerAndReference(reference, gen); - if (reference.Type.GetTypeInfo().IsByRef) + if (reference.Type.IsByRef) { throw new NotSupportedException(); } - if (reference.Type.GetTypeInfo().IsValueType) + if (reference.Type.IsValueType) { gen.Emit(OpCodes.Box, reference.Type); } - else if (reference.Type.GetTypeInfo().IsGenericParameter) + else if (reference.Type.IsGenericParameter) { gen.Emit(OpCodes.Box, reference.Type); } diff --git a/src/Castle.Core/DynamicProxy/Generators/Emitters/StrongNameUtil.cs b/src/Castle.Core/DynamicProxy/Generators/Emitters/StrongNameUtil.cs index c3ca9d9a67..5e13662834 100644 --- a/src/Castle.Core/DynamicProxy/Generators/Emitters/StrongNameUtil.cs +++ b/src/Castle.Core/DynamicProxy/Generators/Emitters/StrongNameUtil.cs @@ -70,12 +70,12 @@ private static bool ContainsPublicKey(this Assembly assembly) public static bool IsAnyTypeFromUnsignedAssembly(IEnumerable types) { - return types.Any(t => t.GetTypeInfo().Assembly.IsAssemblySigned() == false); + return types.Any(t => t.Assembly.IsAssemblySigned() == false); } public static bool IsAnyTypeFromUnsignedAssembly(Type baseType, IEnumerable interfaces) { - if (baseType != null && baseType.GetTypeInfo().Assembly.IsAssemblySigned() == false) + if (baseType != null && baseType.Assembly.IsAssemblySigned() == false) { return true; } diff --git a/src/Castle.Core/DynamicProxy/Generators/GeneratorUtil.cs b/src/Castle.Core/DynamicProxy/Generators/GeneratorUtil.cs index 003378b5c9..c104ec8881 100644 --- a/src/Castle.Core/DynamicProxy/Generators/GeneratorUtil.cs +++ b/src/Castle.Core/DynamicProxy/Generators/GeneratorUtil.cs @@ -47,7 +47,7 @@ public static void CopyOutAndRefParameters(TypeReference[] dereferencedArguments bool IsByRef(ParameterInfo parameter) { - return parameter.ParameterType.GetTypeInfo().IsByRef; + return parameter.ParameterType.IsByRef; } bool IsReadOnly(ParameterInfo parameter) diff --git a/src/Castle.Core/DynamicProxy/Generators/InterfaceProxyWithTargetGenerator.cs b/src/Castle.Core/DynamicProxy/Generators/InterfaceProxyWithTargetGenerator.cs index c089b3e45c..d413d3e84e 100644 --- a/src/Castle.Core/DynamicProxy/Generators/InterfaceProxyWithTargetGenerator.cs +++ b/src/Castle.Core/DynamicProxy/Generators/InterfaceProxyWithTargetGenerator.cs @@ -59,7 +59,7 @@ public Type GenerateCode(Type proxyTargetType, Type[] interfaces, ProxyGeneratio ProxyGenerationOptions = options; interfaces = TypeUtil.GetAllInterfaces(interfaces); - var cacheKey = new CacheKey(proxyTargetType.GetTypeInfo(), targetType, interfaces, options); + var cacheKey = new CacheKey(proxyTargetType, targetType, interfaces, options); return ObtainProxyType(cacheKey, (n, s) => GenerateType(n, proxyTargetType, interfaces, s)); } @@ -271,12 +271,12 @@ private void EnsureValidBaseType(Type type) "Base type for proxy is null reference. Please set it to System.Object or some other valid type."); } - if (!type.GetTypeInfo().IsClass) + if (!type.IsClass) { ThrowInvalidBaseType(type, "it is not a class type"); } - if (type.GetTypeInfo().IsSealed) + if (type.IsSealed) { ThrowInvalidBaseType(type, "it is sealed"); } diff --git a/src/Castle.Core/DynamicProxy/Generators/MetaMethod.cs b/src/Castle.Core/DynamicProxy/Generators/MetaMethod.cs index ad0af9e70b..733bae8f44 100644 --- a/src/Castle.Core/DynamicProxy/Generators/MetaMethod.cs +++ b/src/Castle.Core/DynamicProxy/Generators/MetaMethod.cs @@ -107,7 +107,7 @@ private MethodAttributes ObtainAttributes() var methodInfo = Method; var attributes = MethodAttributes.Virtual; - if (methodInfo.IsFinal || Method.DeclaringType.GetTypeInfo().IsInterface) + if (methodInfo.IsFinal || Method.DeclaringType.IsInterface) { attributes |= MethodAttributes.NewSlot; } @@ -122,7 +122,7 @@ private MethodAttributes ObtainAttributes() attributes |= MethodAttributes.HideBySig; } if (ProxyUtil.IsInternal(methodInfo) && - ProxyUtil.AreInternalsVisibleToDynamicProxy(methodInfo.DeclaringType.GetTypeInfo().Assembly)) + ProxyUtil.AreInternalsVisibleToDynamicProxy(methodInfo.DeclaringType.Assembly)) { attributes |= MethodAttributes.Assembly; } diff --git a/src/Castle.Core/DynamicProxy/Generators/MetaTypeElement.cs b/src/Castle.Core/DynamicProxy/Generators/MetaTypeElement.cs index 13aef8f876..c0712ff67f 100644 --- a/src/Castle.Core/DynamicProxy/Generators/MetaTypeElement.cs +++ b/src/Castle.Core/DynamicProxy/Generators/MetaTypeElement.cs @@ -28,7 +28,7 @@ protected MetaTypeElement(Type sourceType) internal bool CanBeImplementedExplicitly { - get { return sourceType != null && sourceType.GetTypeInfo().IsInterface; } + get { return sourceType != null && sourceType.IsInterface; } } internal abstract void SwitchToExplicitImplementation(); diff --git a/src/Castle.Core/DynamicProxy/Generators/MetaTypeElementUtil.cs b/src/Castle.Core/DynamicProxy/Generators/MetaTypeElementUtil.cs index b00a597469..2e49abc997 100644 --- a/src/Castle.Core/DynamicProxy/Generators/MetaTypeElementUtil.cs +++ b/src/Castle.Core/DynamicProxy/Generators/MetaTypeElementUtil.cs @@ -26,7 +26,7 @@ public static string CreateNameForExplicitImplementation(Type sourceType, string var ns = sourceType.Namespace; Debug.Assert(ns == null || ns != ""); - if (sourceType.GetTypeInfo().IsGenericType) + if (sourceType.IsGenericType) { var nameBuilder = new StringBuilder(); if (ns != null) @@ -52,7 +52,7 @@ public static string CreateNameForExplicitImplementation(Type sourceType, string private static void AppendNameOf(this StringBuilder nameBuilder, Type type) { nameBuilder.Append(type.Name); - if (type.GetTypeInfo().IsGenericType) + if (type.IsGenericType) { nameBuilder.Append('['); var genericTypeArguments = type.GetGenericArguments(); diff --git a/src/Castle.Core/DynamicProxy/Generators/MethodGenerator.cs b/src/Castle.Core/DynamicProxy/Generators/MethodGenerator.cs index 10963cd9ff..8189462c9a 100644 --- a/src/Castle.Core/DynamicProxy/Generators/MethodGenerator.cs +++ b/src/Castle.Core/DynamicProxy/Generators/MethodGenerator.cs @@ -48,7 +48,7 @@ public MethodEmitter Generate(ClassEmitter @class, ProxyGenerationOptions option var methodEmitter = overrideMethod(method.Name, method.Attributes, MethodToOverride); var proxiedMethod = BuildProxiedMethodBody(methodEmitter, @class, options, namingScope); - if (MethodToOverride.DeclaringType.GetTypeInfo().IsInterface) + if (MethodToOverride.DeclaringType.IsInterface) { @class.TypeBuilder.DefineMethodOverride(proxiedMethod.MethodBuilder, MethodToOverride); } diff --git a/src/Castle.Core/DynamicProxy/Generators/MethodSignatureComparer.cs b/src/Castle.Core/DynamicProxy/Generators/MethodSignatureComparer.cs index e39b7f4857..09915d48bb 100644 --- a/src/Castle.Core/DynamicProxy/Generators/MethodSignatureComparer.cs +++ b/src/Castle.Core/DynamicProxy/Generators/MethodSignatureComparer.cs @@ -41,12 +41,12 @@ public bool EqualGenericParameters(MethodInfo x, MethodInfo y) for (var i = 0; i < xArgs.Length; ++i) { - if (xArgs[i].GetTypeInfo().IsGenericParameter != yArgs[i].GetTypeInfo().IsGenericParameter) + if (xArgs[i].IsGenericParameter != yArgs[i].IsGenericParameter) { return false; } - if (!xArgs[i].GetTypeInfo().IsGenericParameter && !xArgs[i].Equals(yArgs[i])) + if (!xArgs[i].IsGenericParameter && !xArgs[i].Equals(yArgs[i])) { return false; } @@ -79,29 +79,26 @@ public bool EqualParameters(MethodInfo x, MethodInfo y) public bool EqualSignatureTypes(Type x, Type y) { - var xti = x.GetTypeInfo(); - var yti = y.GetTypeInfo(); - - if (xti.IsGenericParameter != yti.IsGenericParameter) + if (x.IsGenericParameter != y.IsGenericParameter) { return false; } - else if (xti.IsGenericType != yti.IsGenericType) + else if (x.IsGenericType != y.IsGenericType) { return false; } - if (xti.IsGenericParameter) + if (x.IsGenericParameter) { - if (xti.GenericParameterPosition != yti.GenericParameterPosition) + if (x.GenericParameterPosition != y.GenericParameterPosition) { return false; } } - else if (xti.IsGenericType) + else if (x.IsGenericType) { - var xGenericTypeDef = xti.GetGenericTypeDefinition(); - var yGenericTypeDef = yti.GetGenericTypeDefinition(); + var xGenericTypeDef = x.GetGenericTypeDefinition(); + var yGenericTypeDef = y.GetGenericTypeDefinition(); if (xGenericTypeDef != yGenericTypeDef) { diff --git a/src/Castle.Core/DynamicProxy/Generators/MethodWithInvocationGenerator.cs b/src/Castle.Core/DynamicProxy/Generators/MethodWithInvocationGenerator.cs index da6a5333bc..aab806097b 100644 --- a/src/Castle.Core/DynamicProxy/Generators/MethodWithInvocationGenerator.cs +++ b/src/Castle.Core/DynamicProxy/Generators/MethodWithInvocationGenerator.cs @@ -73,7 +73,7 @@ protected override MethodEmitter BuildProxiedMethodBody(MethodEmitter emitter, C { var invocationType = invocation; - Trace.Assert(MethodToOverride.IsGenericMethod == invocationType.GetTypeInfo().IsGenericTypeDefinition); + Trace.Assert(MethodToOverride.IsGenericMethod == invocationType.IsGenericTypeDefinition); var genericArguments = Type.EmptyTypes; var constructor = invocation.GetConstructors()[0]; @@ -139,7 +139,7 @@ protected override MethodEmitter BuildProxiedMethodBody(MethodEmitter emitter, C var getRetVal = new MethodInvocationExpression(invocationLocal, InvocationMethods.GetReturnValue); // Emit code to ensure a value type return type is not null, otherwise the cast will cause a null-deref - if (emitter.ReturnType.GetTypeInfo().IsValueType && !emitter.ReturnType.IsNullableType()) + if (emitter.ReturnType.IsValueType && !emitter.ReturnType.IsNullableType()) { LocalReference returnValue = emitter.CodeBuilder.DeclareLocal(typeof(object)); emitter.CodeBuilder.AddStatement(new AssignStatement(returnValue, getRetVal)); @@ -195,7 +195,7 @@ private Expression SetMethodInterceptors(ClassEmitter @class, INamingScope namin private void EmitLoadGenricMethodArguments(MethodEmitter methodEmitter, MethodInfo method, Reference invocationLocal) { - var genericParameters = method.GetGenericArguments().FindAll(t => t.GetTypeInfo().IsGenericParameter); + var genericParameters = method.GetGenericArguments().FindAll(t => t.IsGenericParameter); var genericParamsArrayLocal = methodEmitter.CodeBuilder.DeclareLocal(typeof(Type[])); methodEmitter.CodeBuilder.AddStatement( new AssignStatement(genericParamsArrayLocal, new NewArrayExpression(genericParameters.Length, typeof(Type)))); @@ -238,7 +238,7 @@ private bool HasByRefArguments(ArgumentReference[] arguments) { for (int i = 0; i < arguments.Length; i++ ) { - if (arguments[i].Type.GetTypeInfo().IsByRef) + if (arguments[i].Type.IsByRef) { return true; } diff --git a/src/Castle.Core/DynamicProxy/Internal/AttributeUtil.cs b/src/Castle.Core/DynamicProxy/Internal/AttributeUtil.cs index 5a9830882a..4f23baf964 100644 --- a/src/Castle.Core/DynamicProxy/Internal/AttributeUtil.cs +++ b/src/Castle.Core/DynamicProxy/Internal/AttributeUtil.cs @@ -77,7 +77,7 @@ private static object[] GetArguments(IList constru private static object ReadAttributeValue(CustomAttributeTypedArgument argument) { var value = argument.Value; - if (argument.ArgumentType.GetTypeInfo().IsArray == false) + if (argument.ArgumentType.IsArray == false) { return value; } @@ -185,7 +185,7 @@ public static IEnumerable GetNonInheritableAttributes(this /// private static bool ShouldSkipAttributeReplication(Type attribute, bool ignoreInheritance) { - if (attribute.GetTypeInfo().IsPublic == false) + if (attribute.IsPublic == false) { return true; } @@ -206,7 +206,7 @@ private static bool ShouldSkipAttributeReplication(Type attribute, bool ignoreIn if (!ignoreInheritance) { - var attrs = attribute.GetTypeInfo().GetCustomAttributes(true).ToArray(); + var attrs = attribute.GetCustomAttributes(true).ToArray(); if (attrs.Length != 0) { return attrs[0].Inherited; diff --git a/src/Castle.Core/DynamicProxy/Internal/InvocationHelper.cs b/src/Castle.Core/DynamicProxy/Internal/InvocationHelper.cs index dc22c7e547..c65943ef9d 100644 --- a/src/Castle.Core/DynamicProxy/Internal/InvocationHelper.cs +++ b/src/Castle.Core/DynamicProxy/Internal/InvocationHelper.cs @@ -63,9 +63,9 @@ private static MethodInfo ObtainMethod(MethodInfo proxiedMethod, Type type) } var declaringType = proxiedMethod.DeclaringType; MethodInfo methodOnTarget = null; - if (declaringType.GetTypeInfo().IsInterface) + if (declaringType.IsInterface) { - var mapping = type.GetTypeInfo().GetRuntimeInterfaceMap(declaringType); + var mapping = type.GetInterfaceMap(declaringType); var index = Array.IndexOf(mapping.InterfaceMethods, proxiedMethod); Debug.Assert(index != -1); methodOnTarget = mapping.TargetMethods[index]; diff --git a/src/Castle.Core/DynamicProxy/Internal/TypeUtil.cs b/src/Castle.Core/DynamicProxy/Internal/TypeUtil.cs index b51ef1c31f..2254d9ead7 100644 --- a/src/Castle.Core/DynamicProxy/Internal/TypeUtil.cs +++ b/src/Castle.Core/DynamicProxy/Internal/TypeUtil.cs @@ -26,7 +26,7 @@ public static class TypeUtil { public static bool IsNullableType(this Type type) { - return type.GetTypeInfo().IsGenericType && + return type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>); } @@ -37,7 +37,7 @@ public static FieldInfo[] GetAllFields(this Type type) throw new ArgumentNullException("type"); } - if (type.GetTypeInfo().IsClass == false) + if (type.IsClass == false) { throw new ArgumentException(string.Format("Type {0} is not a class type. This method supports only classes", type)); } @@ -49,7 +49,7 @@ public static FieldInfo[] GetAllFields(this Type type) Debug.Assert(currentType != null); var currentFields = currentType.GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static); fields.AddRange(currentFields); - currentType = currentType.GetTypeInfo().BaseType; + currentType = currentType.BaseType; } return fields.ToArray(); @@ -74,7 +74,7 @@ public static Type[] GetAllInterfaces(params Type[] types) continue; } - if (type.GetTypeInfo().IsInterface) + if (type.IsInterface) { if (interfaces.Add(type) == false) { @@ -100,12 +100,12 @@ public static Type[] GetAllInterfaces(this Type type) public static Type GetClosedParameterType(this AbstractTypeEmitter type, Type parameter) { - if (parameter.GetTypeInfo().IsGenericTypeDefinition) + if (parameter.IsGenericTypeDefinition) { return parameter.GetGenericTypeDefinition().MakeGenericType(type.GetGenericArgumentsFor(parameter)); } - if (parameter.GetTypeInfo().IsGenericType) + if (parameter.IsGenericType) { var arguments = parameter.GetGenericArguments(); if (CloseGenericParametersIfAny(type, arguments)) @@ -114,12 +114,12 @@ public static Type GetClosedParameterType(this AbstractTypeEmitter type, Type pa } } - if (parameter.GetTypeInfo().IsGenericParameter) + if (parameter.IsGenericParameter) { return type.GetGenericArgument(parameter.Name); } - if (parameter.GetTypeInfo().IsArray) + if (parameter.IsArray) { var elementType = GetClosedParameterType(type, parameter.GetElementType()); int rank = parameter.GetArrayRank(); @@ -128,7 +128,7 @@ public static Type GetClosedParameterType(this AbstractTypeEmitter type, Type pa : elementType.MakeArrayType(rank); } - if (parameter.GetTypeInfo().IsByRef) + if (parameter.IsByRef) { var elementType = GetClosedParameterType(type, parameter.GetElementType()); return elementType.MakeByRefType(); @@ -229,7 +229,7 @@ public static MemberInfo[] Sort(MemberInfo[] members) /// internal static bool IsDelegateType(this Type type) { - return type.GetTypeInfo().BaseType == typeof(MulticastDelegate); + return type.BaseType == typeof(MulticastDelegate); } private static bool CloseGenericParametersIfAny(AbstractTypeEmitter emitter, Type[] arguments) @@ -271,7 +271,7 @@ public int Compare(Type x, Type y) // of `type.FullName` and `type.Assembly.FullName`. We can avoid this // overhead by comparing the two properties separately. int result = string.CompareOrdinal(x.FullName, y.FullName); - return result != 0 ? result : string.CompareOrdinal(x.GetTypeInfo().Assembly.FullName, y.GetTypeInfo().Assembly.FullName); + return result != 0 ? result : string.CompareOrdinal(x.Assembly.FullName, y.Assembly.FullName); } } } diff --git a/src/Castle.Core/DynamicProxy/ModuleScope.cs b/src/Castle.Core/DynamicProxy/ModuleScope.cs index 2ae9de52dc..ea707cf7a8 100644 --- a/src/Castle.Core/DynamicProxy/ModuleScope.cs +++ b/src/Castle.Core/DynamicProxy/ModuleScope.cs @@ -195,7 +195,7 @@ public void RegisterInCache(CacheKey key, Type type) /// public static byte[] GetKeyPair() { - using (var stream = typeof(ModuleScope).GetTypeInfo().Assembly.GetManifestResourceStream("Castle.DynamicProxy.DynProxy.snk")) + using (var stream = typeof(ModuleScope).Assembly.GetManifestResourceStream("Castle.DynamicProxy.DynProxy.snk")) { if (stream == null) { diff --git a/src/Castle.Core/DynamicProxy/ProxyGenerator.cs b/src/Castle.Core/DynamicProxy/ProxyGenerator.cs index c0bcfc75bf..9a5728481b 100644 --- a/src/Castle.Core/DynamicProxy/ProxyGenerator.cs +++ b/src/Castle.Core/DynamicProxy/ProxyGenerator.cs @@ -320,7 +320,7 @@ public virtual object CreateInterfaceProxyWithTarget(Type interfaceToProxy, Type throw new ArgumentNullException("interceptors"); } - if (!interfaceToProxy.GetTypeInfo().IsInterface) + if (!interfaceToProxy.IsInterface) { throw new ArgumentException("Specified type is not an interface", "interfaceToProxy"); } @@ -574,7 +574,7 @@ public virtual object CreateInterfaceProxyWithTargetInterface(Type interfaceToPr throw new ArgumentNullException("interceptors"); } - if (!interfaceToProxy.GetTypeInfo().IsInterface) + if (!interfaceToProxy.IsInterface) { throw new ArgumentException("Specified type is not an interface", "interfaceToProxy"); } @@ -856,7 +856,7 @@ public virtual object CreateInterfaceProxyWithoutTarget(Type interfaceToProxy, T throw new ArgumentNullException("interceptors"); } - if (!interfaceToProxy.GetTypeInfo().IsInterface) + if (!interfaceToProxy.IsInterface) { throw new ArgumentException("Specified type is not an interface", "interfaceToProxy"); } @@ -1165,7 +1165,7 @@ public virtual object CreateClassProxyWithTarget(Type classToProxy, Type[] addit { throw new ArgumentNullException("options"); } - if (!classToProxy.GetTypeInfo().IsClass) + if (!classToProxy.IsClass) { throw new ArgumentException("'classToProxy' must be a class", "classToProxy"); } @@ -1429,7 +1429,7 @@ public virtual object CreateClassProxy(Type classToProxy, Type[] additionalInter { throw new ArgumentNullException("options"); } - if (!classToProxy.GetTypeInfo().IsClass) + if (!classToProxy.IsClass) { throw new ArgumentException("'classToProxy' must be a class", "classToProxy"); } @@ -1480,7 +1480,7 @@ protected object CreateClassProxyInstance(Type proxyType, List proxyArgu protected void CheckNotGenericTypeDefinition(Type type, string argumentName) { - if (type != null && type.GetTypeInfo().IsGenericTypeDefinition) + if (type != null && type.IsGenericTypeDefinition) { throw new GeneratorException(string.Format("Can not create proxy for type {0} because it is an open generic type.", type.GetBestName())); diff --git a/src/Castle.Core/DynamicProxy/ProxyUtil.cs b/src/Castle.Core/DynamicProxy/ProxyUtil.cs index 7089b44823..bb3b3793bd 100644 --- a/src/Castle.Core/DynamicProxy/ProxyUtil.cs +++ b/src/Castle.Core/DynamicProxy/ProxyUtil.cs @@ -115,7 +115,7 @@ public static Type GetUnproxiedType(object instance) { if (ReferenceEquals(target, instance)) { - return instance.GetType().GetTypeInfo().BaseType; + return instance.GetType().BaseType; } instance = target; @@ -192,19 +192,17 @@ internal static bool AreInternalsVisibleToDynamicProxy(Assembly asm) internal static bool IsAccessibleType(Type target) { - var typeInfo = target.GetTypeInfo(); - - var isPublic = typeInfo.IsPublic || typeInfo.IsNestedPublic; + var isPublic = target.IsPublic || target.IsNestedPublic; if (isPublic) { return true; } var isTargetNested = target.IsNested; - var isNestedAndInternal = isTargetNested && (typeInfo.IsNestedAssembly || typeInfo.IsNestedFamORAssem); - var isInternalNotNested = typeInfo.IsVisible == false && isTargetNested == false; + var isNestedAndInternal = isTargetNested && (target.IsNestedAssembly || target.IsNestedFamORAssem); + var isInternalNotNested = target.IsVisible == false && isTargetNested == false; var isInternal = isInternalNotNested || isNestedAndInternal; - if (isInternal && AreInternalsVisibleToDynamicProxy(typeInfo.Assembly)) + if (isInternal && AreInternalsVisibleToDynamicProxy(target.Assembly)) { return true; } @@ -227,7 +225,7 @@ internal static bool IsAccessibleMethod(MethodBase method) if (method.IsAssembly || method.IsFamilyAndAssembly) { - return AreInternalsVisibleToDynamicProxy(method.DeclaringType.GetTypeInfo().Assembly); + return AreInternalsVisibleToDynamicProxy(method.DeclaringType.Assembly); } return false; @@ -248,7 +246,7 @@ internal static bool IsInternal(MethodBase method) private static string CreateMessageForInaccessibleMethod(MethodBase inaccessibleMethod) { var containingType = inaccessibleMethod.DeclaringType; - var targetAssembly = containingType.GetTypeInfo().Assembly; + var targetAssembly = containingType.Assembly; var messageFormat = "Can not create proxy for method {0} because it or its declaring type is not accessible. "; diff --git a/src/Castle.Services.Logging.log4netIntegration/ExtendedLog4netFactory.cs b/src/Castle.Services.Logging.log4netIntegration/ExtendedLog4netFactory.cs index 54d8fba359..a8dbe9d220 100644 --- a/src/Castle.Services.Logging.log4netIntegration/ExtendedLog4netFactory.cs +++ b/src/Castle.Services.Logging.log4netIntegration/ExtendedLog4netFactory.cs @@ -26,7 +26,7 @@ namespace Castle.Services.Logging.Log4netIntegration public class ExtendedLog4netFactory : AbstractExtendedLoggerFactory { - static readonly Assembly _callingAssembly = typeof(Log4netFactory).GetTypeInfo().Assembly; + static readonly Assembly _callingAssembly = typeof(Log4netFactory).Assembly; public ExtendedLog4netFactory() : this(Log4netFactory.defaultConfigFileName) diff --git a/src/Castle.Services.Logging.log4netIntegration/Log4netFactory.cs b/src/Castle.Services.Logging.log4netIntegration/Log4netFactory.cs index 56377abf4d..51e6d43611 100644 --- a/src/Castle.Services.Logging.log4netIntegration/Log4netFactory.cs +++ b/src/Castle.Services.Logging.log4netIntegration/Log4netFactory.cs @@ -26,7 +26,7 @@ namespace Castle.Services.Logging.Log4netIntegration public class Log4netFactory : AbstractLoggerFactory { internal const string defaultConfigFileName = "log4net.config"; - static readonly Assembly _callingAssembly = typeof(Log4netFactory).GetTypeInfo().Assembly; + static readonly Assembly _callingAssembly = typeof(Log4netFactory).Assembly; public Log4netFactory() : this(defaultConfigFileName) {