38 overrides of Name
PresentationFramework (1)
System.Private.CoreLib (16)
System.Private.Reflection.Execution (1)
System.Reflection.Context (9)
System.Reflection.Emit (3)
System.Reflection.MetadataLoadContext (6)
System.Runtime.InteropServices (1)
System.Runtime.Serialization.Formatters (1)
3877 references to Name
aspire (14)
aspire-managed (4)
Aspire.Acquisition.Tests (2)
Aspire.Azure.AI.Inference (1)
Aspire.Azure.AI.OpenAI (1)
Aspire.Azure.Data.Tables (1)
Aspire.Azure.Messaging.EventHubs (5)
Aspire.Azure.Messaging.EventHubs.Tests (44)
AspireEventHubsExtensionsTests.cs (38)
86$"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}",
90$"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}",
94AspireEventHubsSection + s_clientTypes[clientIndex].Name, key, "PartitionId"), "foo"),
133$"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}",
137$"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}",
141$"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}",
145AspireEventHubsSection + s_clientTypes[clientIndex].Name, key, "PartitionId"), "foo"),
148$"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}",
152$"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}",
202$"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}",
206$"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}",
210$"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}",
214AspireEventHubsSection + s_clientTypes[clientIndex].Name, key, "PartitionId"), "foo"),
264$"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}",
268$"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}",
272$"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}",
276AspireEventHubsSection + s_clientTypes[clientIndex].Name, key, "PartitionId"), "foo"),
279$"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}",
330$"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}",
334$"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}",
338AspireEventHubsSection + s_clientTypes[clientIndex].Name, key, "PartitionId"), "foo"),
376$"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}",
380$"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}",
384AspireEventHubsSection + s_clientTypes[clientIndex].Name, key, "PartitionId"), "foo")
425$"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}",
429$"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}",
433$"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}",
437$"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}",
507$"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}",
511$"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}",
515$"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}",
519$"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}",
549new KeyValuePair<string, string?>($"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}:BlobContainerName", "checkpoints"),
550new KeyValuePair<string, string?>($"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}:PartitionId", "foo"),
553new KeyValuePair<string, string?>($"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}:eh2:BlobContainerName", "checkpoints"),
554new KeyValuePair<string, string?>($"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}:eh2:PartitionId", "foo"),
557new KeyValuePair<string, string?>($"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}:eh3:BlobContainerName", "checkpoints"),
558new KeyValuePair<string, string?>($"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}:eh3:PartitionId", "foo"),
Aspire.Azure.Messaging.ServiceBus (1)
Aspire.Azure.Messaging.WebPubSub (1)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (5)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (1)
Aspire.Azure.Search.Documents (1)
Aspire.Azure.Security.KeyVault (1)
Aspire.Azure.Storage.Blobs (1)
Aspire.Azure.Storage.Files.DataLake (1)
Aspire.Azure.Storage.Queues (1)
Aspire.Cli.EndToEnd.Tests (1)
Aspire.Cli.Tests (5)
Aspire.Confluent.Kafka (2)
Aspire.Dashboard (5)
Aspire.Hosting (28)
Aspire.Hosting.Azure (2)
Aspire.Hosting.Azure.Functions (4)
Aspire.Hosting.Azure.Kubernetes.Tests (2)
Aspire.Hosting.Azure.Kusto.Tests (2)
Aspire.Hosting.Azure.Tests (9)
Aspire.Hosting.Blazor.Tests (2)
Aspire.Hosting.Browsers (2)
Aspire.Hosting.Browsers.Tests (2)
Aspire.Hosting.CodeGeneration.Go.Tests (2)
Aspire.Hosting.CodeGeneration.Java.Tests (2)
Aspire.Hosting.CodeGeneration.Python (1)
Aspire.Hosting.CodeGeneration.Python.Tests (2)
Aspire.Hosting.CodeGeneration.Rust.Tests (2)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (5)
Aspire.Hosting.Containers.Tests (2)
Aspire.Hosting.DevTunnels (3)
Aspire.Hosting.Docker.Tests (2)
Aspire.Hosting.Dotnet.Tests (3)
Aspire.Hosting.Foundry (1)
Aspire.Hosting.Foundry.Tests (2)
Aspire.Hosting.GitHub.Models (1)
Aspire.Hosting.Go.Tests (2)
Aspire.Hosting.Java.Tests (2)
Aspire.Hosting.JavaScript.Tests (1)
Aspire.Hosting.Kubernetes (5)
Aspire.Hosting.Kubernetes.Tests (2)
Aspire.Hosting.Maui (1)
Aspire.Hosting.Maui.Tests (4)
Aspire.Hosting.OpenAI (1)
Aspire.Hosting.Orleans (1)
Aspire.Hosting.PostgreSQL.Tests (1)
Aspire.Hosting.Python.Tests (2)
Aspire.Hosting.Qdrant.Tests (1)
Aspire.Hosting.Radius (11)
Aspire.Hosting.Radius.Tests (2)
Aspire.Hosting.RemoteHost (94)
Ats\CapabilityDispatcher.cs (17)
218Description = capability.Description ?? $"Gets the {property.Name} property",
220ClrMemberName = property.Name
223RegisterMethodAlias(property.Name, capability.MethodName);
288Description = capability.Description ?? $"Sets the {property.Name} property",
290ClrMemberName = property.Name
293RegisterMethodAlias(property.Name, capability.MethodName);
401Description = capability.Description ?? $"Invokes the {method.Name} method",
403ClrMemberName = method.Name
406RegisterMethodAlias(method.Name, capability.MethodName);
490ClrMemberName = method.Name
493RegisterMethodAlias(method.Name, capability.MethodName);
602_logger.LogError(ex, "Capability {CapabilityId} failed with {ExceptionType}: {Message}", capabilityId, ex.GetType().Name, ex.Message);
834handleObject!.GetType().Name);
928return string.Join(" | ", unionMemberTypes.Select(static type => type.Name));
959_ => node.GetType().Name
1088capabilityId, name, typeof(T).Name, obj?.GetType().Name ?? "null");
AtsCapabilityScanner.cs (54)
97var fullName = enumType.FullName ?? enumType.Name;
111Name = enumType.Name,
465diagnostics.Add(AtsDiagnostic.Error(ex.Message, $"{type.FullName}.{method.Name}"));
583Name = enumType.Name,
1073var typeName = type.Name;
1108$"DTO property '{type.FullName}.{prop.Name}' is a get-only mutable collection. Add an init accessor so System.Text.Json replaces the collection during DTO deserialization; otherwise collection values can be merged with initializer defaults.",
1109$"{type.FullName}.{prop.Name}"));
1125Name = prop.Name,
1192$"Skipping [AspireValue] on non-public field '{field.Name}'. Exported values must be public.",
1193$"{type.FullName}.{field.Name}"));
1200memberName: field.Name,
1203docMemberName: $"F:{type.FullName}.{field.Name}",
1221$"Skipping [AspireValue] on property '{property.Name}'. Exported value properties must have a public static getter.",
1222$"{type.FullName}.{property.Name}"));
1229$"Skipping [AspireValue] on indexed property '{property.Name}'. Indexed properties are not supported.",
1230$"{type.FullName}.{property.Name}"));
1237memberName: property.Name,
1240docMemberName: $"P:{type.FullName}.{property.Name}",
1381nestedSegments.Push(current.Name);
1547var typeName = contextType.Name;
1548var fullName = contextType.FullName ?? contextType.Name;
1602var propTypeFullName = propType.FullName ?? propType.Name;
1616? CreateUnionTypeRef(propertyUnionAttr, $"property '{property.Name}'", assemblyExportedTypeCache)
1639propertyTypeRef = CreateUnionTypeRef(propertyUnionAttr, $"property '{property.Name}'", assemblyExportedTypeCache);
1670var propertyDescription = memberExportAttr?.Description ?? propertyDocumentation?.Summary ?? $"Gets the {property.Name} property";
1676var camelCaseName = ToCamelCase(property.Name);
1705SourceLocation = $"{fullName}.{property.Name}",
1719: property.Name;
1728Description = $"Sets the {property.Name} property",
1757SourceLocation = $"{fullName}.{property.Name}",
1768diagnostics.Add(AtsDiagnostic.Error(ex.Message, $"{fullName}.{property.Name}"));
1787method.Name == "GetType" || method.Name == "ToString" ||
1788method.Name == "Equals" || method.Name == "GetHashCode")
1838var camelCaseMethodName = ToCamelCase(method.Name);
1845var camelCaseMethodName = ToCamelCase(method.Name);
1867var description = memberExportAttr?.Description ?? methodDocumentation?.Summary ?? $"Invokes the {method.Name} method";
1900var simpleMethodName = methodNameOverride ?? customMethodName ?? ToCamelCase(method.Name);
1918SourceLocation = $"{contextType.FullName}.{method.Name}",
1928diagnostics.Add(AtsDiagnostic.Error(ex.Message, $"{contextType.FullName}.{method.Name}"));
1981var methodLocation = $"{method.DeclaringType?.FullName ?? method.DeclaringType?.Name ?? "Unknown"}.{method.Name}";
1999methodNameFromAttr = ToCamelCase(method.Name);
2395return AtsConstants.EnumTypeId(type.FullName ?? type.Name);
2415var keyTypeName = genericArgs[0].Name;
2416var valueTypeName = genericArgs[1].Name;
2432var elementTypeName = genericArgs[0].Name;
2723TypeId = AtsConstants.EnumTypeId(type.FullName ?? type.Name),
3305var typeName = memberType.FullName ?? memberType.Name;
3810FieldInfo field when field.DeclaringType is not null => $"F:{GetXmlDocumentationTypeName(field.DeclaringType)}.{field.Name}",
3811PropertyInfo property when property.DeclaringType is not null => $"P:{GetXmlDocumentationTypeName(property.DeclaringType)}.{property.Name}",
3822builder.Append(method.IsConstructor ? "#ctor" : method.Name);
3875return (type.FullName ?? type.Name).Replace('+', '.');
Aspire.Hosting.RemoteHost.Tests (4)
Aspire.Hosting.Rust (1)
Aspire.Hosting.Rust.Tests (2)
Aspire.Hosting.Testing (1)
Aspire.Hosting.Testing.Tests (3)
Aspire.Hosting.Tests (53)
Aspire.Hosting.TestUtilities (3)
Aspire.Hosting.Yarp (1)
Aspire.Hosting.Yarp.Tests (4)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (7)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (8)
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (1)
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration (1)
Aspire.MongoDB.EntityFrameworkCore (7)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (8)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (1)
Aspire.Oracle.EntityFrameworkCore (8)
Aspire.Oracle.EntityFrameworkCore.Tests (1)
Aspire.Playground.Tests (1)
Aspire.Pomelo.EntityFrameworkCore.MySql (10)
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (2)
Aspire.StackExchange.Redis (3)
Aspire.StackExchange.Redis.OutputCaching.Tests (2)
Aspire.StackExchange.Redis.Tests (1)
Aspire.TypeSystem (1)
Client.ExpectedExceptions.IntegrationTests (3)
Contract.Data.IntegrationTests (1)
csc (1)
dotnet (5)
dotnet-aot (3)
dotnet-format (4)
dotnet-Microsoft.XmlSerializer.Generator (1)
dotnet-svcutil-lib (343)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (8)
564return new InvalidCastException(string.Format(ResXml.XmlConvert_TypeBadMapping, XmlTypeName, sourceType.Name));
566return new InvalidCastException(string.Format(ResXml.XmlConvert_TypeBadMapping2, XmlTypeName, sourceType.Name, destinationType.Name));
2913throw new InvalidCastException(string.Format(ResXml.XmlConvert_TypeToString, XmlTypeName, sourceType.Name));
2916throw new InvalidCastException(string.Format(ResXml.XmlConvert_TypeFromString, XmlTypeName, destinationType.Name));
3660return new InvalidCastException(string.Format(ResXml.XmlConvert_TypeListBadMapping, XmlTypeName, sourceType.Name));
3662return new InvalidCastException(string.Format(ResXml.XmlConvert_TypeListBadMapping2, XmlTypeName, sourceType.Name, destinationType.Name));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (7)
1276throw new InvalidOperationException(string.Format(ResXml.XmlSerializableSchemaError, typeof(IXmlSerializable).Name, args.Message));
1363throw new InvalidOperationException(string.Format(ResXml.XmlGetSchemaEmptyTypeName, _type.FullName, _getSchemaMethod.Name));
1368throw new InvalidOperationException(string.Format(ResXml.XmlGetSchemaMethodReturnType, _type.Name, _getSchemaMethod.Name, typeof(XmlSchemaProviderAttribute).Name, typeof(XmlQualifiedName).FullName));
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\Microsoft.Xml\Xml\Serialization\Models.cs (8)
195throw new InvalidOperationException(string.Format(ResXml.XmlSerializerUnsupportedMember, member.DeclaringType.FullName + "." + member.Name, type.FullName), typeDesc.Exception);
278_name = memberInfo.Name;
282_checkShouldPersistMethodInfo = memberInfo.DeclaringType.GetMethod("ShouldSerialize" + memberInfo.Name, new Type[0]);
285FieldInfo specifiedField = memberInfo.DeclaringType.GetField(memberInfo.Name + "Specified");
290throw new InvalidOperationException(string.Format(ResXml.XmlInvalidSpecifiedType, specifiedField.Name, specifiedField.FieldType.FullName, typeof(bool).FullName));
297PropertyInfo specifiedProperty = memberInfo.DeclaringType.GetProperty(memberInfo.Name + "Specified");
307throw new InvalidOperationException(string.Format(ResXml.XmlInvalidSpecifiedType, specifiedProperty.Name, specifiedProperty.PropertyType.FullName, typeof(bool).FullName));
384get { return _fieldInfo.Name; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (10)
119: this(type.Name, type.FullName, dataType, TypeKind.Primitive, (TypeDesc)null, flags, formatterName)
854arrayElementType = GetCollectionElementType(type, memberInfo == null ? null : memberInfo.DeclaringType.FullName + "." + memberInfo.Name);
927exception = new NotSupportedException(string.Format(ResXml.XmlUnsupportedInterfaceDetails, memberInfo.DeclaringType.FullName + "." + memberInfo.Name, type.FullName));
1031string name = t.Name;
1054return t.Name;
1126throw new InvalidOperationException(string.Format(ResXml.XmlReadOnlyPropertyError, propertyInfo.DeclaringType, propertyInfo.Name));
1223if (info.Name == memberInfoToBeReplaced.Name)
1235if (info.Name == memberInfoToBeReplaced.Name)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (14)
253XmlAttributes attrs = _attributeOverrides[memberInfo.DeclaringType, memberInfo.Name];
455throw new InvalidOperationException(string.Format(ResXml.XmlSerializableAttributes, model.TypeDesc.FullName, typeof(XmlSchemaProviderAttribute).Name));
493throw new InvalidOperationException(string.Format(ResXml.XmlGetSchemaMethodMissing, provider.MethodName, typeof(XmlSchemaSet).Name, type.FullName));
496throw new InvalidOperationException(string.Format(ResXml.XmlGetSchemaMethodReturnType, type.Name, provider.MethodName, typeof(XmlSchemaProviderAttribute).Name, typeof(XmlQualifiedName).FullName, typeof(XmlSchemaType).FullName));
582throw new InvalidOperationException(string.Format(ResXml.XmlSerializableSchemaError, typeof(IXmlSerializable).Name, args.Message));
598throw new InvalidOperationException(string.Format(ResXml.XmlGetSchemaInclude, baseQname.Namespace, typeof(IXmlSerializable).Name, "GetSchema"));
1568throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAttrOrTextInterface, accessorName, accessor.TypeDesc.ArrayElementTypeDesc.FullName, typeof(IXmlSerializable).Name));
1862throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAttrOrTextInterface, accessorName, accessor.TypeDesc.FullName, typeof(IXmlSerializable).Name));
2078throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentiferMissing, typeof(XmlChoiceIdentifierAttribute).Name, accessorName));
2089throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentiferMissing, typeof(XmlChoiceIdentifierAttribute).Name, accessorName));
2104throw new InvalidOperationException(string.Format(ResXml.XmlArrayItemAmbiguousTypes, accessorName, item.ElementName, items[i].ElementName, typeof(XmlElementAttribute).Name, typeof(XmlChoiceIdentifierAttribute).Name, accessorName));
2264typeName = type.Name;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (22)
373existingMemberContract.MemberInfo.Name,
374memberContract.MemberInfo.Name,
597this.OnDeserializing.Name),
611this.OnDeserialized.Name),
631this.Members[i].MemberInfo.Name),
640this.Members[i].MemberInfo.Name),
685this.OnSerializing.Name),
699this.OnSerialized.Name),
719this.Members[i].MemberInfo.Name),
728this.Members[i].MemberInfo.Name),
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));
981ThrowInvalidDataContractException(string.Format(SRSerialization.InvalidMember, DataContract.GetClrTypeFullName(type), member.Name));
987ThrowInvalidDataContractException(string.Format(SRSerialization.InvalidDataMemberName, member.Name, DataContract.GetClrTypeFullName(type)));
991memberContract.Name = member.Name;
1001member.Name, true), type);
1019ThrowInvalidDataContractException(string.Format(SRSerialization.TooManyIgnoreDataMemberAttributes, DataContract.GetClrTypeFullName(member.DeclaringType), member.Name));
1043memberContract.Name = DataContract.EncodeLocalName(member.Name);
1058memberContract.Name = DataContract.EncodeLocalName(member.Name);
1067member.Name, true), type);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (2)
1318throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.GenericAnnotationHasInvalidAttributeValue, argumentElement.LocalName, argumentElement.NamespaceURI, type.Name, nestedLevelAttribute.Value, nestedLevelAttribute.LocalName, Globals.TypeOfInt.Name)));
1332throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.GenericAnnotationHasInvalidAttributeValue, typeElement.LocalName, typeElement.NamespaceURI, type.Name, typeNestedLevelsAttribute.Value, typeNestedLevelsAttribute.LocalName, Globals.TypeOfInt.Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncodingBindingElement.cs (1)
176this.GetType().Name,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpMessageHandlerFactory.cs (8)
59string.Format(SRServiceModel.HttpMessageHandlerTypeNotSupported, "null", s_delegatingHandlerType.Name));
66string.Format(SRServiceModel.HttpMessageHandlerTypeNotSupported, handler.Name, s_delegatingHandlerType.Name));
74string.Format(SRServiceModel.HttpMessageHandlerTypeNotSupported, handler.Name, s_delegatingHandlerType.Name));
154throw FxTrace.Exception.Argument("handlers", string.Format(SRServiceModel.DelegatingHandlerArrayFromFuncContainsNullItem, s_delegatingHandlerType.Name, GetFuncDetails(_handlerFunc)));
183throw FxTrace.Exception.Argument("handlers", string.Format(SRServiceModel.DelegatingHandlerArrayHasNonNullInnerHandler, s_delegatingHandlerType.Name, "InnerHandler", handler.GetType().Name));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (32)
63int nameEnd = t.Name.IndexOf('`');
64string result = nameEnd > 0 ? t.Name.Substring(0, nameEnd) : t.Name;
78return t.Name;
395throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ServicesWithoutAServiceContractAttributeCan2, operationContractProviderType.Name, method.Name, service.FullName)));
488string.Format(SRServiceModel.SFxErrorReflectingOnType2, attrType.Name, type.Name), e));
494attrType.Name, method.Name, method.DeclaringType.Name), e));
503attrType.Name, param.Name, method.Name, method.DeclaringType.Name), e));
507string.Format(SRServiceModel.SFxErrorReflectionOnUnknown1, attrType.Name), e));
603throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.AttemptedToGetContractTypeForButThatTypeIs1, interfaceType.Name)));
624string.Format(SRServiceModel.SFxNoMostDerivedContract, interfaceType.Name)));
667methodInfo.Name, methodInfo.DeclaringType.Name)));
676methodInfo.Name, methodInfo.DeclaringType.Name)));
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)));
824if (!method.Name.StartsWith(BeginMethodNamePrefix, StringComparison.Ordinal) ||
841throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.InvalidAsyncBeginMethodSignatureForMethod2, method.Name, method.DeclaringType.FullName)));
884if (!method.Name.StartsWith(EndMethodNamePrefix, StringComparison.Ordinal) ||
927return method.Name.Substring(BeginMethodNamePrefix.Length);
929else if (isTask && method.Name.EndsWith(AsyncMethodNameSuffix, StringComparison.Ordinal))
931return method.Name.Substring(0, method.Name.Length - AsyncMethodNameSuffix.Length);
935return method.Name;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (98)
144SRServiceModel.SFxOperationContractOnNonServiceContract, methodInfo.Name, aParentType.Name)));
149SRServiceModel.SFxOperationContractProviderOnNonServiceContract, operationContractProviderType.Name, methodInfo.Name, aParentType.Name)));
467opDesc.SyncMethod.Name,
469opDesc.BeginMethod.Name,
470opDesc.EndMethod.Name,
478opDesc.SyncMethod.Name,
480opDesc.TaskMethod.Name,
488opDesc.TaskMethod.Name,
490opDesc.BeginMethod.Name,
491opDesc.EndMethod.Name,
528!String.Equals(method1.Name, method2.Name, StringComparison.Ordinal) ||
683String.Format(CultureInfo.InvariantCulture, "Bad contract inheritence. Contract {0} does not implement {1}", declaringContract.ContractType.Name, contractDescription.ContractType.Name)
705throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.SFxInvalidCallbackContractType, callbackType.Name)));
726inheritedContractType.Name, inheritedContractAttr.CallbackContract.Name, contractType.Name)));
732inheritedContractType.Name, contractType.Name)));
860methodInfo.Name, reflectionInfo.iface)));
880string method1Name = existingOp.OperationMethod.Name;
881string method2Name = methodInfo.Name;
886string method1Name = existingOp.BeginMethod.Name;
887string method2Name = methodInfo.Name;
892string method1Name = existingOp.SyncMethod.Name;
893string method2Name = methodInfo.Name;
1126string methodName = methodInfo.Name;
1372new XmlName(memberInfo.Name),
1381new XmlName(memberInfo.Name),
1595_syncOperation.SyncMethod.Name,
1597_asyncOperation.BeginMethod.Name,
1598_asyncOperation.EndMethod.Name,
1611_syncOperation.SyncMethod.Name,
1613_asyncOperation.BeginMethod.Name,
1614_asyncOperation.EndMethod.Name,
1628_syncOperation.SyncMethod.Name,
1630_asyncOperation.BeginMethod.Name,
1631_asyncOperation.EndMethod.Name,
1643_syncOperation.SyncMethod.Name,
1645_asyncOperation.BeginMethod.Name,
1646_asyncOperation.EndMethod.Name,
1657_syncOperation.SyncMethod.Name,
1659_asyncOperation.BeginMethod.Name,
1660_asyncOperation.EndMethod.Name,
1662typeof(FaultContractAttribute).Name)));
1672_syncOperation.SyncMethod.Name,
1674_asyncOperation.BeginMethod.Name,
1675_asyncOperation.EndMethod.Name,
1677typeof(ServiceKnownTypeAttribute).Name)));
1687_syncOperation.SyncMethod.Name,
1689_asyncOperation.BeginMethod.Name,
1690_asyncOperation.EndMethod.Name,
1704_syncOperation.SyncMethod.Name,
1706_asyncOperation.BeginMethod.Name,
1707_asyncOperation.EndMethod.Name,
1736_syncOperation.SyncMethod.Name,
1738_taskOperation.TaskMethod.Name,
1751_syncOperation.SyncMethod.Name,
1753_taskOperation.TaskMethod.Name,
1765_syncOperation.SyncMethod.Name,
1767_taskOperation.TaskMethod.Name,
1778_syncOperation.SyncMethod.Name,
1780_taskOperation.TaskMethod.Name,
1782typeof(FaultContractAttribute).Name)));
1792_syncOperation.SyncMethod.Name,
1794_taskOperation.TaskMethod.Name,
1796typeof(ServiceKnownTypeAttribute).Name)));
1806_syncOperation.SyncMethod.Name,
1808_taskOperation.TaskMethod.Name,
1822_syncOperation.SyncMethod.Name,
1824_taskOperation.TaskMethod.Name,
1853_taskOperation.TaskMethod.Name,
1855_asyncOperation.BeginMethod.Name,
1856_asyncOperation.EndMethod.Name,
1869_taskOperation.TaskMethod.Name,
1871_asyncOperation.BeginMethod.Name,
1872_asyncOperation.EndMethod.Name,
1884_taskOperation.TaskMethod.Name,
1886_asyncOperation.BeginMethod.Name,
1887_asyncOperation.EndMethod.Name,
1898_taskOperation.TaskMethod.Name,
1900_asyncOperation.BeginMethod.Name,
1901_asyncOperation.EndMethod.Name,
1903typeof(FaultContractAttribute).Name)));
1913_taskOperation.TaskMethod.Name,
1915_asyncOperation.BeginMethod.Name,
1916_asyncOperation.EndMethod.Name,
1918typeof(ServiceKnownTypeAttribute).Name)));
1928_taskOperation.TaskMethod.Name,
1930_asyncOperation.BeginMethod.Name,
1931_asyncOperation.EndMethod.Name,
1945_taskOperation.TaskMethod.Name,
1947_asyncOperation.BeginMethod.Name,
1948_asyncOperation.EndMethod.Name,
dotnet-svcutil-lib.Tests (3)
GenerateDocumentationAndConfigFiles (21)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (14)
166string.Format(WorkspaceExtensionsResources.Destination_type_must_be_a_0_but_given_one_is_1, typeof(TDeclarationNode).Name, destination.GetType().Name),
185typeof(TDeclarationNode1).Name, typeof(TDeclarationNode2).Name, destination.GetType().Name),
206typeof(TDeclarationNode1).Name, typeof(TDeclarationNode2).Name, typeof(TDeclarationNode3).Name, destination.GetType().Name),
224typeof(TDeclarationNode1).Name, typeof(TDeclarationNode2).Name, typeof(TDeclarationNode3).Name, typeof(TDeclarationNode4).Name, destination.GetType().Name),
GetDocument.Insider (2)
ILCompiler.Compiler (2)
ILCompiler.ReadyToRun (4)
illink (7)
ILLink.RoslynAnalyzer (2)
Infrastructure.Common (1)
Infrastructure.Tests (2)
Microsoft.AspNetCore (1)
Microsoft.AspNetCore.App.Analyzers (1)
Microsoft.AspNetCore.Authentication.Core (2)
Microsoft.AspNetCore.Components (48)
PersistentState\PersistentValueProviderComponentSubscription.cs (10)
143Log.RestoringValueFromState(_logger, _storageKey, _propertyType.Name, _propertyName);
154Log.ValueNotFoundInPersistentState(_logger, _storageKey, _propertyType.Name, "null", _propertyName);
161Log.RestoredValueFromPersistentState(_logger, _storageKey, _propertyType.Name, "null", _propertyName);
171Log.NoValueToRestoreFromState(_logger, _storageKey, _propertyType.Name, _propertyName);
188Log.SkippedPersistingNullValue(_logger, _storageKey, _propertyType.Name, _subscriber.Component.GetType().Name, _propertyName);
194Log.PersistingValueToState(_logger, _storageKey, _propertyType.Name, _subscriber.Component.GetType().Name, _propertyName);
203Log.PersistingValueToState(_logger, _storageKey, _propertyType.Name, _subscriber.Component.GetType().Name, _propertyName);
Microsoft.AspNetCore.Components.AI (8)
Pipeline\BlockMappingPipeline.cs (6)
54var contentTypes = string.Join(", ", update.Contents.Select(c => c.GetType().Name));
70BlockMappingPipelineLog.ActiveHandlerResult(_logger, active.Block.GetType().Name, result.Kind.ToString(), active.Block.Id);
100BlockMappingPipelineLog.TryingInactiveHandler(_logger, handler.GetType().Name);
122BlockMappingPipelineLog.ActiveHandlerResult(_logger, emitBlock.GetType().Name, catchUpResult.Kind.ToString(), emitBlock.Id);
136BlockMappingPipelineLog.EmittingBlock(_logger, emitBlock.GetType().Name, emitBlock.Id, emitBlock.Role?.Value);
176$"Block handler emitted a {block.GetType().Name} without assigning an Id.");
Microsoft.AspNetCore.Components.Authorization (1)
Microsoft.AspNetCore.Components.Endpoints (28)
FormMapping\Metadata\FormDataMetadataFactory.cs (9)
165var parameters = $"({string.Join(", ", result.Constructor.GetParameters().Select(p => p.ParameterType.Name))})";
193.FirstOrDefault(p => string.Equals(p.Name, property.Name, StringComparison.OrdinalIgnoreCase));
197Log.MatchingConstructorParameterFound(_logger, matchingConstructorParameter.Name, property.Name);
201Log.CustomParameterNameMetadata(_logger, dataMember.Name, property.Name);
212Log.IgnoredProperty(_logger, property.Name);
219Log.NonPublicSetter(_logger, property.Name);
227Log.PropertyTypeNotSupported(_logger, type, property.Name, property.PropertyType);
236Log.CustomParameterNameMetadata(_logger, dataMemberAttribute.Name, property.Name);
307var chain = string.Join(" -> ", _context.CurrentTypes.Append(type).Select(t => t.Name));
Microsoft.AspNetCore.Components.Forms (10)
Microsoft.AspNetCore.Components.QuickGrid (6)
Microsoft.AspNetCore.Components.Server (7)
Microsoft.AspNetCore.Components.Web (9)
Microsoft.AspNetCore.Components.WebAssembly (2)
Microsoft.AspNetCore.Components.WebView.Wpf (1)
Microsoft.AspNetCore.DataProtection (2)
Microsoft.AspNetCore.DataProtection.EntityFrameworkCore (1)
Microsoft.AspNetCore.Diagnostics (13)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (4)
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding (8)
Microsoft.AspNetCore.Hosting (20)
Microsoft.AspNetCore.Http (3)
Microsoft.AspNetCore.Http.Abstractions (3)
Microsoft.AspNetCore.Http.Extensions (23)
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Metadata\FormDataMetadataFactory.cs (9)
165var parameters = $"({string.Join(", ", result.Constructor.GetParameters().Select(p => p.ParameterType.Name))})";
193.FirstOrDefault(p => string.Equals(p.Name, property.Name, StringComparison.OrdinalIgnoreCase));
197Log.MatchingConstructorParameterFound(_logger, matchingConstructorParameter.Name, property.Name);
201Log.CustomParameterNameMetadata(_logger, dataMember.Name, property.Name);
212Log.IgnoredProperty(_logger, property.Name);
219Log.NonPublicSetter(_logger, property.Name);
227Log.PropertyTypeNotSupported(_logger, type, property.Name, property.PropertyType);
236Log.CustomParameterNameMetadata(_logger, dataMemberAttribute.Name, property.Name);
307var chain = string.Join(" -> ", _context.CurrentTypes.Append(type).Select(t => t.Name));
Microsoft.AspNetCore.Http.Results (4)
Microsoft.AspNetCore.Identity (2)
Microsoft.AspNetCore.Identity.EntityFrameworkCore (8)
Microsoft.AspNetCore.Identity.UI (2)
Microsoft.AspNetCore.InternalTesting (4)
Microsoft.AspNetCore.JsonPatch (1)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (1)
Microsoft.AspNetCore.Localization (2)
Microsoft.AspNetCore.Mvc.Abstractions (15)
Microsoft.AspNetCore.Mvc.ApiExplorer (8)
Microsoft.AspNetCore.Mvc.Core (46)
Microsoft.AspNetCore.Mvc.DataAnnotations (4)
Microsoft.AspNetCore.Mvc.Formatters.Xml (3)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (3)
Microsoft.AspNetCore.Mvc.RazorPages (12)
Microsoft.AspNetCore.Mvc.Testing (3)
Microsoft.AspNetCore.Mvc.ViewFeatures (48)
TemplateRenderer.cs (20)
31{ typeof(bool).Name, DefaultDisplayTemplates.BooleanTemplate },
32{ typeof(decimal).Name, DefaultDisplayTemplates.DecimalTemplate },
33{ typeof(string).Name, DefaultDisplayTemplates.StringTemplate },
34{ typeof(object).Name, DefaultDisplayTemplates.ObjectTemplate },
55{ typeof(byte).Name, DefaultEditorTemplates.NumberInputTemplate },
56{ typeof(sbyte).Name, DefaultEditorTemplates.NumberInputTemplate },
57{ typeof(short).Name, DefaultEditorTemplates.NumberInputTemplate },
58{ typeof(ushort).Name, DefaultEditorTemplates.NumberInputTemplate },
59{ typeof(int).Name, DefaultEditorTemplates.NumberInputTemplate },
60{ typeof(uint).Name, DefaultEditorTemplates.NumberInputTemplate },
61{ typeof(long).Name, DefaultEditorTemplates.NumberInputTemplate },
62{ typeof(ulong).Name, DefaultEditorTemplates.NumberInputTemplate },
63{ typeof(bool).Name, DefaultEditorTemplates.BooleanTemplate },
64{ typeof(decimal).Name, DefaultEditorTemplates.DecimalTemplate },
65{ typeof(string).Name, DefaultEditorTemplates.StringTemplate },
66{ typeof(object).Name, DefaultEditorTemplates.ObjectTemplate },
67{ typeof(IFormFile).Name, DefaultEditorTemplates.FileInputTemplate },
176yield return fieldType.Name;
211yield return type.Name;
224yield return fieldType.Name;
Microsoft.AspNetCore.OpenApi (20)
Microsoft.AspNetCore.Routing (9)
Microsoft.AspNetCore.Routing.Abstractions (1)
Microsoft.AspNetCore.Server.HttpSys (1)
Microsoft.AspNetCore.Server.IIS (12)
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Microsoft.AspNetCore.SignalR.Client.Core (8)
Microsoft.AspNetCore.SignalR.Core (32)
Internal\DefaultHubDispatcher.cs (12)
23private static readonly string _fullHubName = typeof(THub).FullName ?? typeof(THub).Name;
62return ExecuteMethod(invocationContext.HubMethod.Name, invocationContext.Hub, arguments);
208Log.DroppingMessage(_logger, hubMessage.GetType().Name, (hubMessage as HubInvocationMessage)?.InvocationId ?? "(null)");
632Log.InvalidReturnValueFromStreamingMethod(_logger, descriptor.MethodExecutor.MethodInfo.Name);
633error = $"The value returned by the streaming method '{descriptor.MethodExecutor.MethodInfo.Name}' is not a ChannelReader<> or IAsyncEnumerable<>.";
654Log.FailedStreaming(_logger, invocationId, descriptor.MethodExecutor.MethodInfo.Name, exception);
664Log.FailedStreaming(_logger, invocationId, descriptor.MethodExecutor.MethodInfo.Name, ex);
867Debug.Assert(false, $"Failed to bind argument of type '{descriptor.OriginalParameterTypes[parameterPointer].Name}' for hub method '{descriptor.MethodExecutor.MethodInfo.Name}'.");
886var hubName = hubType.Name;
900throw new NotSupportedException($"Method '{methodInfo.Name}' is a generic method which is not supported on a Hub.");
905methodInfo.Name;
Microsoft.AspNetCore.SignalR.Protocols.Json (2)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (3)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (2)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
Microsoft.AspNetCore.TestHost (2)
Microsoft.Build (40)
Microsoft.Build.Framework (16)
Microsoft.Build.Tasks.CodeAnalysis (1)
Microsoft.Build.Tasks.Core (17)
Microsoft.Build.Utilities.Core (3)
Microsoft.CodeAnalysis (23)
Microsoft.CodeAnalysis.Analyzers (18)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (14)
166string.Format(WorkspaceExtensionsResources.Destination_type_must_be_a_0_but_given_one_is_1, typeof(TDeclarationNode).Name, destination.GetType().Name),
185typeof(TDeclarationNode1).Name, typeof(TDeclarationNode2).Name, destination.GetType().Name),
206typeof(TDeclarationNode1).Name, typeof(TDeclarationNode2).Name, typeof(TDeclarationNode3).Name, destination.GetType().Name),
224typeof(TDeclarationNode1).Name, typeof(TDeclarationNode2).Name, typeof(TDeclarationNode3).Name, typeof(TDeclarationNode4).Name, destination.GetType().Name),
Microsoft.CodeAnalysis.AnalyzerUtilities (6)
Microsoft.CodeAnalysis.CodeStyle (3)
Microsoft.CodeAnalysis.CodeStyle.Fixes (14)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (14)
166string.Format(WorkspaceExtensionsResources.Destination_type_must_be_a_0_but_given_one_is_1, typeof(TDeclarationNode).Name, destination.GetType().Name),
185typeof(TDeclarationNode1).Name, typeof(TDeclarationNode2).Name, destination.GetType().Name),
206typeof(TDeclarationNode1).Name, typeof(TDeclarationNode2).Name, typeof(TDeclarationNode3).Name, destination.GetType().Name),
224typeof(TDeclarationNode1).Name, typeof(TDeclarationNode2).Name, typeof(TDeclarationNode3).Name, typeof(TDeclarationNode4).Name, destination.GetType().Name),
Microsoft.CodeAnalysis.CSharp (11)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.Features (2)
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Microsoft.CodeAnalysis.ExternalAccess.Extensions (2)
Microsoft.CodeAnalysis.Features (11)
Microsoft.CodeAnalysis.NetAnalyzers (4)
Microsoft.CodeAnalysis.Razor.Compiler (18)
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
Microsoft.CodeAnalysis.Scripting (21)
Microsoft.CodeAnalysis.VisualBasic (3)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Microsoft.CodeAnalysis.Workspaces (27)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (14)
166string.Format(WorkspaceExtensionsResources.Destination_type_must_be_a_0_but_given_one_is_1, typeof(TDeclarationNode).Name, destination.GetType().Name),
185typeof(TDeclarationNode1).Name, typeof(TDeclarationNode2).Name, destination.GetType().Name),
206typeof(TDeclarationNode1).Name, typeof(TDeclarationNode2).Name, typeof(TDeclarationNode3).Name, destination.GetType().Name),
224typeof(TDeclarationNode1).Name, typeof(TDeclarationNode2).Name, typeof(TDeclarationNode3).Name, typeof(TDeclarationNode4).Name, destination.GetType().Name),
Microsoft.CSharp (34)
Microsoft.Data.Analysis (2)
Microsoft.Diagnostics.DataContractReader (1)
Microsoft.Diagnostics.DataContractReader.Abstractions (3)
Microsoft.Diagnostics.DataContractReader.Contracts (2)
Microsoft.Diagnostics.DataContractReader.Legacy (1)
Microsoft.Diagnostics.NETCore.Client (1)
Microsoft.DotNet.Cli.CommandLine (2)
Microsoft.DotNet.CodeAnalysis (1)
Microsoft.DotNet.HotReload.WebAssembly.Browser (2)
Microsoft.DotNet.Internal.DependencyInjection.Testing (2)
Microsoft.DotNet.ProjectTools (1)
Microsoft.Extensions.AI (3)
Microsoft.Extensions.AI.Abstractions (14)
Microsoft.Extensions.AI.Abstractions.Tests (3)
Microsoft.Extensions.AI.Evaluation.Quality (1)
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (2)
Microsoft.Extensions.AI.Evaluation.Safety (1)
Microsoft.Extensions.AI.OpenAI (1)
Microsoft.Extensions.AI.Tests (1)
Microsoft.Extensions.Caching.Hybrid (1)
Microsoft.Extensions.Configuration (1)
Microsoft.Extensions.Configuration.Binder (4)
Microsoft.Extensions.Configuration.EnvironmentVariables (1)
Microsoft.Extensions.Configuration.FileExtensions (1)
Microsoft.Extensions.Configuration.KeyPerFile (1)
Microsoft.Extensions.DataIngestion (1)
Microsoft.Extensions.DataIngestion.Markdig (3)
Microsoft.Extensions.DataIngestion.MarkItDown (3)
Microsoft.Extensions.DependencyInjection (6)
Microsoft.Extensions.Diagnostics.Abstractions (6)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (4)
Microsoft.Extensions.Diagnostics.ExceptionSummarization.Tests (3)
Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore (1)
Microsoft.Extensions.Diagnostics.Probes.Tests (3)
Microsoft.Extensions.Diagnostics.Testing (1)
Microsoft.Extensions.DotNetDeltaApplier (2)
Microsoft.Extensions.Http (8)
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Microsoft.Extensions.Http.Resilience.Tests (1)
Microsoft.Extensions.Identity.Core (6)
Microsoft.Extensions.Logging (1)
Microsoft.Extensions.Logging.Abstractions (6)
Microsoft.Extensions.ObjectPool (2)
Microsoft.Extensions.Options.DataAnnotations (6)
DataAnnotationValidateOptions.Async.cs (3)
59(bool success, errors) = await TryValidateOptionsAsync(options, options.GetType().Name, validationResults, errors, visited, cancellationToken).ConfigureAwait(false);
132(innerRes, errors) = await TryValidateOptionsAsync(value, $"{qualifiedName}.{propertyInfo.Name}", results, errors, visited, cancellationToken).ConfigureAwait(false);
147(innerRes, errors) = await TryValidateOptionsAsync(item, $"{qualifiedName}.{propertyInfo.Name}[{index}]", results, errors, visited, cancellationToken).ConfigureAwait(false);
DataAnnotationValidateOptions.cs (3)
69if (TryValidateOptions(options, options.GetType().Name, validationResults, ref errors, ref visited))
124res = TryValidateOptions(value, $"{qualifiedName}.{propertyInfo.Name}", results, ref errors, ref visited) && res;
138res = TryValidateOptions(item, $"{qualifiedName}.{propertyInfo.Name}[{index}]", results, ref errors, ref visited) && res;
Microsoft.Extensions.ServiceDiscovery.Dns.Tests.Fuzzing (1)
Microsoft.Extensions.VectorData.Abstractions (49)
ProviderServices\Filter\FilterTranslatorBase.cs (11)
39case { Method.Name: nameof(Enumerable.Contains), Arguments: [var src, var itm] }
50Name: nameof(Enumerable.Contains),
66case { Method.Name: nameof(MemoryExtensions.Contains), Arguments: [var spanArg, var itm, ..] }
93Method: { Name: "op_Implicit", DeclaringType: { IsGenericType: true } implicitCastDeclaringType },
99Method: { Name: "op_Implicit", DeclaringType: { IsGenericType: true } implicitCastDeclaringType },
193=> memberExpression.Member.Name,
198Method: { Name: "get_Item", DeclaringType: var declaringType },
225throw new InvalidCastException($"Property '{propertyModel.ModelName}' is being cast to type '{convert.Type.Name}', but its configured type is '{propertyModel.Type.Name}'.");
317throw new InvalidOperationException($"Cannot access member '{propertyInfo.Name}' on null object.");
337var origName = memberInfo.Name;
Microsoft.Extensions.VectorData.ConformanceTests (4)
Microsoft.JSInterop (7)
Microsoft.Maui (9)
Microsoft.Maui.Controls (21)
Microsoft.Maui.Controls.Build.Tasks (3)
Microsoft.Maui.Controls.Xaml (18)
Microsoft.Maui.Essentials (2)
Microsoft.Maui.Resizetizer (1)
Microsoft.ML.AutoML (4)
Microsoft.ML.AutoML.Tests (3)
Microsoft.ML.CodeGenerator (4)
Microsoft.ML.Core (33)
ComponentModel\ComponentCatalog.cs (12)
256throw Contracts.Except("Can't instantiate class '{0}'", Type.Name);
346Name = attribute.Name ?? string.Join(".", method.DeclaringType.Name, method.Name);
357throw Contracts.Except("Method '{0}' has {1} parameters, but must have 2 or 3", method.Name, parameters.Length);
359throw Contracts.Except("Method '{0}', 1st parameter is {1}, but must be IHostEnvironment", method.Name, parameters[0].ParameterType);
363throw Contracts.Except("Method '{0}' returns {1}, but must return a class", method.Name, outputType);
541throw Contracts.Except($"ComponentCatalog cannot map name '{name}' and SignatureType '{sigType}' to {info.Type.Name}, already mapped to {infoCur.Type.Name}.");
702$"Can't instantiate loadable class '{attr.InstanceType.Name}' with name '{attr.LoadNames[0]}'");
763string kind = sig.Name;
1034throw Contracts.Except("Can't instantiate arguments object '{0}' for '{1}'", info.ArgType.Name, name);
1092throw Contracts.Except($"An extension for '{key.AttributeType.Name}' with contract '{key.ContractName}' has already been registered in the ComponentCatalog.");
Microsoft.ML.Core.Tests (1)
Microsoft.ML.Data (58)
Data\SchemaDefinition.cs (6)
394memberInfo.Name, customTypeAttributes, typeof(DataViewTypeAttribute));
402name = mappingNameAttr?.Name ?? memberInfo.Name;
441throw Contracts.ExceptParam(nameof(userType), "Member {0} marked with KeyType attribute, but does not appear to be a valid kind of data for a key type", memberInfo.Name);
452throw Contracts.ExceptParam(nameof(userType), $"Member {memberInfo.Name} marked with {nameof(VectorTypeAttribute)}, but does not appear to be a vector type", memberInfo.Name);
469cols.Add(new Column(memberInfo.Name, columnType, name));
Dirty\PredictorUtils.cs (13)
30writer.WriteLine("'{0}' does not support saving summary", predictor.GetType().Name);
31ch.Error("'{0}' does not support saving summary", predictor.GetType().Name);
55writer.WriteLine("'{0}' does not support saving in text format, writing out model summary instead", predictor.GetType().Name);
57predictor.GetType().Name);
62writer.WriteLine("'{0}' does not support saving in text format", predictor.GetType().Name);
63ch.Error("'{0}' doesn't currently have standardized text format for /mt", predictor.GetType().Name);
76ch.Error("'{0}' doesn't currently have standardized binary format for /mb", predictor.GetType().Name);
102writer.WriteLine("'{0}' does not support saving in INI format, writing out model summary instead", predictor.GetType().Name);
104predictor.GetType().Name);
109writer.WriteLine("'{0}' does not support saving in INI format", predictor.GetType().Name);
110ch.Error("'{0}' doesn't currently have standardized INI format output", predictor.GetType().Name);
129writer.WriteLine("'{0}' does not support saving in code.", predictor.GetType().Name);
130ch.Error("'{0}' doesn't currently support saving the model as code", predictor.GetType().Name);
EntryPoints\InputBuilder.cs (19)
108if (name == (_attrs[i].Input.Name ?? _fields[i].Name) || AnyMatch(name, _attrs[i].Input.Aliases))
144return fi >= 0 ? _fields[fi].Name : null;
158missing.Add(attr.Input.Name ?? field.Name);
231if (inputBindingMap.TryGetValue(field.Name, out List<ParameterBinding> bindings))
244result.Add(attr.Input.Name ?? field.Name, new JValue(varBinding.ToJson()));
259result.Add(attr.Input.Name ?? field.Name, array);
271result.Add(attr.Input.Name ?? field.Name, new JValue(instanceVal));
285result.Add(attr.Input.Name ?? field.Name, (JArray)instanceVal);
291result.Add(attr.Input.Name ?? field.Name, new JValue($"${((IVarSerializationHelper)instanceVal).VarName}"));
304result.Add(attr.Input.Name ?? field.Name, new JValue(instanceVal));
309result.Add(attr.Input.Name ?? field.Name, new JValue(instanceVal.ToString()));
336result.Add(attr.Input.Name ?? field.Name, jarray);
373result.Add(attr.Input.Name ?? field.Name, jcomponent);
382result.Add(attr.Input.Name ?? field.Name, builder.GetJsonObject(instanceVal, new Dictionary<string, List<ParameterBinding>>(),
447throw ectx.Except($"Requested value '{value.Value<string>()}' is not a member of the Enum type '{type.Name}'");
696if (name == (_attrs[i].Name ?? _fields[i].Name))
725yield return new KeyValuePair<string, object>(attr.Name ?? fieldInfo.Name, fieldInfo.GetValue(output));
735if (outputMap.TryGetValue(fieldInfo.Name, out string varname))
736result.Add(fieldInfo.Name, new JValue($"${varname}"));
Microsoft.ML.DataView (6)
Microsoft.ML.Ensemble (6)
Microsoft.ML.EntryPoints (13)
Microsoft.ML.FastTree (2)
Microsoft.ML.GenAI.Core (3)
Microsoft.ML.GenAI.LLaMA (1)
Microsoft.ML.GenAI.Phi (1)
Microsoft.ML.IntegrationTests (3)
Microsoft.ML.LightGbm (6)
Microsoft.ML.OnnxConverter (1)
Microsoft.ML.Predictor.Tests (2)
Microsoft.ML.Samples (3)
Microsoft.ML.Samples.GPU (1)
Microsoft.ML.SearchSpace (8)
SearchSpace.cs (7)
206Contract.Assert(attributes.Count() <= 1, $"{field.Name} can only define one of the choice|range|option attribute");
213CheckOptionType(attributes.First(), field.Name, field.FieldType);
233res.Add(field.Name, option);
253Contract.Assert(attributes.Count() <= 1, $"{property.Name} can only define one of the choice|range|option attribute");
260CheckOptionType(attributes.First(), property.Name, property.PropertyType);
280res.Add(property.Name, option);
304Contract.Assert(supportTypes.Contains(type) || type.IsEnum, $"[Option:{optionName}] ChoiceAttribute can only apply to enum or the following types {string.Join(",", supportTypes.Select(x => x.Name))}");
Microsoft.ML.TestFramework (4)
Microsoft.NET.Sdk.Publish.Tasks (4)
Microsoft.Private.Windows.Core (11)
Microsoft.TemplateEngine.Cli (4)
Microsoft.TemplateEngine.Edge (2)
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (2)
Microsoft.TestPlatform.AdapterUtilities (3)
Microsoft.TestPlatform.CrossPlatEngine (5)
Microsoft.TestPlatform.Utilities (1)
Microsoft.VisualBasic.Core (38)
Microsoft\VisualBasic\CompilerServices\StructUtils.vb (5)
124Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, "Empty")), vbErrors.IllegalFuncCall)
244Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, "DBNull")), vbErrors.IllegalFuncCall)
248Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, "Exception")), vbErrors.IllegalFuncCall)
250Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, "Missing")), vbErrors.IllegalFuncCall)
255Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, "Object")), vbErrors.IllegalFuncCall)
Microsoft\VisualBasic\CompilerServices\VB6File.vb (10)
113Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, "Empty")), vbErrors.IllegalFuncCall)
200Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, "DBNull")), vbErrors.IllegalFuncCall)
205Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, "Exception")), vbErrors.IllegalFuncCall)
207Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, "Missing")), vbErrors.IllegalFuncCall)
209Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, FieldType.Name)), vbErrors.IllegalFuncCall)
237Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, "Empty")), vbErrors.IllegalFuncCall)
303Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, "DBNull")), vbErrors.IllegalFuncCall)
309Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, "Exception")), vbErrors.IllegalFuncCall)
311Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, "Missing")), vbErrors.IllegalFuncCall)
313Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, FieldType.Name)), vbErrors.IllegalFuncCall)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (4)
Microsoft.VisualStudio.TestPlatform.ObjectModel (5)
Microsoft.Web.XmlTransform (9)
Microsoft.Win32.Registry (1)
Mono.Cecil (6)
MSBuild (8)
MSBuild.Coordinator (3)
NuGet.Credentials (2)
NuGet.Protocol (3)
PresentationBuildTasks (64)
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (19)
868string parentName = declaringType != null ? declaringType.Name : string.Empty;
2304ParserContext.XamlTypeMapper.GetXmlLangProperty(namespaceURI, elementType.Name);
2312WriteProperty(xmlLangProperty.Name, xmlLangProperty,
2910unknownTagName ?? parentType.Name,
2976string parentName = parentType != null ? parentType.Name : string.Empty;
3009ThrowException(nameof(SR.ParserNoNameOnType), parentType.Name);
3204$"Set{methodInfo.Name.Substring("Get".Length)}",
3226ThrowException(nameof(SR.ParserCantSetAttribute), "property", $"{declaringType.Name}.{attribLocalName}", "set");
3229string parentName = parentType != null ? parentType.Name : string.Empty;
3286ThrowException(nameof(SR.ParserNoNameOnType), parentType.Name);
3469ThrowException(nameof(SR.ParserNoNameUnderDefinitionScopeType), attributeValue, elementName, _definitionScopeType.Name);
3516null != methodInfo.DeclaringType.GetMethod($"Set{methodInfo.Name.Substring("Get".Length)}",
3698XamlTypeMapper.GetTypeAndSerializer(namespaceURI, propertyType.Name, dynamicObject);
4346FirstTagName = $"{((Type)GrandParentContext.ContextData).Name}.{GrandParentContext.ChildTagLocalName}";
4351FirstTagName = ParentContext.ContextDataType.Name;
4356CurrentContext.ContextDataType.Name /* Child */));
4569bool resolved = GetPropertyComplex(elementType.Name, contentPropertyName, namespaceUri,
4611ThrowException(nameof(SR.ParserCantSetContentProperty), contentPropertyName, elementType.Name);
6620textContext.ContextDataType.Name /* Parent */,
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (17)
775string fullName = owner.IsGenericType ? $"{owner.Namespace}.{owner.Name}" : owner.FullName;
1294ThrowException(nameof(SR.ParserCantSetAttribute), "bubbling event", $"{objectType.Name}.{localName}", "Add Handler method");
1317ThrowException(nameof(SR.ParserEventDelegateTypeNotAccessible), ei.EventHandlerType.FullName, $"{objectType.Name}.{localName}");
1328ThrowException(nameof(SR.ParserCantSetAttribute), "event", $"{objectType.Name}.{localName}", "add");
1376ThrowException(nameof(SR.ParserCantSetAttribute), "attached property", $"{objectType.Name}.{localName}", "Set method");
1394$"{objectType.Name}.{localName}",
1395owner.Name);
1455ThrowException(nameof(SR.ParserCantSetAttribute), "bubbling event", $"{owner.Name}.{localName}", "Add Handler method");
1476ThrowException(nameof(SR.ParserEventDelegateTypeNotAccessible), ei.EventHandlerType.FullName, $"{owner.Name}.{localName}");
1488ThrowException(nameof(SR.ParserCantSetAttribute), "event", $"{owner.Name}.{localName}", "add");
1536ThrowException(nameof(SR.ParserCantSetAttribute), "attached property", $"{owner.Name}.{localName}", "Set method");
1949if (infos[i].Name == localName)
2093return propertyInfo.Name;
2100return methodInfo.Name.Substring("Get".Length);
2347ThrowException(nameof(SR.ParserStaticMemberNotAllowed), memberName, targetType.Name);
2354ThrowException(nameof(SR.ParserInvalidStaticMember), memberName, targetType.Name);
2551ThrowException(nameof(SR.ParserPublicType), objectType.Name);
PresentationCore (87)
PresentationFramework (292)
MS\Internal\TraceData.cs (12)
103traceBuilder.Append(objectParam.GetType().Name);
191traceBuilder.AppendFormat("'{0}' (Name='{1}')", fe.GetType().Name, fe.Name);
195traceBuilder.AppendFormat("'{0}' (HashCode={1})", o.GetType().Name, o.GetHashCode());
230traceBuilder.AppendFormat("target property is '{0}' (type '{1}')", targetProperty.Name, targetProperty.PropertyType.Name);
259ICollection ic => string.Create(TypeConverterHelper.InvariantEnglishUS, $"{type.Name} (hash={AvTrace.GetHashCodeHelper(o)} Count={ic.Count})"),
260_ => string.Create(TypeConverterHelper.InvariantEnglishUS, $"{type.Name} (hash={AvTrace.GetHashCodeHelper(o)})")
267string name = type.Name;
280DependencyProperty dp => $"{dp.GetType().Name}({dp.Name})",
281PropertyInfo pi => $"{pi.GetType().Name}({pi.Name})",
282PropertyDescriptor pd => $"{pd.GetType().Name}({pd.Name})",
292return $"{ex.GetType().Name} ({AvTrace.AntiFormat(ex.Message)})";
System\Windows\Data\ObjectDataProvider.cs (4)
477e = new InvalidOperationException(SR.Format(SR.ObjectDataProviderNonCLSException, _objectType.Name));
486traceParameters: new object[] { _objectType.Name, error, e },
556e = new InvalidOperationException(SR.Format(SR.ObjectDataProviderNonCLSExceptionInvoke, MethodName, _objectType.Name));
565traceParameters: new object[] { MethodName, _objectType.Name, error, e },
System\Windows\Data\XmlNamespaceMapping.cs (6)
46throw new InvalidOperationException(SR.Format(SR.PropertyIsInitializeOnly, "Prefix", this.GetType().Name));
48throw new InvalidOperationException(SR.Format(SR.PropertyIsImmutable, "Prefix", this.GetType().Name));
65throw new InvalidOperationException(SR.Format(SR.PropertyIsInitializeOnly, "Uri", this.GetType().Name));
67throw new InvalidOperationException(SR.Format(SR.PropertyIsImmutable, "Uri", this.GetType().Name));
137throw new InvalidOperationException(SR.Format(SR.PropertyMustHaveValue, "Prefix", this.GetType().Name));
141throw new InvalidOperationException(SR.Format(SR.PropertyMustHaveValue, "Uri", this.GetType().Name));
System\Windows\Documents\TextElement.cs (11)
808throw new ArgumentException(SR.Format(SR.TextSchema_ThisInlineUIContainerHasAChildUIElementAlready, this.GetType().Name, ((InlineUIContainer)this).Child.GetType().Name, value.GetType().Name));
820throw new ArgumentException(SR.Format(SR.TextSchema_ThisBlockUIContainerHasAChildUIElementAlready, this.GetType().Name, ((BlockUIContainer)this).Child.GetType().Name, value.GetType().Name));
836throw new ArgumentException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, this.GetType().Name, value.GetType().Name));
843throw new ArgumentException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, this.GetType().Name, value.GetType().Name));
883throw new InvalidOperationException(SR.Format(SR.TextSchema_TextIsNotAllowed, this.GetType().Name));
System\Windows\Documents\TextElementCollection.cs (10)
248throw new InvalidOperationException(SR.Format(SR.TextElementCollection_PreviousSiblingDoesNotBelongToThisCollection, previousSibling.GetType().Name));
253throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, this.GetType().Name));
287throw new InvalidOperationException(SR.Format(SR.TextElementCollection_NextSiblingDoesNotBelongToThisCollection, nextSibling.GetType().Name));
292throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, this.GetType().Name));
335throw new ArgumentException(SR.Format(SR.TextElementCollection_ItemHasUnexpectedType, "range", typeof(TextElementType).Name, typeof(TextElementType).Name), "value");
398throw new ArgumentException(SR.Format(SR.TextElementCollection_TextElementTypeExpected, typeof(TextElementType).Name), nameof(value));
453throw new ArgumentException(SR.Format(SR.TextElementCollection_TextElementTypeExpected, typeof(TextElementType).Name), nameof(value));
463throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, this.GetType().Name));
564throw new ArgumentException(SR.Format(SR.TextElementCollection_TextElementTypeExpected, typeof(TextElementType).Name), nameof(value));
System\Windows\Markup\BamlRecordReader.cs (34)
1337ThrowException(nameof(SR.ParserCantSetContentProperty), propertyDefinition.Name, propertyDefinition.PropertyInfo.ReflectedType.Name);
1546ThrowExceptionWithLine(SR.Format(SR.ParserFailedToCreateFromConstructor, info.DeclaringType.Name), e);
1563ThrowException(nameof(SR.ParserBadConstructorParams), elementType.Name, paramCount.ToString(CultureInfo.CurrentCulture));
2546propertyDefinition.PropertyInfo.Name,
2572propertyDefinition.PropertyInfo.Name,
2588propertyDefinition.AttachedPropertySetter.Name,
2599propertyDefinition.AttachedPropertySetter.Name,
2664ThrowExceptionWithLine(SR.Format(SR.ParserCannotSetValue, element.GetType().FullName, propertyDefinition.Name, valueType.Name), e);
2828ThrowException(nameof(SR.ParserCantCreateDelegate), reid.HandlerType.Name, attribValue);
2862ThrowException(nameof(SR.ParserCantCreateDelegate), ei.EventHandlerType.Name, attribValue);
2874ThrowException(nameof(SR.ParserCantSetAttribute), "event", ei.Name, "add");
3746((Type)propertyType.GetGenericArguments()[0]).Name,
3800value = OptionallyMakeNullable(propertyInfo.PropertyType, value, propertyInfo.Name);
3809value = OptionallyMakeNullable(methodInfo.GetParameters()[1].ParameterType, value, methodInfo.Name.Substring("Set".Length));
3859ThrowExceptionWithLine(SR.Format(SR.ParserCannotSetValue, parentObject.GetType().FullName, memberInfo.Name, o), e);
3997propertyName, attribValue, propertyType.Name);
4954pi.Name,
4966ThrowException(nameof(SR.ParserCantSetContentProperty), pi.Name, pi.ReflectedType.Name);
4974pi.Name,
4995value.GetType().Name,
4996container.GetType().Name),
5135return $"{attribInfo.OwnerType.Name}.{attribInfo.Name}";
5142return $"{pi.DeclaringType.Name}.{pi.Name}";
5212ThrowException(nameof(SR.ParserNotMarkedPublic), type.Name);
5219ThrowException(nameof(SR.ParserNotAllowedInternalType), type.Name);
5258ThrowException(nameof(SR.ParserNotAllowedInternalType), type.Name);
5292type.Name, attribInfo.DP.Name);
5296ThrowExceptionWithLine(SR.Format(SR.ParserNoDefaultConstructor, type.Name), e );
5311ThrowExceptionWithLine( SR.Format(SR.ParserErrorCreatingInstance, type.Name, type.Assembly.FullName), e);
5834return this.PropertyInfo.Name;
5838return this.AttachedPropertySetter.Name.Substring("Set".Length);
5842return this.AttachedPropertyGetter.Name.Substring("Get".Length);
System\Windows\Markup\XamlTypeMapper.cs (14)
543Debug.WriteLine($"Reflected for type converter on {propType.Name}.{propName}");
775string fullName = owner.IsGenericType ? $"{owner.Namespace}.{owner.Name}" : owner.FullName;
1317ThrowException(nameof(SR.ParserEventDelegateTypeNotAccessible), ei.EventHandlerType.FullName, $"{objectType.Name}.{localName}");
1340ThrowException(nameof(SR.ParserCantSetAttribute), "event", $"{objectType.Name}.{localName}", "add");
1394$"{objectType.Name}.{localName}",
1395owner.Name);
1476ThrowException(nameof(SR.ParserEventDelegateTypeNotAccessible), ei.EventHandlerType.FullName, $"{owner.Name}.{localName}");
1500ThrowException(nameof(SR.ParserCantSetAttribute), "event", $"{owner.Name}.{localName}", "add");
1949if (infos[i].Name == localName)
2093return propertyInfo.Name;
2100return methodInfo.Name.Substring("Get".Length);
2354ThrowException(nameof(SR.ParserInvalidStaticMember), memberName, targetType.Name);
2551ThrowException(nameof(SR.ParserPublicType), objectType.Name);
3504ThrowException(nameof(SR.ParserNoTypeConv), type.Name);
System\Windows\TemplateKey.cs (6)
50throw new InvalidOperationException(SR.Format(SR.PropertyMustHaveValue, "DataType", this.GetType().Name));
69throw new InvalidOperationException(SR.Format(SR.PropertyIsInitializeOnly, "DataType", this.GetType().Name));
71throw new InvalidOperationException(SR.Format(SR.PropertyIsImmutable, "DataType", this.GetType().Name));
119? string.Create(TypeConverterHelper.InvariantEnglishUS, $"{this.GetType().Name}({DataType})")
120: string.Create(TypeConverterHelper.InvariantEnglishUS, $"{this.GetType().Name}(null)");
163result = new ArgumentException(SR.Format(SR.MustBeTypeOrString, dataType.GetType().Name), argName);
PresentationUI (6)
ReachFramework (7)
Roslyn.Diagnostics.Analyzers (18)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (14)
166string.Format(WorkspaceExtensionsResources.Destination_type_must_be_a_0_but_given_one_is_1, typeof(TDeclarationNode).Name, destination.GetType().Name),
185typeof(TDeclarationNode1).Name, typeof(TDeclarationNode2).Name, destination.GetType().Name),
206typeof(TDeclarationNode1).Name, typeof(TDeclarationNode2).Name, typeof(TDeclarationNode3).Name, destination.GetType().Name),
224typeof(TDeclarationNode1).Name, typeof(TDeclarationNode2).Name, typeof(TDeclarationNode3).Name, typeof(TDeclarationNode4).Name, destination.GetType().Name),
Roslyn.Diagnostics.CSharp.Analyzers (1)
Roslyn.Diagnostics.VisualBasic.Analyzers (1)
Security.TransportSecurity.IntegrationTests (2)
SelectTests (1)
System.CodeDom (2)
System.CommandLine (1)
System.ComponentModel.Annotations (12)
System\ComponentModel\DataAnnotations\CustomValidationAttribute.cs (6)
226return SR.Format(SR.CustomValidationAttribute_Type_Must_Be_Public, ValidatorType.Name);
245.SingleOrDefault(m => string.Equals(m.Name, Method, StringComparison.Ordinal));
248return SR.Format(SR.CustomValidationAttribute_Method_Not_Found, Method, ValidatorType.Name);
254return SR.Format(SR.CustomValidationAttribute_Method_Must_Return_ValidationResult, Method, ValidatorType.Name);
262return SR.Format(SR.CustomValidationAttribute_Method_Signature, Method, ValidatorType.Name);
274return SR.Format(SR.CustomValidationAttribute_Method_Signature, Method, ValidatorType.Name);
System.ComponentModel.Composition (20)
System\ComponentModel\Composition\Hosting\CompositionServices.cs (5)
301if (reservedMetadataNames.Contains(pi.Name, StringComparers.MetadataKeyNames))
303throw ExceptionBuilder.CreateDiscoveryException(SR.Discovery_ReservedMetadataNameUsed, pi.GetDisplayName(), pi.Name);
313if (!dictionary.TryContributeMetadataValue(pi.Name, value, pi.PropertyType, allowsMultiple))
315throw ExceptionBuilder.CreateDiscoveryException(SR.Discovery_DuplicateMetadataNameValues, member.GetDisplayName(), pi.Name);
487return properties.Select(property => new KeyValuePair<string, Type>(property.Name, property.PropertyType));
System.ComponentModel.Composition.Registration (6)
System.ComponentModel.Primitives (1)
System.ComponentModel.TypeConverter (19)
System.Composition.Convention (8)
System.Composition.Hosting (8)
System.Composition.Runtime (3)
System.Composition.TypedParts (19)
System\Composition\TypedParts\ActivationFeatures\PropertyImportSite.cs (1)
24return _pi.Name;
System\Composition\TypedParts\Discovery\TypeInspector.cs (13)
160AddMetadata(metadata, prop.Name, prop.PropertyType, prop.GetValue(attribute, null));
173contractType.Name, property.Name, partType.Name);
182string message = SR.Format(SR.TypeInspector_NoExportNonGenericContract, partType.Name, contractType.Name);
195string message = SR.Format(SR.TypeInspector_ArgumentMismatch, contractType.Name, partType.Name);
206string message = SR.Format(SR.TypeInspector_ExportNotCompatible, exportingMemberType.Name, partType.Name, contractType.Name);
232string message = SR.Format(SR.TypeInspector_ContractNotAssignable, contractType.Name, partType.Name);
System.Configuration.ConfigurationManager (8)
System.Data.Common (31)
src\runtime\src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (18)
187return ArgumentOutOfRange(SR.Format(SR.ADP_NotSupportedEnumerationValue, type.Name, value, method), type.Name);
273return ArgumentOutOfRange(SR.Format(SR.ADP_InvalidEnumerationValue, type.Name, value.ToString(CultureInfo.InvariantCulture)), type.Name);
309return Argument(SR.Format(SR.ADP_CollectionRemoveInvalidObject, itemType.Name, collection.GetType().Name));
313return ArgumentNull(parameter, SR.Format(SR.ADP_CollectionNullValue, collection.Name, itemType.Name));
317return IndexOutOfRange(SR.Format(SR.ADP_CollectionIndexInt32, index.ToString(CultureInfo.InvariantCulture), collection.Name, count.ToString(CultureInfo.InvariantCulture)));
321return IndexOutOfRange(SR.Format(SR.ADP_CollectionIndexString, itemType.Name, propertyName, propertyValue, collection.Name));
325return InvalidCast(SR.Format(SR.ADP_CollectionInvalidType, collection.Name, itemType.Name, invalidValue.GetType().Name));
395return Argument(SR.Format(SR.ADP_CollectionIsNotParent, parameterType.Name, collection.GetType().Name));
399return Argument(SR.Format(SR.ADP_CollectionIsNotParent, parameterType.Name, collection.GetType().Name));
System\Data\DataException.cs (4)
346=> _InvalidEnumArgumentException(SR.Format(SR.ADP_InvalidEnumerationValue, typeof(T).Name, value.ToString()));
503public static Exception SetFailed(object? value, DataColumn column, Type type, Exception innerException) => _Argument(innerException.Message + SR.Format(SR.DataColumn_SetFailed, value?.ToString(), column.ColumnName, type.Name), innerException);
648public static Exception InvalidSchemaSerializationMode(Type enumType, string mode) => _InvalidEnumArgumentException(SR.Format(SR.ADP_InvalidEnumerationValue, enumType.Name, mode));
680public static Exception AggregateException(AggregateType aggregateType, Type type) => _Data(SR.Format(SR.DataStorage_AggregateException, aggregateType, type.Name));
System.Data.Odbc (28)
Common\System\Data\Common\AdapterUtil.Odbc.cs (7)
302return DataAdapter(SR.GetString(SR.ADP_DeriveParametersNotSupported, value.GetType().Name, value.CommandType.ToString()));
306return InvalidOperation(SR.GetString(SR.ADP_UninitializedParameterSize, index.ToString(CultureInfo.InvariantCulture), dataType.Name));
374return Argument(SR.GetString(SR.ADP_DbTypeNotSupported, type.ToString(), enumtype.Name));
395string message = SR.GetString(SR.ADP_ParameterConversionFailed, value.GetType().Name, destType.Name);
445return InvalidOperation(SR.GetString(SR.ADP_ParallelTransactionsNotSupported, obj.GetType().Name));
449return InvalidOperation(SR.GetString(SR.ADP_TransactionZombied, obj.GetType().Name));
src\runtime\src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (18)
187return ArgumentOutOfRange(SR.Format(SR.ADP_NotSupportedEnumerationValue, type.Name, value, method), type.Name);
273return ArgumentOutOfRange(SR.Format(SR.ADP_InvalidEnumerationValue, type.Name, value.ToString(CultureInfo.InvariantCulture)), type.Name);
309return Argument(SR.Format(SR.ADP_CollectionRemoveInvalidObject, itemType.Name, collection.GetType().Name));
313return ArgumentNull(parameter, SR.Format(SR.ADP_CollectionNullValue, collection.Name, itemType.Name));
317return IndexOutOfRange(SR.Format(SR.ADP_CollectionIndexInt32, index.ToString(CultureInfo.InvariantCulture), collection.Name, count.ToString(CultureInfo.InvariantCulture)));
321return IndexOutOfRange(SR.Format(SR.ADP_CollectionIndexString, itemType.Name, propertyName, propertyValue, collection.Name));
325return InvalidCast(SR.Format(SR.ADP_CollectionInvalidType, collection.Name, itemType.Name, invalidValue.GetType().Name));
395return Argument(SR.Format(SR.ADP_CollectionIsNotParent, parameterType.Name, collection.GetType().Name));
399return Argument(SR.Format(SR.ADP_CollectionIsNotParent, parameterType.Name, collection.GetType().Name));
System.Data.OleDb (32)
System\Data\Common\AdapterUtil.cs (26)
257return ADP.ArgumentOutOfRange(SR.GetString(SR.ADP_InvalidEnumerationValue, type.Name, value.ToString(System.Globalization.CultureInfo.InvariantCulture)), type.Name);
451return Argument(SR.GetString(SR.ADP_CollectionRemoveInvalidObject, itemType.Name, collection.GetType().Name));
455return ArgumentNull(parameter, SR.GetString(SR.ADP_CollectionNullValue, collection.Name, itemType.Name));
459return IndexOutOfRange(SR.GetString(SR.ADP_CollectionIndexInt32, index.ToString(CultureInfo.InvariantCulture), collection.Name, count.ToString(CultureInfo.InvariantCulture)));
463return IndexOutOfRange(SR.GetString(SR.ADP_CollectionIndexString, itemType.Name, propertyName, propertyValue, collection.Name));
467return InvalidCast(SR.GetString(SR.ADP_CollectionInvalidType, collection.Name, itemType.Name, invalidValue.GetType().Name));
471return Argument(SR.GetString(SR.ADP_CollectionIsNotParent, parameterType.Name, collection.GetType().Name));
475return Argument(SR.GetString(SR.ADP_CollectionIsNotParent, parameterType.Name, collection.GetType().Name));
553return DataAdapter(SR.GetString(SR.ADP_DeriveParametersNotSupported, value.GetType().Name, value.CommandType.ToString()));
557return InvalidOperation(SR.GetString(SR.ADP_UninitializedParameterSize, index.ToString(CultureInfo.InvariantCulture), dataType.Name));
561return InvalidOperation(SR.GetString(SR.ADP_PrepareParameterType, cmd.GetType().Name));
565return InvalidOperation(SR.GetString(SR.ADP_PrepareParameterSize, cmd.GetType().Name));
569return InvalidOperation(SR.GetString(SR.ADP_PrepareParameterScale, cmd.GetType().Name, type));
698return Argument(SR.GetString(SR.ADP_DbTypeNotSupported, type.ToString(), enumtype.Name));
718string message = SR.GetString(SR.ADP_ParameterConversionFailed, value.GetType().Name, destType.Name);
768return InvalidOperation(SR.GetString(SR.ADP_ParallelTransactionsNotSupported, obj.GetType().Name));
772return InvalidOperation(SR.GetString(SR.ADP_TransactionZombied, obj.GetType().Name));
System.Diagnostics.DiagnosticSource (7)
System\Diagnostics\Metrics\MetricsEventSource.cs (3)
492beginInstrumentMeasurements: (i, state) => Parent.BeginInstrumentReporting(sessionId, i.Meter.Name, i.Meter.Version, i.Name, i.GetType().Name, i.Unit, i.Description,
494endInstrumentMeasurements: (i, state) => Parent.EndInstrumentReporting(sessionId, i.Meter.Name, i.Meter.Version, i.Name, i.GetType().Name, i.Unit, i.Description,
496instrumentPublished: (i, state) => Parent.InstrumentPublished(sessionId, i.Meter.Name, i.Meter.Version, i.Name, i.GetType().Name, i.Unit, i.Description,
System.Diagnostics.EventLog (2)
System.Diagnostics.PerformanceCounter (1)
System.DirectoryServices (124)
System.DirectoryServices.Protocols (28)
System.Drawing.Common (3)
System.Drawing.Primitives (1)
System.Formats.Asn1 (1)
System.Formats.Nrbf (1)
System.Linq.Expressions (64)
System\Linq\Expressions\BinaryExpression.cs (12)
640ValidateParamsWithOperandsOrThrow(pms[0].ParameterType, left.Type, binaryType, method.Name);
641ValidateParamsWithOperandsOrThrow(pms[1].ParameterType, right.Type, binaryType, method.Name);
659throw Error.OperandTypesDoNotMatchParameters(binaryType, method.Name);
670throw Error.UserDefinedOpMustHaveValidReturnType(binaryType, b.Method!.Name);
703throw Error.UserDefinedOpMustHaveValidReturnType(binaryType, b.Method!.Name);
808throw Error.OperandTypesDoNotMatchParameters(nodeType, method.Name);
813throw Error.OperandTypesDoNotMatchParameters(nodeType, method.Name);
817throw Error.UserDefinedOpMustHaveConsistentTypes(nodeType, method.Name);
821throw Error.UserDefinedOpMustHaveConsistentTypes(nodeType, method.Name);
830throw Error.LogicalOperatorMustHaveBooleanOperators(nodeType, method.Name);
837throw Error.LogicalOperatorMustHaveBooleanOperators(nodeType, method.Name);
852throw Error.OperandTypesDoNotMatchParameters(nodeType, opTrue.Name);
System.Linq.Queryable (4)
System.Memory (1)
System.Net.Http (9)
System.Net.Http.WinHttpHandler (3)
System.Net.HttpListener (3)
System.Net.Mail (3)
System.Net.NameResolution (4)
System.Net.Primitives (3)
System.Net.Quic (3)
System.Net.Requests (3)
System.Net.Security (3)
System.Net.Sockets (5)
System.Net.WebSockets (4)
System.Numerics.Tensors (1)
System.Private.CoreLib (103)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (16)
360string name = eventSourceType.Name;
1765return eventSourceType.Name;
3115manifest.ManifestError(SR.Format(SR.EventSource_AbstractMustNotDeclareKTOC, nestedType.Name));
3157manifest.ManifestError(SR.Format(SR.EventSource_AbstractMustNotDeclareEventMethods, method.Name, eventAttribute.EventId));
3189if (method.Name.LastIndexOf('.') >= 0)
3191manifest.ManifestError(SR.Format(SR.EventSource_EventMustNotBeExplicitImplementation, method.Name, eventAttribute.EventId));
3195string eventName = method.Name;
3394PropertyInfo p = attributeType.GetProperty(namedArgument.MemberInfo.Name, BindingFlags.Public | BindingFlags.Instance)!;
3433string.Equals(attributeType.Name, reflectedAttributeType.Name, StringComparison.Ordinal) &&
3463if (ret.Name != "EventSource")
3496manifest.AddOpcode(staticField.Name, value);
3502manifest.AddTask(staticField.Name, value);
3508manifest.AddKeyword(staticField.Name, value);
3512manifest.ManifestError(SR.Format(SR.EventSource_EnumKindMismatch, staticField.FieldType.Name, providerEnumKind));
3607string evtName = method.Name;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingTypeInfo.cs (1)
28this.name = dataType.Name;
System.Private.DataContractSerialization (50)
System\Runtime\Serialization\ClassDataContract.cs (26)
263existingMemberContract.MemberInfo.Name,
264memberContract.MemberInfo.Name,
452OnDeserializing!.Name),
465OnDeserialized!.Name),
484Members[i].MemberInfo.Name),
492Members[i].MemberInfo.Name),
535OnSerializing!.Name),
548OnSerialized!.Name),
567Members[i].MemberInfo.Name),
575Members[i].MemberInfo.Name),
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));
853ThrowInvalidDataContractException(SR.Format(SR.InvalidMember, DataContract.GetClrTypeFullName(type), member.Name));
859ThrowInvalidDataContractException(SR.Format(SR.InvalidDataMemberName, member.Name, DataContract.GetClrTypeFullName(type)));
863memberContract.Name = member.Name;
873member.Name, true), type);
891ThrowInvalidDataContractException(SR.Format(SR.TooManyIgnoreDataMemberAttributes, DataContract.GetClrTypeFullName(member.DeclaringType!), member.Name));
916&& member.Name == Globals.ExtensionDataObjectPropertyName)
920memberContract.Name = DataContract.EncodeLocalName(member.Name);
934memberContract.Name = DataContract.EncodeLocalName(member.Name);
943member.Name, true), type);
1082if (method.Name == Globals.ExtensionDataSetExplicitMethod || !method.IsPublic)
1105if (method.Name == Globals.ExtensionDataSetExplicitMethod || method.Name == Globals.ExtensionDataSetMethod)
System\Runtime\Serialization\SchemaImporter.cs (2)
1307throw new InvalidDataContractException(SR.Format(SR.GenericAnnotationHasInvalidAttributeValue, argumentElement.LocalName, argumentElement.NamespaceURI, type.Name, nestedLevelAttribute.Value, nestedLevelAttribute.LocalName, Globals.TypeOfInt.Name));
1322throw new InvalidDataContractException(SR.Format(SR.GenericAnnotationHasInvalidAttributeValue, typeElement.LocalName, typeElement.NamespaceURI, type.Name, typeNestedLevelsAttribute.Value, typeNestedLevelsAttribute.LocalName, Globals.TypeOfInt.Name));
System.Private.Reflection.Execution (1)
System.Private.Windows.Core (13)
System.Private.Windows.Core.TestUtilities (2)
System.Private.Xml (94)
System\Xml\Schema\XmlValueConverter.cs (8)
478return new InvalidCastException(SR.Format(SR.XmlConvert_TypeBadMapping, XmlTypeName, sourceType.Name));
480return new InvalidCastException(SR.Format(SR.XmlConvert_TypeBadMapping2, XmlTypeName, sourceType.Name, destinationType.Name));
2493throw new InvalidCastException(SR.Format(SR.XmlConvert_TypeToString, XmlTypeName, sourceType.Name));
2496throw new InvalidCastException(SR.Format(SR.XmlConvert_TypeFromString, XmlTypeName, destinationType.Name));
3128return new InvalidCastException(SR.Format(SR.XmlConvert_TypeListBadMapping, XmlTypeName, sourceType.Name));
3130return new InvalidCastException(SR.Format(SR.XmlConvert_TypeListBadMapping2, XmlTypeName, sourceType.Name, destinationType.Name));
System\Xml\Serialization\Mappings.cs (7)
1014if (baseMember.Name != derivedMember.Name)
1333throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaEmptyTypeName, _type!.FullName, _getSchemaMethod.Name));
1338throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaMethodReturnType, _type!.Name, _getSchemaMethod.Name, nameof(XmlSchemaProviderAttribute), typeof(XmlQualifiedName).FullName));
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\Xml\Serialization\Models.cs (8)
210throw new InvalidOperationException(SR.Format(SR.XmlSerializerUnsupportedMember, $"{member.DeclaringType!.FullName}.{member.Name}", type.FullName), typeDesc.Exception);
296_name = memberInfo.Name;
300_checkShouldPersistMethodInfo = memberInfo.DeclaringType!.GetMethod($"ShouldSerialize{memberInfo.Name}", Type.EmptyTypes);
303FieldInfo? specifiedField = memberInfo.DeclaringType.GetField($"{memberInfo.Name}Specified");
308throw new InvalidOperationException(SR.Format(SR.XmlInvalidSpecifiedType, specifiedField.Name, specifiedField.FieldType.FullName, typeof(bool).FullName));
315PropertyInfo? specifiedProperty = memberInfo.DeclaringType.GetProperty($"{memberInfo.Name}Specified");
325throw new InvalidOperationException(SR.Format(SR.XmlInvalidSpecifiedType, specifiedProperty.Name, specifiedProperty.PropertyType.FullName, typeof(bool).FullName));
402get { return _fieldInfo.Name; }
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (8)
1464var setterDelegate = GetSetMemberValueDelegate(o!, member.Mapping.MemberInfo!.Name);
1554var setterDelegate = GetSetMemberValueDelegate(o, member.Mapping.MemberInfo!.Name);
1770member.Source = (value) => throw new InvalidOperationException(SR.Format(SR.XmlReadOnlyPropertyError, pi.Name, pi.DeclaringType!.FullName));
1789throw new InvalidOperationException(SR.Format(SR.XmlReadOnlyPropertyError, pi.Name, pi.DeclaringType!.FullName));
1919var setMemberValue = GetSetMemberValueDelegate(o, memberInfo.Name);
2162var setMemberValue = GetSetMemberValueDelegate(o, memberInfo.Name);
2171var setMemberValue = GetSetMemberValueDelegate(o, memberInfo.Name);
2196var setMemberValue = GetSetMemberValueDelegate(o, memberInfo.Name);
System\Xml\Serialization\Types.cs (10)
125: this(type!.Name, type.FullName!, dataType, TypeKind.Primitive, (TypeDesc?)null, flags, formatterName)
878arrayElementType = GetCollectionElementType(type, memberInfo == null ? null : $"{memberInfo.DeclaringType!.FullName}.{memberInfo.Name}");
948exception = new NotSupportedException(SR.Format(SR.XmlUnsupportedInterfaceDetails, $"{memberInfo.DeclaringType!.FullName}.{memberInfo.Name}", type.FullName));
1045string name = t.Name;
1067return t.Name;
1145throw new InvalidOperationException(SR.Format(SR.XmlReadOnlyPropertyError, propertyInfo.DeclaringType, propertyInfo.Name));
1262if (info.Name == memberInfoToBeReplaced.Name)
1286if (info.Name == memberInfoToBeReplaced.Name)
System\Xml\Xsl\IlGen\GenerateHelper.cs (7)
147ToAtomicValue = typeof(XmlILStorageConverter).GetMethod($"{storageType.Name}ToAtomicValue");
536_writerDump!.WriteLine(".method {0}()", methInfo.Name);
827strBldr.Append(paramInfo.ParameterType.Name);
829retType = meth.ReturnType.Name;
832_writerDump!.WriteLine(" {0, -10} {1} {2}({3})", new object?[] { opcode.Name, retType, meth.Name, strBldr.ToString() });
1606_writerDump!.WriteLine(" {0, -10} {1}", opcode.Name, fldInfo.Name);
1661_writerDump!.WriteLine(" {0, -10} {1} ({2})", opcode.Name, _symbols![locBldr], locBldr.LocalType.Name);
System.Reflection.Context (16)
System.Reflection.DispatchProxy (6)
System.Reflection.Emit (22)
System\Reflection\Emit\ModuleBuilderImpl.cs (6)
708typeHandle = AddTypeReference(GetTypeReferenceOrSpecificationHandle(type.DeclaringType!), null, type.Name);
712typeHandle = AddTypeReference(GetAssemblyReference(type.Assembly), type.Namespace, type.Name);
748memberHandle = AddMemberReference(field.Name, GetTypeHandle(declaringType),
754memberHandle = AddMemberReference(ctor.Name, GetTypeHandle(memberInfo.DeclaringType!), MetadataSignatureHelper.GetConstructorSignature(ctor.GetParameters(), this));
768memberHandle = AddMemberReference(method.Name, GetTypeHandle(memberInfo.DeclaringType!), GetMethodSignature(method, null));
789memberHandle = AddMemberReference(method.Name, GetMemberHandle(method), signature);
System\Reflection\Emit\TypeBuilderImpl.cs (13)
317throw new ArgumentException(SR.Format(SR.Argument_MethodOverridden, methodInfoBody.Name, FullName), nameof(methodInfoDeclaration));
739if (name == ctor.Name)
781if (name == method.Name)
899if (name == field.Name)
946if (name.Equals(interfaceType.Name, compare))
951throw new AmbiguousMatchException(SR.Format(SR.AmbiguousMatch_MemberInfo, interfaceType.DeclaringType, interfaceType.Name));
1007if (name == property.Name)
1067throw new AmbiguousMatchException(SR.Format(SR.AmbiguousMatch_MemberInfo, firstCandidate.DeclaringType, firstCandidate.Name));
1085if (propertyInfo.Name == name &&
1113if (type.Name == name)
1150if (type.Name == name)
1154throw new AmbiguousMatchException(SR.Format(SR.AmbiguousMatch_MemberInfo, type.DeclaringType, type.Name));
1266MethodInfo? targetMethod = GetMethodImpl(interfaceMethod.Name, GetBindingFlags(interfaceMethod), null, interfaceMethod.CallingConvention, GetParameterTypes(interfaceMethod.GetParameters()), null);
System.Reflection.MetadataLoadContext (9)
System.Resources.Extensions (4)
System.Runtime.Caching (1)
System.Runtime.InteropServices (3)
System.Runtime.Serialization.Formatters (4)
System.Runtime.Serialization.Schema (2)
System.Security.Cryptography.Cose (2)
System.Security.Cryptography.Xml (15)
System.ServiceModel.Http (2)
System.ServiceModel.NetTcp (1)
System.ServiceModel.Primitives (179)
System\ServiceModel\Channels\BinaryMessageEncodingBindingElement.cs (1)
164GetType().Name,
System\ServiceModel\Description\ServiceReflector.cs (32)
64int nameEnd = t.Name.IndexOf('`');
65string result = nameEnd > 0 ? t.Name.Substring(0, nameEnd) : t.Name;
79return t.Name;
432throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ServicesWithoutAServiceContractAttributeCan2, operationContractProviderType.Name, method.Name, service.FullName)));
525SRP.Format(SRP.SFxErrorReflectingOnType2, attrType.Name, type.Name), e));
531attrType.Name, method.Name, method.DeclaringType.Name), e));
540attrType.Name, param.Name, method.Name, method.DeclaringType.Name), e));
544SRP.Format(SRP.SFxErrorReflectionOnUnknown1, attrType.Name), e));
640throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.AttemptedToGetContractTypeForButThatTypeIs1, interfaceType.Name)));
661SRP.Format(SRP.SFxNoMostDerivedContract, interfaceType.Name)));
704methodInfo.Name, methodInfo.DeclaringType.Name)));
713methodInfo.Name, methodInfo.DeclaringType.Name)));
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)));
861if (!method.Name.StartsWith(BeginMethodNamePrefix, StringComparison.Ordinal) ||
878throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.InvalidAsyncBeginMethodSignatureForMethod2, method.Name, method.DeclaringType.FullName)));
921if (!method.Name.StartsWith(EndMethodNamePrefix, StringComparison.Ordinal) ||
967return method.Name.Substring(BeginMethodNamePrefix.Length);
969else if (isTask && method.Name.EndsWith(AsyncMethodNameSuffix, StringComparison.Ordinal))
971return method.Name.Substring(0, method.Name.Length - AsyncMethodNameSuffix.Length);
975return method.Name;
System\ServiceModel\Description\TypeLoader.cs (99)
144SRP.SFxOperationContractOnNonServiceContract, methodInfo.Name, aParentType.Name)));
149SRP.SFxOperationContractProviderOnNonServiceContract, operationContractProviderType.Name, methodInfo.Name, aParentType.Name)));
480opDesc.SyncMethod.Name,
482opDesc.BeginMethod.Name,
483opDesc.EndMethod.Name,
491opDesc.SyncMethod.Name,
493opDesc.TaskMethod.Name,
501opDesc.TaskMethod.Name,
503opDesc.BeginMethod.Name,
504opDesc.EndMethod.Name,
541!String.Equals(method1.Name, method2.Name, StringComparison.Ordinal) ||
696String.Format(CultureInfo.InvariantCulture, "Bad contract inheritence. Contract {0} does not implement {1}", declaringContract.ContractType.Name, contractDescription.ContractType.Name)
718throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.SFxInvalidCallbackContractType, callbackType.Name)));
739inheritedContractType.Name, inheritedContractAttr.CallbackContract.Name, contractType.Name)));
745inheritedContractType.Name, contractType.Name)));
873methodInfo.Name, reflectionInfo.iface)));
893string method1Name = existingOp.OperationMethod.Name;
894string method2Name = methodInfo.Name;
899string method1Name = existingOp.BeginMethod.Name;
900string method2Name = methodInfo.Name;
905string method1Name = existingOp.SyncMethod.Name;
906string method2Name = methodInfo.Name;
1153string methodName = methodInfo.Name;
1411new XmlName(memberInfo.Name),
1419new XmlName(memberInfo.Name),
1426new XmlName(memberInfo.Name),
1652_syncOperation.SyncMethod.Name,
1654_asyncOperation.BeginMethod.Name,
1655_asyncOperation.EndMethod.Name,
1668_syncOperation.SyncMethod.Name,
1670_asyncOperation.BeginMethod.Name,
1671_asyncOperation.EndMethod.Name,
1685_syncOperation.SyncMethod.Name,
1687_asyncOperation.BeginMethod.Name,
1688_asyncOperation.EndMethod.Name,
1700_syncOperation.SyncMethod.Name,
1702_asyncOperation.BeginMethod.Name,
1703_asyncOperation.EndMethod.Name,
1714_syncOperation.SyncMethod.Name,
1716_asyncOperation.BeginMethod.Name,
1717_asyncOperation.EndMethod.Name,
1719typeof(FaultContractAttribute).Name)));
1729_syncOperation.SyncMethod.Name,
1731_asyncOperation.BeginMethod.Name,
1732_asyncOperation.EndMethod.Name,
1734typeof(ServiceKnownTypeAttribute).Name)));
1744_syncOperation.SyncMethod.Name,
1746_asyncOperation.BeginMethod.Name,
1747_asyncOperation.EndMethod.Name,
1761_syncOperation.SyncMethod.Name,
1763_asyncOperation.BeginMethod.Name,
1764_asyncOperation.EndMethod.Name,
1793_syncOperation.SyncMethod.Name,
1795_taskOperation.TaskMethod.Name,
1808_syncOperation.SyncMethod.Name,
1810_taskOperation.TaskMethod.Name,
1822_syncOperation.SyncMethod.Name,
1824_taskOperation.TaskMethod.Name,
1835_syncOperation.SyncMethod.Name,
1837_taskOperation.TaskMethod.Name,
1839typeof(FaultContractAttribute).Name)));
1849_syncOperation.SyncMethod.Name,
1851_taskOperation.TaskMethod.Name,
1853typeof(ServiceKnownTypeAttribute).Name)));
1863_syncOperation.SyncMethod.Name,
1865_taskOperation.TaskMethod.Name,
1879_syncOperation.SyncMethod.Name,
1881_taskOperation.TaskMethod.Name,
1910_taskOperation.TaskMethod.Name,
1912_asyncOperation.BeginMethod.Name,
1913_asyncOperation.EndMethod.Name,
1926_taskOperation.TaskMethod.Name,
1928_asyncOperation.BeginMethod.Name,
1929_asyncOperation.EndMethod.Name,
1941_taskOperation.TaskMethod.Name,
1943_asyncOperation.BeginMethod.Name,
1944_asyncOperation.EndMethod.Name,
1955_taskOperation.TaskMethod.Name,
1957_asyncOperation.BeginMethod.Name,
1958_asyncOperation.EndMethod.Name,
1960typeof(FaultContractAttribute).Name)));
1970_taskOperation.TaskMethod.Name,
1972_asyncOperation.BeginMethod.Name,
1973_asyncOperation.EndMethod.Name,
1975typeof(ServiceKnownTypeAttribute).Name)));
1985_taskOperation.TaskMethod.Name,
1987_asyncOperation.BeginMethod.Name,
1988_asyncOperation.EndMethod.Name,
2002_taskOperation.TaskMethod.Name,
2004_asyncOperation.BeginMethod.Name,
2005_asyncOperation.EndMethod.Name,
System.ServiceModel.Primitives.Tests (2)
System.ServiceProcess.ServiceController (2)
System.Speech (25)
System.Text.Json (34)
System.Threading.Tasks.Dataflow (1)
System.Transactions.Local (1)
System.Windows.Controls.Ribbon (21)
System.Windows.Forms (59)
System.Windows.Forms.Design (81)
System.Windows.Forms.Primitives (3)
System.Xaml (44)
System\Xaml\Schema\TypeReflector.cs (18)
498if (_nonAttachableMemberCache.TryGetValue(currentProp.Name, out knownMember))
512if (result.TryGetValue(currentProp.Name, out shadowedProp))
517result[currentProp.Name] = currentProp;
524result.Add(currentProp.Name, currentProp);
555if (_nonAttachableMemberCache.TryGetValue(currentEvent.Name, out knownMember))
566if (result.TryGetValue(currentEvent.Name, out shadowedEvent))
571result[currentEvent.Name] = currentEvent;
578result.Add(currentEvent.Name, currentEvent);
912if (!KS.StartsWith(mi.Name, KnownStrings.Get))
922name = mi.Name.Substring(KnownStrings.Get.Length);
936if (!KS.StartsWith(mi.Name, KnownStrings.Set))
946name = mi.Name.Substring(KnownStrings.Set.Length);
960if (!KS.StartsWith(mi.Name, KnownStrings.Add) || !KS.EndsWith(mi.Name, KnownStrings.Handler))
970name = mi.Name.Substring(KnownStrings.Add.Length,
971mi.Name.Length - KnownStrings.Add.Length - KnownStrings.Handler.Length);
1097reflectedType.Name, attrType.Name);
testhost (2)
testhost.arm64 (2)
testhost.x86 (2)
UIAutomationClient (4)
vbc (1)
VBCSCompiler (1)