28 overrides of DeclaringType
PresentationFramework (1)
System.Private.CoreLib (11)
System.Reflection.Context (7)
System.Reflection.Emit (2)
System.Reflection.MetadataLoadContext (5)
System.Runtime.InteropServices (1)
System.Runtime.Serialization.Formatters (1)
804 references to DeclaringType
Aspire.Confluent.Kafka (1)
Aspire.Hosting.RemoteHost (24)
Aspire.Hosting.Testing (2)
Aspire.Hosting.Tests (2)
Aspire.StackExchange.Redis (1)
dotnet-svcutil-lib (100)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (3)
1309throw new InvalidOperationException(string.Format(ResXml.XmlSerializableRootDupName, _getSchemaMethod.DeclaringType.FullName, e.Name, elementNs));
1395throw new InvalidOperationException(string.Format(ResXml.XmlGetSchemaInclude, _xsiType.Namespace, _getSchemaMethod.DeclaringType.FullName, _getSchemaMethod.Name));
1405throw new InvalidOperationException(string.Format(ResXml.XmlGetSchemaTypeMissing, _getSchemaMethod.DeclaringType.FullName, _getSchemaMethod.Name, _xsiType.Name, _xsiType.Namespace));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (18)
370Type declaringType = memberContract.MemberInfo.DeclaringType;
954ThrowInvalidDataContractException(string.Format(SRSerialization.TooManyDataMembers, DataContract.GetClrTypeFullName(member.DeclaringType), member.Name));
969ThrowInvalidDataContractException(string.Format(SRSerialization.NoGetMethodForProperty, property.DeclaringType, property.Name));
974ThrowInvalidDataContractException(string.Format(SRSerialization.NoSetMethodForProperty, property.DeclaringType, property.Name));
978ThrowInvalidDataContractException(string.Format(SRSerialization.IndexedPropertyCannotBeSerialized, property.DeclaringType, property.Name));
1000DataContract.GetClrTypeFullName(member.DeclaringType),
1019ThrowInvalidDataContractException(string.Format(SRSerialization.TooManyIgnoreDataMemberAttributes, DataContract.GetClrTypeFullName(member.DeclaringType), member.Name));
1066DataContract.GetClrTypeFullName(member.DeclaringType),
1230DataContract.ThrowInvalidDataContractException(string.Format(SRSerialization.DuplicateCallback, method, currentCallback, DataContract.GetClrTypeFullName(method.DeclaringType), attributeType), method.DeclaringType);
1232DataContract.ThrowInvalidDataContractException(string.Format(SRSerialization.DuplicateAttribute, prevAttributeType, attributeType, DataContract.GetClrTypeFullName(method.DeclaringType), method), method.DeclaringType);
1234DataContract.ThrowInvalidDataContractException(string.Format(SRSerialization.CallbacksCannotBeVirtualMethods, method, DataContract.GetClrTypeFullName(method.DeclaringType), attributeType), method.DeclaringType);
1238DataContract.ThrowInvalidDataContractException(string.Format(SRSerialization.CallbackMustReturnVoid, DataContract.GetClrTypeFullName(method.DeclaringType), method), method.DeclaringType);
1240DataContract.ThrowInvalidDataContractException(string.Format(SRSerialization.CallbackParameterInvalid, DataContract.GetClrTypeFullName(method.DeclaringType), method, Globals.TypeOfStreamingContext), method.DeclaringType);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (9)
494attrType.Name, method.Name, method.DeclaringType.Name), e));
503attrType.Name, param.Name, method.Name, method.DeclaringType.Name), e));
667methodInfo.Name, methodInfo.DeclaringType.Name)));
676methodInfo.Name, methodInfo.DeclaringType.Name)));
790MethodInfo[] endMethods = beginMethod.DeclaringType.GetTypeInfo().GetDeclaredMethods(endMethodName).ToArray();
793throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.NoEndMethodFoundForAsyncBeginMethod3, beginMethod.Name, beginMethod.DeclaringType.FullName, endMethodName)));
797throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.MoreThanOneEndMethodFoundForAsyncBeginMethod3, beginMethod.Name, beginMethod.DeclaringType.FullName, endMethodName)));
808throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.InvalidAsyncEndMethodSignatureForMethod2, endMethod.Name, endMethod.DeclaringType.FullName)));
841throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.InvalidAsyncBeginMethodSignatureForMethod2, method.Name, method.DeclaringType.FullName)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (29)
368type = provider.MethodInfo.DeclaringType;
468opDesc.SyncMethod.DeclaringType,
479opDesc.SyncMethod.DeclaringType,
489opDesc.TaskMethod.DeclaringType,
507if (methodInfo.DeclaringType == type)
976throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.OneWayAndFaultsIncompatible2, methodInfo.DeclaringType.FullName, operationName.EncodedName)));
1190throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxMultipleUnknownHeaders, methodInfo, methodInfo.DeclaringType)));
1596_syncOperation.SyncMethod.DeclaringType,
1612_syncOperation.SyncMethod.DeclaringType,
1629_syncOperation.SyncMethod.DeclaringType,
1644_syncOperation.SyncMethod.DeclaringType,
1658_syncOperation.SyncMethod.DeclaringType,
1673_syncOperation.SyncMethod.DeclaringType,
1688_syncOperation.SyncMethod.DeclaringType,
1705_syncOperation.SyncMethod.DeclaringType,
1737_syncOperation.SyncMethod.DeclaringType,
1752_syncOperation.SyncMethod.DeclaringType,
1766_syncOperation.SyncMethod.DeclaringType,
1779_syncOperation.SyncMethod.DeclaringType,
1793_syncOperation.SyncMethod.DeclaringType,
1807_syncOperation.SyncMethod.DeclaringType,
1823_syncOperation.SyncMethod.DeclaringType,
1854_taskOperation.TaskMethod.DeclaringType,
1870_taskOperation.TaskMethod.DeclaringType,
1885_taskOperation.TaskMethod.DeclaringType,
1899_taskOperation.TaskMethod.DeclaringType,
1914_taskOperation.TaskMethod.DeclaringType,
1929_taskOperation.TaskMethod.DeclaringType,
1946_taskOperation.TaskMethod.DeclaringType,
GenerateDocumentationAndConfigFiles (1)
GetDocument.Insider (3)
Infrastructure.Common (3)
Microsoft.AspNetCore (2)
Microsoft.AspNetCore.Components.Endpoints (7)
Microsoft.AspNetCore.Components.Forms (2)
Microsoft.AspNetCore.Components.Web (2)
Microsoft.AspNetCore.Connections.Abstractions (1)
Microsoft.AspNetCore.Diagnostics (5)
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Microsoft.AspNetCore.Hosting (13)
Microsoft.AspNetCore.Http.Abstractions (11)
Microsoft.AspNetCore.Http.Extensions (3)
Microsoft.AspNetCore.InternalTesting (6)
Microsoft.AspNetCore.Mvc.ApiExplorer (6)
Microsoft.AspNetCore.Mvc.Core (12)
Microsoft.AspNetCore.Mvc.RazorPages (10)
Microsoft.AspNetCore.Mvc.Testing (3)
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
Microsoft.AspNetCore.OpenApi (4)
Microsoft.AspNetCore.Routing (8)
Microsoft.AspNetCore.Routing.Abstractions (6)
Microsoft.AspNetCore.Server.IIS (5)
Microsoft.AspNetCore.SignalR.Core (3)
Microsoft.AspNetCore.TestHost (1)
Microsoft.CodeAnalysis.Analyzers (1)
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
Microsoft.CodeAnalysis.CodeStyle (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
Microsoft.CodeAnalysis.Scripting (6)
Microsoft.CodeAnalysis.Workspaces (5)
Microsoft.CSharp (20)
Microsoft.DotNet.Build.Tasks.Workloads (1)
Microsoft.DotNet.HotReload.WebAssembly.Browser (1)
Microsoft.DotNet.Internal.DependencyInjection.Testing (1)
Microsoft.Extensions.AI.Abstractions (3)
Microsoft.Extensions.AI.Abstractions.Tests (2)
Microsoft.Extensions.DependencyInjection (3)
Microsoft.Extensions.DependencyInjection.Abstractions (3)
Microsoft.Extensions.Diagnostics.Testing (7)
Microsoft.Extensions.DotNetDeltaApplier (1)
Microsoft.Extensions.VectorData.Abstractions (14)
Microsoft.Maui.Controls (1)
Microsoft.Maui.Controls.Xaml (4)
Microsoft.ML.Core (15)
Microsoft.ML.Core.Tests (1)
Microsoft.ML.Tests (1)
Microsoft.ML.Transforms (2)
Microsoft.TestPlatform.AdapterUtilities (2)
Microsoft.VisualBasic.Core (48)
Mono.Cecil (6)
PresentationBuildTasks (27)
PresentationFramework (18)
ReachFramework (1)
Roslyn.Diagnostics.Analyzers (1)
System.ComponentModel.Composition (11)
System.ComponentModel.Composition.Registration (5)
System.ComponentModel.TypeConverter (3)
System.Composition.Convention (5)
System.Composition.TypedParts (7)
System.Configuration.ConfigurationManager (1)
System.Diagnostics.DiagnosticSource (2)
System.Linq.Expressions (53)
System\Linq\Expressions\NewExpression.cs (11)
33public override Type Type => Constructor!.DeclaringType!;
139ArgumentNullException.ThrowIfNull(constructor.DeclaringType, nameof(constructor));
140if (constructor.DeclaringType is null)
143throw new ArgumentNullException($"{nameof(constructor)}.{nameof(constructor.DeclaringType)}");
146TypeUtils.ValidateType(constructor.DeclaringType!, nameof(constructor), allowByRef: true, allowPointer: true);
165if (constructor.DeclaringType is null)
168throw new ArgumentNullException($"{nameof(constructor)}.{nameof(constructor.DeclaringType)}");
171TypeUtils.ValidateType(constructor.DeclaringType!, nameof(constructor), allowByRef: true, allowPointer: true);
241if (!TypeUtils.AreEquivalent(member.DeclaringType, constructor.DeclaringType))
243throw Error.ArgumentMemberNotDeclOnType(member.Name, constructor.DeclaringType!.Name, nameof(members), i);
System.Linq.Queryable (3)
System.Private.CoreLib (39)
System.Private.DataContractSerialization (44)
System\Runtime\Serialization\ClassDataContract.cs (25)
260Type declaringType = memberContract.MemberInfo.DeclaringType!;
828ThrowInvalidDataContractException(SR.Format(SR.TooManyDataMembers, DataContract.GetClrTypeFullName(member.DeclaringType!), member.Name));
841ThrowInvalidDataContractException(SR.Format(SR.NoGetMethodForProperty, property.DeclaringType, property.Name));
846_serializationExceptionMessage = SR.Format(SR.NoSetMethodForProperty, property.DeclaringType, property.Name);
850ThrowInvalidDataContractException(SR.Format(SR.IndexedPropertyCannotBeSerialized, property.DeclaringType, property.Name));
872DataContract.GetClrTypeFullName(member.DeclaringType!),
891ThrowInvalidDataContractException(SR.Format(SR.TooManyIgnoreDataMemberAttributes, DataContract.GetClrTypeFullName(member.DeclaringType!), member.Name));
942DataContract.GetClrTypeFullName(member.DeclaringType!),
1107Debug.Assert(method.DeclaringType != null);
1110ThrowInvalidDataContractException(SR.Format(SR.DuplicateExtensionDataSetMethod, method, _extensionDataSetMethod, DataContract.GetClrTypeFullName(method.DeclaringType)));
1112DataContract.ThrowInvalidDataContractException(SR.Format(SR.ExtensionDataSetMustReturnVoid, DataContract.GetClrTypeFullName(method.DeclaringType), method), method.DeclaringType);
1114DataContract.ThrowInvalidDataContractException(SR.Format(SR.ExtensionDataSetParameterInvalid, DataContract.GetClrTypeFullName(method.DeclaringType), method, Globals.TypeOfExtensionDataObject), method.DeclaringType);
1124Debug.Assert(method.DeclaringType != null);
1127DataContract.ThrowInvalidDataContractException(SR.Format(SR.DuplicateCallback, method, currentCallback, DataContract.GetClrTypeFullName(method.DeclaringType), attributeType), method.DeclaringType);
1129DataContract.ThrowInvalidDataContractException(SR.Format(SR.DuplicateAttribute, prevAttributeType, attributeType, DataContract.GetClrTypeFullName(method.DeclaringType), method), method.DeclaringType);
1131DataContract.ThrowInvalidDataContractException(SR.Format(SR.CallbacksCannotBeVirtualMethods, method, DataContract.GetClrTypeFullName(method.DeclaringType), attributeType), method.DeclaringType);
1135DataContract.ThrowInvalidDataContractException(SR.Format(SR.CallbackMustReturnVoid, DataContract.GetClrTypeFullName(method.DeclaringType), method), method.DeclaringType);
1137DataContract.ThrowInvalidDataContractException(SR.Format(SR.CallbackParameterInvalid, DataContract.GetClrTypeFullName(method.DeclaringType), method, Globals.TypeOfStreamingContext), method.DeclaringType);
System.Private.Reflection.Execution (4)
System.Private.Xml (27)
System\Xml\Serialization\Mappings.cs (5)
1019Type? baseDeclaringType = baseMember.DeclaringType;
1020Type? derivedDeclaringType = derivedMember.DeclaringType;
1280throw new InvalidOperationException(SR.Format(SR.XmlSerializableRootDupName, _getSchemaMethod!.DeclaringType!.FullName, e.Name, elementNs));
1366throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaInclude, _xsiType.Namespace, _getSchemaMethod.DeclaringType!.FullName, _getSchemaMethod.Name));
1376throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaTypeMissing, _getSchemaMethod.DeclaringType!.FullName, _getSchemaMethod.Name, _xsiType.Name, _xsiType.Namespace));
System.Reflection.Context (15)
System.Reflection.Emit (15)
System.Reflection.MetadataLoadContext (11)
System.Resources.Extensions (1)
System.Runtime.InteropServices (2)
System.Runtime.Serialization.Formatters (1)
System.Security.Cryptography (1)
System.Security.Cryptography.Xml (1)
System.ServiceModel.Primitives (45)
System\ServiceModel\Description\ServiceReflector.cs (9)
531attrType.Name, method.Name, method.DeclaringType.Name), e));
540attrType.Name, param.Name, method.Name, method.DeclaringType.Name), e));
704methodInfo.Name, methodInfo.DeclaringType.Name)));
713methodInfo.Name, methodInfo.DeclaringType.Name)));
827MethodInfo[] endMethods = beginMethod.DeclaringType.GetTypeInfo().GetDeclaredMethods(endMethodName).ToArray();
830throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.NoEndMethodFoundForAsyncBeginMethod3, beginMethod.Name, beginMethod.DeclaringType.FullName, endMethodName)));
834throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MoreThanOneEndMethodFoundForAsyncBeginMethod3, beginMethod.Name, beginMethod.DeclaringType.FullName, endMethodName)));
845throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.InvalidAsyncEndMethodSignatureForMethod2, endMethod.Name, endMethod.DeclaringType.FullName)));
878throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.InvalidAsyncBeginMethodSignatureForMethod2, method.Name, method.DeclaringType.FullName)));
System\ServiceModel\Description\TypeLoader.cs (29)
373type = providerAsMethod.DeclaringType;
481opDesc.SyncMethod.DeclaringType,
492opDesc.SyncMethod.DeclaringType,
502opDesc.TaskMethod.DeclaringType,
520if (methodInfo.DeclaringType == type)
991throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.OneWayAndFaultsIncompatible2, methodInfo.DeclaringType.FullName, operationName.EncodedName)));
1217throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxMultipleUnknownHeaders, methodInfo, methodInfo.DeclaringType)));
1653_syncOperation.SyncMethod.DeclaringType,
1669_syncOperation.SyncMethod.DeclaringType,
1686_syncOperation.SyncMethod.DeclaringType,
1701_syncOperation.SyncMethod.DeclaringType,
1715_syncOperation.SyncMethod.DeclaringType,
1730_syncOperation.SyncMethod.DeclaringType,
1745_syncOperation.SyncMethod.DeclaringType,
1762_syncOperation.SyncMethod.DeclaringType,
1794_syncOperation.SyncMethod.DeclaringType,
1809_syncOperation.SyncMethod.DeclaringType,
1823_syncOperation.SyncMethod.DeclaringType,
1836_syncOperation.SyncMethod.DeclaringType,
1850_syncOperation.SyncMethod.DeclaringType,
1864_syncOperation.SyncMethod.DeclaringType,
1880_syncOperation.SyncMethod.DeclaringType,
1911_taskOperation.TaskMethod.DeclaringType,
1927_taskOperation.TaskMethod.DeclaringType,
1942_taskOperation.TaskMethod.DeclaringType,
1956_taskOperation.TaskMethod.DeclaringType,
1971_taskOperation.TaskMethod.DeclaringType,
1986_taskOperation.TaskMethod.DeclaringType,
2003_taskOperation.TaskMethod.DeclaringType,
System.Text.Json (20)
System.Windows.Forms.Design (1)
System.Xaml (30)
testhost (2)
testhost.arm64 (2)
testhost.x86 (2)