6049 references to GetType
AnalyzerRunner (9)
ApiExplorerWebSite (3)
ApplicationModelWebSite (1)
Aspire.Dashboard (1)
Aspire.Dashboard.Tests (3)
Aspire.Hosting (7)
Aspire.Hosting.AWS (4)
Aspire.Hosting.Azure (5)
Aspire.Hosting.Azure.AppContainers (2)
Aspire.Hosting.Keycloak.Tests (2)
Aspire.Hosting.MySql.Tests (2)
Aspire.Hosting.Oracle.Tests (2)
Aspire.Hosting.Orleans (1)
Aspire.Hosting.PostgreSQL.Tests (2)
Aspire.Hosting.Qdrant.Tests (2)
Aspire.Hosting.RabbitMQ.Tests (2)
Aspire.Hosting.SqlServer.Tests (2)
Aspire.Hosting.Tests (3)
Aspire.Microsoft.Data.SqlClient (2)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (3)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (1)
Aspire.Oracle.EntityFrameworkCore (1)
Aspire.Pomelo.EntityFrameworkCore.MySql (1)
Aspire.StackExchange.Redis (3)
Aspire.StackExchange.Redis.OutputCaching.Tests (1)
Aspire.StackExchange.Redis.Tests (1)
BasicTestApp (3)
CodeStyleConfigFileGenerator (1)
Contract.Data.IntegrationTests (3)
Contract.Fault.IntegrationTests (4)
DesignSurfaceExt (2)
dotnet-svcutil-lib (494)
CodeDomFixup\EndpointSelector.cs (10)
45s_bindingValidationErrors.Add(string.Format(SR.BindingTypeNotSupportedFormat, binding.GetType().FullName,
129s_bindingValidationErrors.Add(string.Format(SR.BindingTransportTypeNotSupportedFormat, bindingElement.GetType().FullName,
137s_bindingValidationErrors.Add(string.Format(SR.BindingMessageEncodingElementNotSupportedFormat, bindingElement.GetType().FullName,
218s_bindingValidationErrors.Add(string.Format(SR.BindingElementTypeNotSupportedFormat, bindingElement.GetType().FullName));
250endorsingTokenParams.BootstrapSecurityBindingElement.GetType().FullName, typeof(TransportSecurityBindingElement).FullName));
267transportSecurityBindingElement.DefaultAlgorithmSuite.GetType().FullName, SecurityAlgorithmSuite.Default.GetType().FullName));
297transportSecurityBindingElement.DefaultAlgorithmSuite.GetType().FullName, SecurityAlgorithmSuite.Default.GetType().FullName));
322transportSecurityBindingElement.EndpointSupportingTokenParameters.SignedEncrypted[0].GetType().FullName, typeof(UserNameSecurityTokenParameters).FullName));
FrameworkFork\Microsoft.CodeDom\Compiler\CodeValidator.cs (7)
62throw new ArgumentException(string.Format(SRCodeDom.InvalidElementType, e.GetType().FullName), "e");
99throw new ArgumentException(string.Format(SRCodeDom.InvalidElementType, e.GetType().FullName), "e");
500throw new ArgumentException(string.Format(SRCodeDom.InvalidElementType, e.GetType().FullName), "e");
709String message = string.Format(SRCodeDom.InvalidTypeName, typeName, propertyName, e.GetType().FullName);
718String message = string.Format(SRCodeDom.InvalidLanguageIdentifier, identifier, propertyName, e.GetType().FullName);
833throw new ArgumentException(string.Format(SRCodeDom.InvalidElementType, e.GetType().FullName), "e");
1019throw new ArgumentException(string.Format(SRCodeDom.InvalidElementType, e.GetType().FullName), "e");
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (5)
775if (fieldTypeDesc != _typeScope.GetTypeDesc(a.SoapDefaultValue.GetType()))
776throw new InvalidOperationException(string.Format(ResXml.XmlInvalidDefaultEnumValue, a.SoapDefaultValue.GetType().FullName, fieldTypeDesc.FullName));
777string strValue = Enum.Format(a.SoapDefaultValue.GetType(), a.SoapDefaultValue, "G").Replace(",", " ");
778string numValue = Enum.Format(a.SoapDefaultValue.GetType(), a.SoapDefaultValue, "D");
780throw new InvalidOperationException(string.Format(ResXml.XmlInvalidDefaultValue, strValue, a.SoapDefaultValue.GetType().FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (5)
409if (!(desiredMappingType.IsAssignableFrom(mapping.GetType())))
410throw new InvalidOperationException(string.Format(ResXml.XmlElementImportedTwice, element.Name, ns, mapping.GetType().Name, desiredMappingType.Name));
453throw new InvalidOperationException(string.Format(ResXml.XmlImporterExtensionBadLocalTypeName, typeOwner.GetType().FullName, typeName));
457throw new InvalidOperationException(string.Format(ResXml.XmlImporterExtensionBadTypeName, typeOwner.GetType().FullName, qname.Name, qname.Namespace, typeName));
533if (mapping != null && desiredMappingType.IsAssignableFrom(mapping.GetType()))
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemas.cs (8)
337if (ret == null || !type.IsAssignableFrom(ret.GetType()))
500throw new InvalidOperationException(string.Format(ResXml.XmlSchemaIncludeLocation, this.GetType().Name, external.SchemaLocation));
639item = string.Format(ResXml.XmlSchemaNamedItem, ns, o.GetType() == typeof(XmlSchemaSimpleType) ? "simpleType" : "complexType", ((XmlSchemaType)o).Name, null);
667string itemType = o is XmlSchemaImport ? "import" : o is XmlSchemaInclude ? "include" : o is XmlSchemaRedefine ? "redefine" : o.GetType().Name;
676item = string.Format(ResXml.XmlSchemaNamedItem, ns, o.GetType().Name, null, details);
687XmlSerializer s = new XmlSerializer(o.GetType());
709Type type = o.GetType();
715if (item.GetType() == type && name == ItemName(item))
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (8)
118SerializeWithXsiType(xmlWriter, obj, obj.GetType().TypeHandle, null/*type*/, -1, declaredType.TypeHandle, declaredType);
127RuntimeTypeHandle objTypeHandle = obj.GetType().TypeHandle;
422throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.CannotSerializeObjectWithCycles, DataContract.GetClrTypeFullName(obj.GetType()))));
501return obj.GetType().TypeHandle.Equals(memberType.TypeHandle);
571throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.UnknownXmlType, DataContract.GetClrTypeFullName(obj.GetType()))));
602throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.ResolveTypeReturnedFalse, DataContract.GetClrTypeFullName(DataContractResolver.GetType()), DataContract.GetClrTypeFullName(objectType))));
612throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.ResolveTypeReturnedNull, DataContract.GetClrTypeFullName(DataContractResolver.GetType()), DataContract.GetClrTypeFullName(objectType))));
617throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.ResolveTypeReturnedNull, DataContract.GetClrTypeFullName(DataContractResolver.GetType()), DataContract.GetClrTypeFullName(objectType))));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (5)
170throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("upgradeInitiator", string.Format(SRServiceModel.UnsupportedUpgradeInitiator, upgradeInitiator.GetType()));
175throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("kind", string.Format(SRServiceModel.StreamUpgradeUnsupportedChannelBindingKind, this.GetType(), kind));
192throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("upgradeAcceptor", string.Format(SRServiceModel.UnsupportedUpgradeAcceptor, upgradeAcceptor.GetType()));
197throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("kind", string.Format(SRServiceModel.StreamUpgradeUnsupportedChannelBindingKind, this.GetType(), kind));
264SRServiceModel.InvalidTokenProvided, _serverTokenProvider.GetType(), typeof(X509SecurityToken))));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (9)
638string.Format(SRServiceModel.SFxBadMetadataDialect, doc.Identifier, doc.Dialect, typeof(T).FullName, doc.GetType().FullName)));
816var xfeAttributes = ServiceReflector.GetCustomAttributes(extension.GetType(), typeof(WsdlConfigNS.XmlFormatExtensionAttribute), false);
826WsdlImportException wie = WsdlImportException.Create(item, new InvalidOperationException(string.Format(SRServiceModel.UnknownWSDLExtensionIgnored, extension.GetType().AssemblyQualifiedName)));
1752Fx.Assert("GetElementName Method should be updated to support " + item.GetType());
1774Fx.Assert(rest != null, "GetXPathParameters Method should never set rest to null. this happened for: " + item.GetType());
1850Fx.Assert("Unsupported WSDL OM: unknown WsdlNS.MessageBinding: " + item.GetType());
1860Fx.Assert("GetXPathParameters Method should be updated to support " + item.GetType());
1896string errorMessage = string.Format(SRServiceModel.WsdlExtensionBeforeImportError, importer.GetType().AssemblyQualifiedName, e.Message);
1909string errorMessage = string.Format(SRServiceModel.WsdlExtensionImportError, importer.GetType().FullName, e.Message);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\IdentityVerifier.cs (4)
73SecurityTraceRecordHelper.TraceIdentityVerificationFailure(identity, authorizationContext, this.GetType());
227SecurityTraceRecordHelper.TraceIdentityVerificationSuccess(eventTraceActivity, identity, identity.IdentityClaim, this.GetType());
239SecurityTraceRecordHelper.TraceIdentityVerificationSuccess(eventTraceActivity, identity, claim, this.GetType());
274SecurityTraceRecordHelper.TraceIdentityVerificationFailure(identity, authContext, this.GetType());
dotnet-svcutil-lib.Tests (3)
FilesWebSite (3)
GetDocument.Insider (2)
IdeBenchmarks (1)
Identity.DefaultUI.WebSite (1)
IIS.FunctionalTests (2)
IIS.LongTests (1)
IIS.NewHandler.FunctionalTests (1)
IIS.NewShim.FunctionalTests (1)
IIS.ShadowCopy.Tests (1)
IISExpress.FunctionalTests (2)
illink (24)
ILLink.RoslynAnalyzer (8)
InMemory.FunctionalTests (5)
InProcessWebSite (1)
LocalizationSample (1)
Microsoft.Analyzers.Extra (1)
Microsoft.Analyzers.Extra.Tests (1)
Microsoft.Analyzers.Local.Tests (1)
Microsoft.Arcade.Common (2)
Microsoft.Arcade.Test.Common (2)
Microsoft.AspNetCore.Analyzer.Testing (2)
Microsoft.AspNetCore.Antiforgery (1)
Microsoft.AspNetCore.App.Analyzers.Test (7)
Microsoft.AspNetCore.App.CodeFixes (1)
Microsoft.AspNetCore.Authentication (2)
Microsoft.AspNetCore.Authentication.Core (2)
Microsoft.AspNetCore.Authentication.OpenIdConnect (7)
Microsoft.AspNetCore.Authorization (1)
Microsoft.AspNetCore.Components (29)
RenderTree\Renderer.Log.cs (7)
25InitializingRootComponent(logger, componentState.ComponentId, componentState.Component.GetType());
29InitializingChildComponent(logger, componentState.ComponentId, componentState.Component.GetType(), parentComponentState.ComponentId, parentComponentState.Component.GetType());
41RenderingComponent(logger, componentState.ComponentId, componentState.Component.GetType());
52DisposingComponent(logger, componentState.ComponentId, componentState.Component.GetType());
63HandlingEvent(logger, eventHandlerId, eventArgs?.GetType().Name ?? "null");
74SkippingEventOnDisposedComponent(logger, componentId, eventHandlerId, eventArgs?.GetType().Name ?? "null");
Microsoft.AspNetCore.Components.Analyzers.Tests (3)
Microsoft.AspNetCore.Components.Endpoints (11)
Microsoft.AspNetCore.Components.Endpoints.Tests (4)
TypeNameHashTest.cs (2)
42var type = new { Foo = "bar" }.GetType();
58var type = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12).GetType();
Microsoft.AspNetCore.Components.Forms (8)
Microsoft.AspNetCore.Components.QuickGrid (1)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (3)
Microsoft.AspNetCore.Components.Server (8)
Microsoft.AspNetCore.Components.Server.Tests (9)
Microsoft.AspNetCore.Components.Tests (20)
ParameterViewTest.cs (3)
98new CascadingParameterState(new(null, "attribute 2", attribute2Value.GetType()), new TestCascadingValue(attribute2Value)),
99new CascadingParameterState(new(null, "attribute 3", attribute3Value.GetType()), new TestCascadingValue(attribute3Value)),
309new CascadingParameterState(new(null, "my entry", myEntryValue.GetType()), new TestCascadingValue(myEntryValue)),
Routing\RouteKeyTest.cs (7)
60var key1 = new RouteKey(typeof(string).Assembly, new[] { typeof(ComponentBase).Assembly, GetType().Assembly });
61var key2 = new RouteKey(typeof(string).Assembly, new[] { typeof(ComponentBase).Assembly, GetType().Assembly });
72var key1 = new RouteKey(typeof(string).Assembly, new[] { typeof(ComponentBase).Assembly, GetType().Assembly });
73var key2 = new RouteKey(typeof(string).Assembly, new[] { GetType().Assembly, typeof(ComponentBase).Assembly });
84var key1 = new RouteKey(typeof(string).Assembly, new[] { GetType().Assembly });
85var key2 = new RouteKey(typeof(ComponentBase).Assembly, new[] { GetType().Assembly, });
97var key2 = new RouteKey(typeof(ComponentBase).Assembly, new[] { GetType().Assembly, });
Routing\RouteTableFactoryTests.cs (9)
28var routes1 = routeTableFactory.Create(new RouteKey(GetType().Assembly, null), _serviceProvider);
31var routes2 = routeTableFactory.Create(new RouteKey(GetType().Assembly, null), _serviceProvider);
42var routes1 = routeTableFactory.Create(new RouteKey(typeof(object).Assembly, new[] { typeof(ComponentBase).Assembly, GetType().Assembly, }), _serviceProvider);
45var routes2 = routeTableFactory.Create(new RouteKey(typeof(object).Assembly, new[] { GetType().Assembly, typeof(ComponentBase).Assembly, }), _serviceProvider);
56var routes1 = routeTableFactory.Create(new RouteKey(GetType().Assembly, null), _serviceProvider);
59var routes2 = routeTableFactory.Create(new RouteKey(GetType().Assembly, new[] { typeof(object).Assembly }), _serviceProvider);
70var routeTable = routeTableFactory.Create(new RouteKey(GetType().Assembly, new[] { GetType().Assembly }), _serviceProvider);
83var routeTable = routeTableFactory.Create(new RouteKey(GetType().Assembly, Array.Empty<Assembly>()), _serviceProvider);
Microsoft.AspNetCore.Components.Web (17)
Microsoft.AspNetCore.Components.WebAssembly (1)
Microsoft.AspNetCore.Components.WebView.Photino (1)
Microsoft.AspNetCore.Connections.Abstractions (2)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.DataProtection.Extensions (1)
Microsoft.AspNetCore.DataProtection.Tests (3)
Microsoft.AspNetCore.Diagnostics (5)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (2)
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Microsoft.AspNetCore.Diagnostics.Tests (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding (9)
Microsoft.AspNetCore.Grpc.Swagger (1)
Microsoft.AspNetCore.Hosting (3)
Microsoft.AspNetCore.Hosting.Tests (3)
Microsoft.AspNetCore.Http (1)
Microsoft.AspNetCore.Http.Abstractions (3)
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
Microsoft.AspNetCore.Http.Connections.Client (1)
Microsoft.AspNetCore.Http.Extensions (15)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (10)
495(awaitable) => ((MethodInfo)awaitable.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskGetAwaiterMethodInfo)).Invoke(awaitable, Array.Empty<object>()),
496(awaiter) => (bool)((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterGetIsCompletedMethodInfo)).Invoke(awaiter, Array.Empty<object>())!,
497(awaiter) => ((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterGetResultMethodInfo)).Invoke(awaiter, Array.Empty<object>())!,
500((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterOnCompletedMethodInfo)).Invoke(awaiter, [continuation]);
504((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterUnsafeOnCompletedMethodInfo)).Invoke(awaiter, [continuation]);
514(awaitable) => ((MethodInfo)awaitable.GetType().GetMemberWithSameMetadataDefinitionAs(_taskGetAwaiterMethodInfo)).Invoke(awaitable, Array.Empty<object>()),
515(awaiter) => (bool)((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterGetIsCompletedMethodInfo)).Invoke(awaiter, Array.Empty<object>())!,
516(awaiter) => ((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterGetResultMethodInfo)).Invoke(awaiter, Array.Empty<object>())!,
519((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterOnCompletedMethodInfo)).Invoke(awaiter, [continuation]);
523((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterUnsafeOnCompletedMethodInfo)).Invoke(awaiter, [continuation]);
Microsoft.AspNetCore.Http.Extensions.Tests (4)
Microsoft.AspNetCore.Http.Results (2)
Microsoft.AspNetCore.Http.Tests (2)
Microsoft.AspNetCore.Identity (3)
Microsoft.AspNetCore.Identity.FunctionalTests (2)
Microsoft.AspNetCore.Identity.Test (3)
Microsoft.AspNetCore.InternalTesting (6)
Microsoft.AspNetCore.InternalTesting.Tests (3)
Microsoft.AspNetCore.JsonPatch (23)
Microsoft.AspNetCore.JsonPatch.Tests (9)
Microsoft.AspNetCore.Localization (2)
Microsoft.AspNetCore.MiddlewareAnalysis (1)
Microsoft.AspNetCore.Mvc (1)
Microsoft.AspNetCore.Mvc.Abstractions (2)
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (4)
Microsoft.AspNetCore.Mvc.Core (75)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (10)
495(awaitable) => ((MethodInfo)awaitable.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskGetAwaiterMethodInfo)).Invoke(awaitable, Array.Empty<object>()),
496(awaiter) => (bool)((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterGetIsCompletedMethodInfo)).Invoke(awaiter, Array.Empty<object>())!,
497(awaiter) => ((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterGetResultMethodInfo)).Invoke(awaiter, Array.Empty<object>())!,
500((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterOnCompletedMethodInfo)).Invoke(awaiter, [continuation]);
504((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterUnsafeOnCompletedMethodInfo)).Invoke(awaiter, [continuation]);
514(awaitable) => ((MethodInfo)awaitable.GetType().GetMemberWithSameMetadataDefinitionAs(_taskGetAwaiterMethodInfo)).Invoke(awaitable, Array.Empty<object>()),
515(awaiter) => (bool)((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterGetIsCompletedMethodInfo)).Invoke(awaiter, Array.Empty<object>())!,
516(awaiter) => ((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterGetResultMethodInfo)).Invoke(awaiter, Array.Empty<object>())!,
519((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterOnCompletedMethodInfo)).Invoke(awaiter, [continuation]);
523((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterUnsafeOnCompletedMethodInfo)).Invoke(awaiter, [continuation]);
Microsoft.AspNetCore.Mvc.Core.Test (120)
Infrastructure\ActionMethodExecutorTest.cs (15)
33Assert.Equal("VoidResultExecutor", actionMethodExecutor.GetType().Name);
59Assert.Equal("SyncActionResultExecutor", actionMethodExecutor.GetType().Name);
85Assert.Equal("SyncActionResultExecutor", actionMethodExecutor.GetType().Name);
112Assert.Equal("SyncObjectResultExecutor", actionMethodExecutor.GetType().Name);
141Assert.Equal("SyncObjectResultExecutor", actionMethodExecutor.GetType().Name);
170Assert.Equal("SyncObjectResultExecutor", actionMethodExecutor.GetType().Name);
197Assert.Equal("SyncActionResultExecutor", actionMethodExecutor.GetType().Name);
222Assert.Equal("TaskResultExecutor", actionMethodExecutor.GetType().Name);
248Assert.Equal("AwaitableResultExecutor", actionMethodExecutor.GetType().Name);
274Assert.Equal("TaskOfIActionResultExecutor", actionMethodExecutor.GetType().Name);
300Assert.Equal("TaskOfActionResultExecutor", actionMethodExecutor.GetType().Name);
327Assert.Equal("AwaitableObjectResultExecutor", actionMethodExecutor.GetType().Name);
356Assert.Equal("AwaitableObjectResultExecutor", actionMethodExecutor.GetType().Name);
383Assert.Equal("AwaitableObjectResultExecutor", actionMethodExecutor.GetType().Name);
410Assert.Equal("AwaitableObjectResultExecutor", actionMethodExecutor.GetType().Name);
Infrastructure\AsyncEnumerableReaderTest.cs (16)
38var result = readerFactory.TryGetReader(asyncEnumerable.GetType(), out var reader);
56var result = readerFactory.TryGetReader(asyncEnumerable.GetType(), out var reader);
75Assert.True(readerFactory.TryGetReader(asyncEnumerable1.GetType(), out var reader1));
76Assert.True(readerFactory.TryGetReader(asyncEnumerable2.GetType(), out var reader2));
92Assert.True(readerFactory.TryGetReader(asyncEnumerable1.GetType(), out var reader1));
93Assert.True(readerFactory.TryGetReader(asyncEnumerable2.GetType(), out var reader2));
110Assert.True(readerFactory.TryGetReader(asyncEnumerable1.GetType(), out var reader));
127Assert.True(readerFactory.TryGetReader(asyncEnumerable1.GetType(), out var reader));
144Assert.True(readerFactory.TryGetReader(enumerable1.GetType(), out var reader1));
145Assert.True(readerFactory.TryGetReader(enumerable2.GetType(), out var reader2));
161var result = readerFactory.TryGetReader(asyncEnumerable.GetType(), out var reader);
175var expected = $"'AsyncEnumerableReader' reached the configured maximum size of the buffer when enumerating a value of type '{enumerable.GetType()}'. " +
177$"consider ways to reduce the collection size, or consider manually converting '{enumerable.GetType()}' into a list rather than increasing the limit.";
182Assert.True(readerFactory.TryGetReader(enumerable.GetType(), out var reader));
198Assert.True(readerFactory.TryGetReader(enumerable.GetType(), out var reader));
213Assert.True(readerFactory.TryGetReader(enumerable.GetType(), out var reader));
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (25)
601var property = GetMetadataForProperty(model.GetType(), nameof(ModelWithBindRequired.Age));
603var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
666var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
668var property = GetMetadataForProperty(model.GetType(), nameof(ModelWithDataMemberIsRequired.Age));
703var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
707var property = GetMetadataForProperty(model.GetType(), nameof(ModelWithBindRequired.Age));
737var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
739var property = GetMetadataForProperty(model.GetType(), nameof(BindingOptionalProperty.ValueTypeRequired));
760var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
762var property = GetMetadataForProperty(model.GetType(), nameof(NullableValueTypeProperty.NullableValueType));
783var containerMetadata = GetMetadataForType(model.GetType());
787var property = GetMetadataForProperty(model.GetType(), nameof(Person.ValueTypeRequired));
808var containerMetadata = GetMetadataForType(model.GetType());
812var property = GetMetadataForProperty(model.GetType(), nameof(Person.ValueTypeRequired));
838var containerMetadata = GetMetadataForType(model.GetType());
866var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
888var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
912var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
936var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
978var type = model.GetType();
1002var modelMetadata = GetMetadataForType(model.GetType());
1003var propertyMetadata = GetMetadataForProperty(model.GetType(), nameof(CollectionContainer.ReadOnlyList));
1023var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1047var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1067var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (26)
782var property = GetMetadataForProperty(model.GetType(), nameof(ModelWithBindRequired.Age));
784var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
816var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
820var property = GetMetadataForProperty(model.GetType(), nameof(ModelWithDataMemberIsRequired.Age));
850var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
856var property = GetMetadataForProperty(model.GetType(), nameof(ModelWithBindRequired.Age));
881var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
885var property = GetMetadataForProperty(model.GetType(), nameof(BindingOptionalProperty.ValueTypeRequired));
901var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
905var property = GetMetadataForProperty(model.GetType(), nameof(NullableValueTypeProperty.NullableValueType));
921var containerMetadata = GetMetadataForType(model.GetType());
927var property = GetMetadataForProperty(model.GetType(), nameof(Person.ValueTypeRequired));
943var containerMetadata = GetMetadataForType(model.GetType());
949var property = GetMetadataForProperty(model.GetType(), nameof(Person.ValueTypeRequired));
970var containerMetadata = GetMetadataForType(model.GetType());
1003var property = GetMetadataForProperty(model.GetType(), nameof(ModelWithPropertyInitializedInConstructor.NameContainer));
1028var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1050var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1074var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1098var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1140var type = model.GetType();
1164var modelMetadata = GetMetadataForType(model.GetType());
1165var propertyMetadata = GetMetadataForProperty(model.GetType(), nameof(CollectionContainer.ReadOnlyList));
1185var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1209var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1229var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
MvcCoreLoggerExtensionsTest.cs (15)
208$"{authFilter.GetType()}, {asyncAuthFilter.GetType()}, {orderedAuthFilter.GetType()} (Order: -100)",
254$"{resourceFilter.GetType()}, {asyncResourceFilter.GetType()}, {orderedResourceFilter.GetType()} (Order: -100)",
300$"{actionFilter.GetType()}, {asyncActionFilter.GetType()}, {orderedActionFilter.GetType()} (Order: -100)",
346$"{exceptionFilter.GetType()}, {asyncExceptionFilter.GetType()}, {orderedExceptionFilter.GetType()} (Order: -100)",
392$"{resultFilter.GetType()}, {asyncResultFilter.GetType()}, {orderedResultFilter.GetType()} (Order: -100)",
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
Microsoft.AspNetCore.Mvc.Cors (1)
Microsoft.AspNetCore.Mvc.DataAnnotations (3)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (4)
Microsoft.AspNetCore.Mvc.Formatters.Xml (11)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (34)
Microsoft.AspNetCore.Mvc.IntegrationTests (14)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (12)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (19)
src\Mvc\Mvc.Core\test\Infrastructure\AsyncEnumerableReaderTest.cs (16)
38var result = readerFactory.TryGetReader(asyncEnumerable.GetType(), out var reader);
56var result = readerFactory.TryGetReader(asyncEnumerable.GetType(), out var reader);
75Assert.True(readerFactory.TryGetReader(asyncEnumerable1.GetType(), out var reader1));
76Assert.True(readerFactory.TryGetReader(asyncEnumerable2.GetType(), out var reader2));
92Assert.True(readerFactory.TryGetReader(asyncEnumerable1.GetType(), out var reader1));
93Assert.True(readerFactory.TryGetReader(asyncEnumerable2.GetType(), out var reader2));
110Assert.True(readerFactory.TryGetReader(asyncEnumerable1.GetType(), out var reader));
127Assert.True(readerFactory.TryGetReader(asyncEnumerable1.GetType(), out var reader));
144Assert.True(readerFactory.TryGetReader(enumerable1.GetType(), out var reader1));
145Assert.True(readerFactory.TryGetReader(enumerable2.GetType(), out var reader2));
161var result = readerFactory.TryGetReader(asyncEnumerable.GetType(), out var reader);
175var expected = $"'AsyncEnumerableReader' reached the configured maximum size of the buffer when enumerating a value of type '{enumerable.GetType()}'. " +
177$"consider ways to reduce the collection size, or consider manually converting '{enumerable.GetType()}' into a list rather than increasing the limit.";
182Assert.True(readerFactory.TryGetReader(enumerable.GetType(), out var reader));
198Assert.True(readerFactory.TryGetReader(enumerable.GetType(), out var reader));
213Assert.True(readerFactory.TryGetReader(enumerable.GetType(), out var reader));
Microsoft.AspNetCore.Mvc.Razor (9)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
Microsoft.AspNetCore.Mvc.Razor.Test (1)
Microsoft.AspNetCore.Mvc.RazorPages (4)
Microsoft.AspNetCore.Mvc.RazorPages.Test (23)
Infrastructure\CompiledPageActionDescriptorFactoryTest.cs (11)
79var methodInfo = GetType().GetMethod(nameof(OnGet), BindingFlags.Instance | BindingFlags.NonPublic);
107var methodInfo = GetType().GetMethod(nameof(OnGet), BindingFlags.Instance | BindingFlags.NonPublic);
134var methodInfo = GetType().GetMethod(nameof(OnGet), BindingFlags.Instance | BindingFlags.NonPublic);
165var methodInfo = GetType().GetMethod(nameof(OnGet), BindingFlags.Instance | BindingFlags.NonPublic);
196var methodInfo = GetType().GetMethod(nameof(OnGet), BindingFlags.Instance | BindingFlags.NonPublic);
227var methodInfo = GetType().GetMethod(nameof(OnGet), BindingFlags.Instance | BindingFlags.NonPublic);
262var methodInfo = GetType().GetMethod(nameof(OnGet), BindingFlags.Instance | BindingFlags.NonPublic);
263var propertyInfo = GetType().GetProperty(nameof(TestProperty), BindingFlags.Instance | BindingFlags.NonPublic);
296var methodInfo = GetType().GetMethod(nameof(OnGet), BindingFlags.Instance | BindingFlags.NonPublic);
297var propertyInfo = GetType().GetProperty(nameof(TestProperty), BindingFlags.Instance | BindingFlags.NonPublic);
327var propertyInfo = GetType().GetProperty(nameof(TestProperty), BindingFlags.Instance | BindingFlags.NonPublic);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
Microsoft.AspNetCore.Mvc.Test (4)
Microsoft.AspNetCore.Mvc.Testing (2)
Microsoft.AspNetCore.Mvc.ViewFeatures (30)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (16)
Microsoft.AspNetCore.OpenApi (11)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (10)
495(awaitable) => ((MethodInfo)awaitable.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskGetAwaiterMethodInfo)).Invoke(awaitable, Array.Empty<object>()),
496(awaiter) => (bool)((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterGetIsCompletedMethodInfo)).Invoke(awaiter, Array.Empty<object>())!,
497(awaiter) => ((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterGetResultMethodInfo)).Invoke(awaiter, Array.Empty<object>())!,
500((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterOnCompletedMethodInfo)).Invoke(awaiter, [continuation]);
504((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterUnsafeOnCompletedMethodInfo)).Invoke(awaiter, [continuation]);
514(awaitable) => ((MethodInfo)awaitable.GetType().GetMemberWithSameMetadataDefinitionAs(_taskGetAwaiterMethodInfo)).Invoke(awaitable, Array.Empty<object>()),
515(awaiter) => (bool)((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterGetIsCompletedMethodInfo)).Invoke(awaiter, Array.Empty<object>())!,
516(awaiter) => ((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterGetResultMethodInfo)).Invoke(awaiter, Array.Empty<object>())!,
519((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterOnCompletedMethodInfo)).Invoke(awaiter, [continuation]);
523((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterUnsafeOnCompletedMethodInfo)).Invoke(awaiter, [continuation]);
Microsoft.AspNetCore.OpenApi.Tests (1)
Microsoft.AspNetCore.Owin (1)
Microsoft.AspNetCore.Routing (7)
Microsoft.AspNetCore.Routing.Abstractions (1)
Microsoft.AspNetCore.Routing.Tests (6)
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.IntegrationTesting (2)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Microsoft.AspNetCore.Shared.Tests (40)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (10)
495(awaitable) => ((MethodInfo)awaitable.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskGetAwaiterMethodInfo)).Invoke(awaitable, Array.Empty<object>()),
496(awaiter) => (bool)((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterGetIsCompletedMethodInfo)).Invoke(awaiter, Array.Empty<object>())!,
497(awaiter) => ((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterGetResultMethodInfo)).Invoke(awaiter, Array.Empty<object>())!,
500((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterOnCompletedMethodInfo)).Invoke(awaiter, [continuation]);
504((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterUnsafeOnCompletedMethodInfo)).Invoke(awaiter, [continuation]);
514(awaitable) => ((MethodInfo)awaitable.GetType().GetMemberWithSameMetadataDefinitionAs(_taskGetAwaiterMethodInfo)).Invoke(awaitable, Array.Empty<object>()),
515(awaiter) => (bool)((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterGetIsCompletedMethodInfo)).Invoke(awaiter, Array.Empty<object>())!,
516(awaiter) => ((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterGetResultMethodInfo)).Invoke(awaiter, Array.Empty<object>())!,
519((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterOnCompletedMethodInfo)).Invoke(awaiter, [continuation]);
523((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterUnsafeOnCompletedMethodInfo)).Invoke(awaiter, [continuation]);
Microsoft.AspNetCore.SignalR.Client.Core (16)
HubConnection.Log.cs (6)
31var argsList = args == null ? string.Empty : string.Join(", ", args.Select(a => a?.GetType().FullName ?? "(null)"));
42SendingMessage(logger, message.GetType().Name, invocationMessage.InvocationId);
46SendingMessageGeneric(logger, message.GetType().Name);
63MessageSent(logger, message.GetType().Name, invocationMessage.InvocationId);
67MessageSentGeneric(logger, message.GetType().Name);
88var argsList = args == null ? string.Empty : string.Join(", ", args.Select(a => a?.GetType().FullName ?? "(null)"));
Microsoft.AspNetCore.SignalR.Common.Tests (9)
Microsoft.AspNetCore.SignalR.Core (20)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (10)
495(awaitable) => ((MethodInfo)awaitable.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskGetAwaiterMethodInfo)).Invoke(awaitable, Array.Empty<object>()),
496(awaiter) => (bool)((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterGetIsCompletedMethodInfo)).Invoke(awaiter, Array.Empty<object>())!,
497(awaiter) => ((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterGetResultMethodInfo)).Invoke(awaiter, Array.Empty<object>())!,
500((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterOnCompletedMethodInfo)).Invoke(awaiter, [continuation]);
504((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterUnsafeOnCompletedMethodInfo)).Invoke(awaiter, [continuation]);
514(awaitable) => ((MethodInfo)awaitable.GetType().GetMemberWithSameMetadataDefinitionAs(_taskGetAwaiterMethodInfo)).Invoke(awaitable, Array.Empty<object>()),
515(awaiter) => (bool)((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterGetIsCompletedMethodInfo)).Invoke(awaiter, Array.Empty<object>())!,
516(awaiter) => ((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterGetResultMethodInfo)).Invoke(awaiter, Array.Empty<object>())!,
519((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterOnCompletedMethodInfo)).Invoke(awaiter, [continuation]);
523((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterUnsafeOnCompletedMethodInfo)).Invoke(awaiter, [continuation]);
Microsoft.AspNetCore.SignalR.Microbenchmarks (5)
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (2)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Microsoft.AspNetCore.SignalR.Tests (8)
Microsoft.AspNetCore.TestHost (3)
Microsoft.Build (70)
BackEnd\Components\Logging\LoggingService.cs (7)
780loggerTypes.Add(logger.GetType().FullName);
996buildEvent?.GetType().Name ?? string.Empty);
1475InternalLoggerException.Throw(e, null, "FatalErrorDuringLoggerShutdown", false, logger.GetType().Name);
1557ErrorUtilities.ThrowInternalError("Unknown logging item in queue:" + loggingEvent.GetType().FullName);
1801using var assemblyLoadTracker = AssemblyLoadsTracker.StartTracking(this, AssemblyLoadingContext.LoggerInitialization, UnwrapLoggerType(logger).GetType());
1815InternalLoggerException.Throw(e, null, "FatalErrorWhileInitializingLogger", true, logger.GetType().Name);
1860_ => innerLogger.GetType().FullName == "Microsoft.Build.Logging.TerminalLogger.TerminalLogger"
Microsoft.Build.BuildCheck.UnitTests (4)
Microsoft.Build.CommandLine.UnitTests (2)
Microsoft.Build.Engine.OM.UnitTests (11)
Microsoft.Build.Engine.UnitTests (28)
Construction\ElementLocation_Tests.cs (11)
45Assert.Contains("RegularElementLocation", location.GetType().FullName);
58Assert.Contains("RegularElementLocation", location.GetType().FullName);
71Assert.Contains("RegularElementLocation", location.GetType().FullName);
172Assert.Contains("RegularElementLocation", location.GetType().FullName);
190Assert.Contains("SmallElementLocation", deserializedLocation.GetType().FullName);
203Assert.Contains("SmallElementLocation", location.GetType().FullName);
248Assert.Contains("SmallElementLocation", location.GetType().FullName);
261Assert.Contains("SmallElementLocation", location.GetType().FullName);
274Assert.Contains("SmallElementLocation", location.GetType().FullName);
292Assert.Contains("SmallElementLocation", location.GetType().FullName);
432foreach (var property in node.GetType().GetProperties(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance))
Microsoft.Build.Framework (11)
Microsoft.Build.Framework.UnitTests (3)
Microsoft.Build.Tasks.Core (18)
Microsoft.Build.Tasks.UnitTests (1)
Microsoft.Build.UnitTests.Shared (3)
Microsoft.Build.Utilities.Core (10)
Microsoft.Cci.Extensions (6)
Microsoft.CodeAnalysis (93)
Compilation\DeterministicKeyBuilder.cs (8)
178WriteType(writer, analyzer.GetType());
189WriteType(writer, generator.GetType());
500WriteType(writer, "syntaxTreeOptionsProvider", options.SyntaxTreeOptionsProvider?.GetType());
501WriteType(writer, "metadataReferenceResolver", options.MetadataReferenceResolver?.GetType());
502WriteType(writer, "xmlReferenceResolver", options.XmlReferenceResolver?.GetType());
503WriteType(writer, "sourceReferenceResolver", options.SourceReferenceResolver?.GetType());
504WriteType(writer, "strongNameProvider", options.StrongNameProvider?.GetType());
505WriteType(writer, "assemblyIdentityComparer", options.AssemblyIdentityComparer?.GetType());
Microsoft.CodeAnalysis.CodeStyle (46)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (1)
105(obj.GetType(), name),
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (4)
167string.Format(WorkspaceExtensionsResources.Destination_type_must_be_a_0_but_given_one_is_1, typeof(TDeclarationNode).Name, destination.GetType().Name),
186typeof(TDeclarationNode1).Name, typeof(TDeclarationNode2).Name, destination.GetType().Name),
207typeof(TDeclarationNode1).Name, typeof(TDeclarationNode2).Name, typeof(TDeclarationNode3).Name, destination.GetType().Name),
225typeof(TDeclarationNode1).Name, typeof(TDeclarationNode2).Name, typeof(TDeclarationNode3).Name, typeof(TDeclarationNode4).Name, destination.GetType().Name),
Microsoft.CodeAnalysis.Collections.Package (5)
Microsoft.CodeAnalysis.CSharp (23)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (14)
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ResultProvider (1)
Microsoft.CodeAnalysis.CSharp.Features (2)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (9)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (50)
Compilation\SymbolVisitorTests.cs (46)
41_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
46_output.Append(symbol.GetType().Name + " of ");
52_output.Append(symbol.GetType().Name + " of ");
58_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
76_output.Append(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name + ": ");
83_output.Append(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name + ": ");
100_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
109_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
119_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
127_output.Append(symbol.GetType().Name + " " + symbol.Name);
138_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
146_output.Append(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name + ": ");
153_output.Append(symbol.GetType().Name + " of ");
164_output.Append(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
178_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
182_output.Append(symbol.GetType().Name + " " + symbol.Name);
209_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
215_output.Append(symbol.GetType().Name + " of ");
222_output.Append(symbol.GetType().Name + " of ");
229_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
250_output.Append(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name + ": ");
258_output.Append(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name + ": ");
278_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
288_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
299_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
307_output.Append(symbol.GetType().Name + " " + symbol.Name);
319_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
328_output.Append(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name + ": ");
336_output.Append(symbol.GetType().Name + " of ");
349_output.Append(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
365_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
369_output.Append(symbol.GetType().Name + " " + symbol.Name);
392argument.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
401argument.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
410argument.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
421argument.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
429argument.Append(symbol.GetType().Name + " " + symbol.Name);
441argument.Append(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name + ": ");
449argument.Append(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name + ": ");
457argument.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
467argument.Append(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name + ": ");
481argument.Append(symbol.GetType().Name + " of ");
488argument.Append(symbol.GetType().Name + " of ");
500argument.Append(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
515argument.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
519argument.Append(symbol.GetType().Name + " " + symbol.Name);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (28)
LexicalAndXml\XmlDocCommentTests.cs (28)
1723Assert.Equal(typeof(DocumentationCommentTriviaSyntax), trivias[2].GetStructure().GetType());
1757Assert.Equal(typeof(DocumentationCommentTriviaSyntax), trivias[0].GetStructure().GetType());
1758Assert.Equal(typeof(DocumentationCommentTriviaSyntax), trivias[3].GetStructure().GetType());
1799Assert.Equal(typeof(DocumentationCommentTriviaSyntax), trivias[0].GetStructure().GetType());
1800Assert.Equal(typeof(DocumentationCommentTriviaSyntax), trivias[3].GetStructure().GetType());
1832Assert.Equal(typeof(MethodDeclarationSyntax), (tree.GetCompilationUnitRoot().Members[0] as TypeDeclarationSyntax).Members[0].GetType());
1842Assert.Equal(typeof(DocumentationCommentTriviaSyntax), trivias[0].GetStructure().GetType());
1867Assert.Equal(typeof(MethodDeclarationSyntax), (tree.GetCompilationUnitRoot().Members[0] as TypeDeclarationSyntax).Members[0].GetType());
1877Assert.Equal(typeof(DocumentationCommentTriviaSyntax), trivias[0].GetStructure().GetType());
1902Assert.Equal(typeof(PropertyDeclarationSyntax), (tree.GetCompilationUnitRoot().Members[0] as TypeDeclarationSyntax).Members[0].GetType());
1912Assert.Equal(typeof(DocumentationCommentTriviaSyntax), trivias[0].GetStructure().GetType());
1937Assert.Equal(typeof(IndexerDeclarationSyntax), (tree.GetCompilationUnitRoot().Members[0] as TypeDeclarationSyntax).Members[0].GetType());
1947Assert.Equal(typeof(DocumentationCommentTriviaSyntax), trivias[0].GetStructure().GetType());
1972Assert.Equal(typeof(MethodDeclarationSyntax), (tree.GetCompilationUnitRoot().Members[0] as TypeDeclarationSyntax).Members[0].GetType());
1984Assert.Equal(typeof(DocumentationCommentTriviaSyntax), trivias[0].GetStructure().GetType());
2009Assert.Equal(typeof(ClassDeclarationSyntax), tree.GetCompilationUnitRoot().Members[0].GetType());
2020Assert.Equal(typeof(DocumentationCommentTriviaSyntax), trivias[0].GetStructure().GetType());
2047Assert.Equal(typeof(MethodDeclarationSyntax), (tree.GetCompilationUnitRoot().Members[0] as TypeDeclarationSyntax).Members[0].GetType());
2058Assert.Equal(typeof(DocumentationCommentTriviaSyntax), trivias[0].GetStructure().GetType());
2090Assert.Equal(typeof(DocumentationCommentTriviaSyntax), trivias[0].GetStructure().GetType());
2124Assert.Equal(typeof(DocumentationCommentTriviaSyntax), trivias[0].GetStructure().GetType());
2155Assert.Equal(typeof(DocumentationCommentTriviaSyntax), trivias[0].GetStructure().GetType());
2185Assert.Equal(typeof(DocumentationCommentTriviaSyntax), trivias[2].GetStructure().GetType());
2217Assert.Equal(typeof(DocumentationCommentTriviaSyntax), trivias[0].GetStructure().GetType());
2641Assert.Equal(typeof(XmlElementSyntax), doc.Content[0].GetType());
3358if (element.GetType() == typeof(XmlElementSyntax))
3362else if (element.GetType() == typeof(XmlTextSyntax))
3366else if (element.GetType() == typeof(XmlCDataSectionSyntax))
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.EditorFeatures (9)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities2 (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (10)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (3)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (19)
Microsoft.CodeAnalysis.ExternalAccess.Xaml (1)
Microsoft.CodeAnalysis.Features (20)
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Microsoft.CodeAnalysis.InteractiveHost (2)
Microsoft.CodeAnalysis.LanguageServer (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (23)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (9)
Microsoft.CodeAnalysis.Rebuild.UnitTests (2)
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Microsoft.CodeAnalysis.Scripting (15)
Hosting\CommandLine\CommandLineRunner.cs (3)
207var script = Script.CreateInitialScript<int>(_scriptCompiler, code, options, globals.GetType(), assemblyLoaderOpt: null);
233var script = Script.CreateInitialScript<object>(_scriptCompiler, SourceText.From(initialScriptCodeOpt), options, globals.GetType(), assemblyLoaderOpt: null);
285newScript = Script.CreateInitialScript<object>(_scriptCompiler, SourceText.From(code ?? string.Empty), options, globals.GetType(), assemblyLoaderOpt: null);
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
Microsoft.CodeAnalysis.Test.Utilities (15)
Microsoft.CodeAnalysis.UnitTests (70)
AnalyzerAssemblyLoaderTests.cs (35)
312a.GetType().GetMethod("Write")!.Invoke(a, new object[] { sb, "Test A" });
317b.GetType().GetMethod("Write")!.Invoke(b, new object[] { sb, "Test B" });
382var writeMethod = b.GetType().GetMethod("Write")!;
542var writeMethod = b.GetType().GetMethod("Write")!;
574var writeMethod = b.GetType().GetMethod("Write")!;
690var writeMethod = b.GetType().GetMethod("Write")!;
739var writeMethod = b.GetType().GetMethod("Write")!;
799g.GetType().GetMethod("Write")!.Invoke(g, new object[] { sb, "Test G" });
803e.GetType().GetMethod("Write")!.Invoke(e, new object[] { sb, "Test E" });
855e.GetType().GetMethod("Write")!.Invoke(e, new object[] { sb, "Test E" });
914e.GetType().GetMethod("Write")!.Invoke(e, new object[] { sb, "Test E" });
1001e.GetType().GetMethod("Write")!.Invoke(e, new object[] { sb, "Test E" });
1061e.GetType().GetMethod("Write")!.Invoke(e, new object[] { sb, "Test E" });
1115g.GetType().GetMethod("Write")!.Invoke(g, new object[] { sb, "Test G" });
1119e.GetType().GetMethod("Write")!.Invoke(e, new object[] { sb, "Test E" });
1175g.GetType().GetMethod("Write")!.Invoke(g, new object[] { sb, "Test G" });
1179var eWrite = e.GetType().GetMethod("Write")!;
1234var prop = a.GetType().GetProperty("Ran", BindingFlags.Public | BindingFlags.Instance);
1354g.GetType().GetMethod("Write")!.Invoke(g, new object[] { sb, "Test G" });
1358e.GetType().GetMethod("Write")!.Invoke(e, new object[] { sb, "Test E" });
1384delta1Instance.GetType().GetMethod("Write")!.Invoke(delta1Instance, new object[] { sb, "Test D1" });
1388delta2Instance.GetType().GetMethod("Write")!.Invoke(delta2Instance, new object[] { sb, "Test D2" });
1416var ex = Assert.ThrowsAny<Exception>(() => analyzer.GetType().GetMethod("Method")!.Invoke(analyzer, new object[] { sb }));
1421analyzer.GetType().GetMethod("Method")!.Invoke(analyzer, new object[] { sb });
1440analyzer.GetType().GetMethod("Method")!.Invoke(analyzer, new object[] { sb });
1477var result = analyzer.GetType().GetMethod("GetFileAttributes")!.Invoke(analyzer, new[] { testFixture.AnalyzerWithNativeDependency });
1527d!.GetType().GetMethod("Write")!.Invoke(d, new object[] { sb, "Test D" });
1561var writeMethod = b.GetType().GetMethod("Write")!;
1703analyzer.GetType().GetMethod("Method")!.Invoke(analyzer, new object[] { sb });
1730var resolver = new TestAnalyzerAssemblyResolver(n => GetType().Assembly);
1741Assert.Collection(resolver.CalledFor, (a => Assert.Equal(GetType().Assembly.GetName().Name, a.Name)));
1748var thisAssemblyName = GetType().Assembly.GetName();
1749var resolver = new TestAnalyzerAssemblyResolver(n => n == thisAssemblyName ? GetType().Assembly : null);
1792var resolver1 = new TestAnalyzerAssemblyResolver(n => GetType().Assembly);
1802Assert.Collection(resolver1.CalledFor, (a => Assert.Equal(GetType().Assembly.GetName().Name, a.Name)));
Microsoft.CodeAnalysis.VisualBasic (15)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Microsoft.CodeAnalysis.VisualBasic.ResultProvider (1)
Microsoft.CodeAnalysis.VisualBasic.Scripting (1)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
Microsoft.CodeAnalysis.Workspaces (76)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (1)
105(obj.GetType(), name),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (4)
167string.Format(WorkspaceExtensionsResources.Destination_type_must_be_a_0_but_given_one_is_1, typeof(TDeclarationNode).Name, destination.GetType().Name),
186typeof(TDeclarationNode1).Name, typeof(TDeclarationNode2).Name, destination.GetType().Name),
207typeof(TDeclarationNode1).Name, typeof(TDeclarationNode2).Name, typeof(TDeclarationNode3).Name, destination.GetType().Name),
225typeof(TDeclarationNode1).Name, typeof(TDeclarationNode2).Name, typeof(TDeclarationNode3).Name, typeof(TDeclarationNode4).Name, destination.GetType().Name),
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (9)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (4)
Microsoft.CodeAnalysis.Workspaces.UnitTests (10)
Microsoft.CommonLanguageServerProtocol.Framework.Package (3)
Microsoft.CSharp (9)
Microsoft.Data.Analysis (1)
Microsoft.DotNet.Arcade.Sdk.Tests (3)
Microsoft.DotNet.AsmDiff (1)
Microsoft.DotNet.Build.Tasks.Feed (1)
Microsoft.DotNet.Build.Tasks.Packaging (3)
Microsoft.DotNet.CodeAnalysis (1)
Microsoft.DotNet.NuGetRepack.Tests (2)
Microsoft.DotNet.RemoteExecutor (1)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (1)
Microsoft.DotNet.XUnitExtensions (1)
Microsoft.Extensions.AI (2)
Microsoft.Extensions.AI.Abstractions (3)
Microsoft.Extensions.AI.Abstractions.Tests (2)
Microsoft.Extensions.AI.AzureAIInference (2)
Microsoft.Extensions.AI.OpenAI (1)
Microsoft.Extensions.Caching.Hybrid (2)
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (36)
Microsoft.Extensions.Compliance.Abstractions (1)
Microsoft.Extensions.Compliance.Redaction (5)
Microsoft.Extensions.Compliance.Redaction.Tests (3)
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.DependencyInjection (7)
Microsoft.Extensions.DependencyInjection.Abstractions (6)
Microsoft.Extensions.DependencyInjection.AutoActivation (1)
Microsoft.Extensions.Diagnostics.Abstractions (1)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (2)
Microsoft.Extensions.Diagnostics.Probes (2)
Microsoft.Extensions.Diagnostics.Probes.Tests (3)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (3)
Microsoft.Extensions.FileProviders.Embedded.Tests (11)
Microsoft.Extensions.Http (1)
Microsoft.Extensions.Http.Diagnostics (1)
Microsoft.Extensions.Http.Resilience (2)
Microsoft.Extensions.Http.Resilience.Tests (1)
Microsoft.Extensions.Identity.Core (2)
Microsoft.Extensions.Identity.Stores (2)
Microsoft.Extensions.Logging (1)
Microsoft.Extensions.Logging.Abstractions (1)
Microsoft.Extensions.ObjectPool (1)
Microsoft.Extensions.Options (2)
Microsoft.Extensions.Options.DataAnnotations (2)
Microsoft.Extensions.ServiceDiscovery (1)
Microsoft.Extensions.Telemetry (3)
Microsoft.Extensions.Telemetry.PerformanceTests (1)
Microsoft.Extensions.Telemetry.Tests (3)
Microsoft.Extensions.TimeProvider.Testing (1)
Microsoft.Gen.Logging.Generated.Tests (2)
Microsoft.JSInterop (5)
Microsoft.JSInterop.Tests (1)
Microsoft.ML.AutoML (12)
Microsoft.ML.AutoML.SourceGenerator (5)
Microsoft.ML.AutoML.Tests (3)
Microsoft.ML.CodeGenerator (12)
Microsoft.ML.Core (25)
Microsoft.ML.Data (63)
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);
Microsoft.ML.DataView (1)
Microsoft.ML.Ensemble (4)
Microsoft.ML.EntryPoints (4)
Microsoft.ML.FastTree (6)
Microsoft.ML.GenAI.LLaMA (1)
Microsoft.ML.GenAI.Phi (1)
Microsoft.ML.IntegrationTests (4)
Microsoft.ML.InternalCodeAnalyzer (1)
Microsoft.ML.KMeansClustering (1)
Microsoft.ML.LightGbm (2)
Microsoft.ML.Maml (1)
Microsoft.ML.OnnxConverter (1)
Microsoft.ML.Parquet (3)
Microsoft.ML.PCA (1)
Microsoft.ML.Predictor.Tests (1)
Microsoft.ML.SearchSpace (1)
Microsoft.ML.StandardTrainers (6)
Microsoft.ML.TestFramework (3)
Microsoft.ML.Tests (10)
Microsoft.ML.TimeSeries (2)
Microsoft.ML.TorchSharp (4)
Microsoft.ML.Transforms (17)
Microsoft.TestUtilities (1)
Microsoft.VisualBasic.Core (84)
Microsoft\VisualBasic\CompilerServices\ObjectFlowControl.vb (12)
25If Expression IsNot Nothing AndAlso Expression.GetType.IsValueType() Then
27SR.Format(SR.SyncLockRequiresReferenceType1, VBFriendlyName(Expression.GetType)))
155Dim startType As Type = Start.GetType()
156Dim limitType As Type = Limit.GetType()
157Dim stepType As Type = StepValue.GetType()
269Dim counterTypeCode As TypeCode = Counter.GetType.GetTypeCode
290Counter = ConvertLoopElement("Start", Counter, Counter.GetType(), loopFor._widestType)
293loopFor._limit = ConvertLoopElement("Limit", loopFor._limit, loopFor._limit.GetType(), loopFor._widestType)
294loopFor._stepValue = ConvertLoopElement("Step", loopFor._stepValue, loopFor._stepValue.GetType(), loopFor._widestType)
301Dim resultTypeCode As TypeCode = loopFor._counter.GetType.GetTypeCode ' CType(LoopFor.Counter, IConvertible).GetTypeCode()
324If loopFor._counter.GetType() IsNot loopFor._widestType Then
325loopFor._counter = ConvertLoopElement("Start", loopFor._counter, loopFor._counter.GetType(), loopFor._widestType)
Microsoft.VisualStudio.LanguageServices (19)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
MSBuild (15)
MSBuildTaskHost (19)
Mvc.Api.Analyzers.Test (24)
Mvc.RoutingWebSite (1)
PresentationBuildTasks (7)
PresentationCore (240)
System\Windows\Generated\ContentElement.cs (6)
80throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp");
88throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, clock.Timeline.GetType(), dp.Name, dp.PropertyType), "clock");
99throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType()));
149throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp");
156throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), "animation");
166throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType()));
System\Windows\Generated\UIElement.cs (6)
80throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp");
88throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, clock.Timeline.GetType(), dp.Name, dp.PropertyType), "clock");
99throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType()));
149throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp");
156throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), "animation");
166throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType()));
System\Windows\Media\Animation\Generated\Animatable.cs (6)
86throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp");
94throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, clock.Timeline.GetType(), dp.Name, dp.PropertyType), "clock");
105throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType()));
155throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp");
162throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), "animation");
172throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType()));
System\Windows\Media3D\Generated\Visual3D.cs (6)
86throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp");
94throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, clock.Timeline.GetType(), dp.Name, dp.PropertyType), "clock");
105throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType()));
155throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp");
162throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), "animation");
172throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType()));
PresentationFramework (487)
System\Windows\Data\XmlNamespaceMapping.cs (6)
48throw new InvalidOperationException(SR.Format(SR.PropertyIsInitializeOnly, "Prefix", this.GetType().Name));
50throw new InvalidOperationException(SR.Format(SR.PropertyIsImmutable, "Prefix", this.GetType().Name));
67throw new InvalidOperationException(SR.Format(SR.PropertyIsInitializeOnly, "Uri", this.GetType().Name));
69throw new InvalidOperationException(SR.Format(SR.PropertyIsImmutable, "Uri", this.GetType().Name));
145throw new InvalidOperationException(SR.Format(SR.PropertyMustHaveValue, "Prefix", this.GetType().Name));
149throw new InvalidOperationException(SR.Format(SR.PropertyMustHaveValue, "Uri", this.GetType().Name));
System\Windows\Documents\DocumentStructures\SemanticBasicElement.cs (9)
81throw new ArgumentException(SR.Format(SR.DocumentStructureUnexpectedParameterType4, value.GetType(),
126throw new ArgumentException(SR.Format(SR.DocumentStructureUnexpectedParameterType1, value.GetType(),
164throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(NamedElement)), "value");
213throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(ListItemStructure)), nameof(value));
255throw new ArgumentException(SR.Format(SR.DocumentStructureUnexpectedParameterType4, value.GetType(),
308throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(TableRowGroupStructure)), "value");
350throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(TableRowStructure)), nameof(value));
393throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(TableCellStructure)), nameof(value));
437throw new ArgumentException(SR.Format(SR.DocumentStructureUnexpectedParameterType4, value.GetType(),
System\Windows\Documents\TextElement.cs (12)
805Type valueType = value.GetType();
824throw new ArgumentException(SR.Format(SR.TextSchema_ThisInlineUIContainerHasAChildUIElementAlready, this.GetType().Name, ((InlineUIContainer)this).Child.GetType().Name, value.GetType().Name));
836throw new ArgumentException(SR.Format(SR.TextSchema_ThisBlockUIContainerHasAChildUIElementAlready, this.GetType().Name, ((BlockUIContainer)this).Child.GetType().Name, value.GetType().Name));
852throw new ArgumentException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, this.GetType().Name, value.GetType().Name));
859throw new ArgumentException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, this.GetType().Name, value.GetType().Name));
899throw new InvalidOperationException(SR.Format(SR.TextSchema_TextIsNotAllowed, this.GetType().Name));
System\Windows\Documents\TextSchema.cs (13)
111bool isValidChild = IsValidChild(parent.GetType(), child.GetType());
115throw new InvalidOperationException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, parent.GetType().Name, child.GetType().Name));
142bool isValidChild = IsValidChild(parent.GetType(), childType);
146throw new InvalidOperationException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, parent.GetType().Name, childType.Name));
165return (leftElement == null || IsValidSibling(leftElement.GetType(), childType)) &&
166(rightElement == null || IsValidSibling(rightElement.GetType(), childType));
174bool isValidChild = IsValidChild(parent.GetType(), childType);
178throw new InvalidOperationException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, parent.GetType().Name, childType.Name));
624if (value1.GetType() != value2.GetType())
904throw new InvalidOperationException(SR.Format(SR.TextSchema_IllegalHyperlinkChild, nextElement.GetType()));
System\Windows\Markup\BamlRecordReader.cs (23)
1019flags = GetFlagsFromType(element.GetType());
1302short elementId = BamlMapTable.GetKnownTypeIdFromType(parent.GetType());
1608paramInfo.ParameterType != param.GetType())
1620converter.GetType(),
1642if (!paramInfo.ParameterType.IsAssignableFrom(param.GetType()))
1674converter.GetType(),
2681ThrowExceptionWithLine(SR.Format(SR.ParserCannotSetValue, element.GetType().FullName, propertyDefinition.Name, valueType.Name), e);
2923ThrowExceptionWithLine(SR.Format(SR.ParserCannotSetValue, element.GetType().FullName, propertyDefinition.AttributeInfo.Name, attribValue), e);
3060expectedType = CurrentContext.ObjectData.GetType();
3399element.GetType().ToString(), holder.PropertyDefinition.Name), e);
3501parent.GetType().FullName,
3745ThrowExceptionWithLine(SR.Format(SR.ParserCannotSetValue, currentTarget.GetType().FullName, attribInfo.Name, o), e);
3771o.GetType().FullName);
3790if (genericType != o.GetType())
3884ThrowExceptionWithLine(SR.Format(SR.ParserCannotSetValue, parentObject.GetType().FullName, memberInfo.Name, o), e);
4781ThrowException( nameof(SR.ParserCannotAddAnyChildren2), typeName, currentObject.GetType().FullName );
4799ThrowException( nameof(SR.ParserCannotAddAnyChildren2), typeName, currentObject.GetType().FullName );
4820return parent.GetType();
4881elementType = element == null ? null : element.GetType();
5023value.GetType().Name,
5024container.GetType().Name),
5116currentParentType = currentParent.GetType();
5772Type currentParentType = currentParent.GetType();
System\Windows\Media\Animation\Storyboard.cs (11)
279SR.Format(SR.Storyboard_NameNotFound, targetName, nameScopeUsed.GetType().ToString()));
321SR.Format(SR.Storyboard_NameNotFound, targetName, nameScope.GetType().ToString()));
330SR.Format(SR.Storyboard_NameNotFound, targetName, fe.GetType().ToString()));
339SR.Format(SR.Storyboard_NameNotFound, targetName, fce.GetType().ToString()));
447throw new InvalidOperationException(SR.Format(SR.Storyboard_NoTarget, currentTimeline.GetType().ToString() ));
455throw new InvalidOperationException(SR.Format(SR.Storyboard_TargetPropertyRequired, currentTimeline.GetType().ToString() ));
577$"Internal error - clockMappings table contains an unexpected object {((mappedObject == null) ? "" : mappedObject.GetType().ToString())}");
618$"Internal error - clockMappings table contains unexpected object of type{value.GetType()}");
726throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathFrozenCheckFailed, AccessorName(path, i-1), path.Path, intermediateFreezable.GetType().ToString() ));
798throw new InvalidOperationException(SR.Format(SR.Storyboard_AnimationMismatch, animationClock.Timeline.GetType(), targetProperty.Name, targetProperty.PropertyType));
947throw new InvalidOperationException(SR.Format(SR.Storyboard_ComplexPathNotSupported, targetObject.GetType().ToString()));
System\Windows\TemplateKey.cs (6)
53throw new InvalidOperationException(SR.Format(SR.PropertyMustHaveValue, "DataType", this.GetType().Name));
72throw new InvalidOperationException(SR.Format(SR.PropertyIsInitializeOnly, "DataType", this.GetType().Name));
74throw new InvalidOperationException(SR.Format(SR.PropertyIsImmutable, "DataType", this.GetType().Name));
122? string.Create(TypeConverterHelper.InvariantEnglishUS, $"{this.GetType().Name}({DataType})")
123: string.Create(TypeConverterHelper.InvariantEnglishUS, $"{this.GetType().Name}(null)");
166result = new ArgumentException(SR.Format(SR.MustBeTypeOrString, dataType.GetType().Name), argName);
PresentationFramework-SystemData (6)
PresentationFramework-SystemXmlLinq (6)
PresentationUI (6)
ReachFramework (69)
Roslyn.VisualStudio.Next.UnitTests (4)
SemanticSearch.BuildTask (1)
Shared (7)
StaticFilesAuth (1)
System.CodeDom (13)
System\CodeDom\Compiler\CodeValidator.cs (7)
62throw new ArgumentException(SR.Format(SR.InvalidElementType, e.GetType().FullName), nameof(e));
97throw new ArgumentException(SR.Format(SR.InvalidElementType, e.GetType().FullName), nameof(e));
461throw new ArgumentException(SR.Format(SR.InvalidElementType, e.GetType().FullName), nameof(e));
655string message = SR.Format(SR.InvalidTypeName, typeName, propertyName, e.GetType().FullName);
664string message = SR.Format(SR.InvalidLanguageIdentifier, identifier, propertyName, e.GetType().FullName);
779throw new ArgumentException(SR.Format(SR.InvalidElementType, e.GetType().FullName), nameof(e));
950throw new ArgumentException(SR.Format(SR.InvalidElementType, e.GetType().FullName), nameof(e));
System.Collections.Immutable (2)
System.ComponentModel.Annotations (12)
System.ComponentModel.Composition (36)
System\ComponentModel\Composition\ReflectionModel\ReflectionModelServices.cs (10)
24throw ExceptionBuilder.CreateReflectionModelInvalidPartDefinition(nameof(partDefinition), partDefinition.GetType());
37throw ExceptionBuilder.CreateReflectionModelInvalidPartDefinition(nameof(partDefinition), partDefinition.GetType());
51SR.Format(SR.ReflectionModel_InvalidExportDefinition, exportDefinition.GetType()),
66SR.Format(SR.ReflectionModel_InvalidMemberImportDefinition, importDefinition.GetType()),
81SR.Format(SR.ReflectionModel_InvalidParameterImportDefinition, importDefinition.GetType()),
97SR.Format(SR.ReflectionModel_InvalidImportDefinition, importDefinition.GetType()),
119SR.Format(SR.ReflectionModel_InvalidImportDefinition, importDefinition.GetType()),
310throw ExceptionBuilder.CreateReflectionModelInvalidPartDefinition(nameof(partDefinition), partDefinition.GetType());
420SR.Format(SR.ReflectionModel_InvalidExportDefinition, export.GetType()));
446SR.Format(SR.ReflectionModel_InvalidMemberImportDefinition, import.GetType()));
System.ComponentModel.Composition.Registration (1)
System.ComponentModel.Primitives (6)
System.ComponentModel.TypeConverter (104)
System\ComponentModel\TypeDescriptor.cs (56)
1742Type type = instance.GetType();
1853Type keyType = key as Type ?? key.GetType();
2320Type type = component.GetType();
2734Attribute? memberAttribute = member.Attributes[attribute.GetType()];
2789throw new ArgumentException(SR.Format(SR.ConvertToException, nameof(objectType), instance.GetType()), nameof(instance));
3297Type type = instance.GetType();
3446if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3448if (attrs == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetAttributes"));
3469if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3470string? name = desc.GetClassName() ?? _instance.GetType().FullName;
3491if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3512if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3514if (converter == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetConverter"));
3530return rp.GetConverterFromRegisteredType(_instance.GetType(), _instance);
3534if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3536if (converter == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetConverter"));
3557if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3577if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3599if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3619if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3621if (events == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEvents"));
3640if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptorFromRegisteredType"));
3642if (events == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEventsFromRegisteredType"));
3667if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3669if (evts == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEvents"));
3689if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3691if (properties == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties"));
3710if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3712if (properties == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties"));
3737if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3739if (properties == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties"));
3761if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3809throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3812throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetAttributes"));
3836throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3861throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3887throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3890throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetConverter"));
3914throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3917throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetConverterFromRegisteredType"));
3942throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3968throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3996throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4021throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4024throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEvents"));
4048throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptorFromRegisteredType"));
4051throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEventsFromRegisteredType"));
4076throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4079throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEvents"));
4104throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4108throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties"));
4132throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4137throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetPropertiesFromRegisteredType"));
4162throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4165throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties"));
4189throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
System.Composition.Convention (1)
System.Composition.TypedParts (5)
System.Configuration.ConfigurationManager (31)
System.Data.Common (161)
System\Data\DataColumn.cs (8)
536throw ExceptionBuilder.DefaultValueDataType(ColumnName, DefaultValue.GetType(), value, ex);
540throw ExceptionBuilder.DefaultValueDataType(ColumnName, DefaultValue.GetType(), value, ex);
690throw ExceptionBuilder.DefaultValueColumnDataType(ColumnName, newDefaultValue.GetType(), DataType, ex);
1483Type leftType = value.GetType();
1484Type rightType = _storage!.Get(record1).GetType();
1522DataColumn clone = (DataColumn)Activator.CreateInstance(GetType())!;
1630(DataStorage.IsTypeCustomType(value.GetType()) && !(value is Type));
1959Debug.Assert(null != value && DataColumn.IsAutoIncrementType(value.GetType()) && !(value is BigInteger), "unexpected value for autoincrement");
System.Data.Odbc (24)
Common\System\Data\Common\AdapterUtil.Odbc.cs (8)
302return DataAdapter(SR.GetString(SR.ADP_DeriveParametersNotSupported, value.GetType().Name, value.CommandType.ToString()));
395string message = SR.GetString(SR.ADP_ParameterConversionFailed, value.GetType().Name, destType.Name);
425return CollectionIndexInt32(index, collection.GetType(), collection.Count);
429return CollectionIndexString(parameterType, ADP.ParameterName, parameterName, collection.GetType());
433return CollectionNullValue(parameter, collection.GetType(), parameterType);
437return CollectionInvalidType(collection.GetType(), parameterType, invalidValue);
445return InvalidOperation(SR.GetString(SR.ADP_ParallelTransactionsNotSupported, obj.GetType().Name));
449return InvalidOperation(SR.GetString(SR.ADP_TransactionZombied, obj.GetType().Name));
System.Diagnostics.DiagnosticSource (8)
System\Diagnostics\Metrics\MetricsEventSource.cs (3)
465beginInstrumentMeasurements: (i, state) => Parent.BeginInstrumentReporting(sessionId, i.Meter.Name, i.Meter.Version, i.Name, i.GetType().Name, i.Unit, i.Description,
467endInstrumentMeasurements: (i, state) => Parent.EndInstrumentReporting(sessionId, i.Meter.Name, i.Meter.Version, i.Name, i.GetType().Name, i.Unit, i.Description,
469instrumentPublished: (i, state) => Parent.InstrumentPublished(sessionId, i.Meter.Name, i.Meter.Version, i.Name, i.GetType().Name, i.Unit, i.Description,
System.Diagnostics.Process (1)
System.Diagnostics.TraceSource (1)
System.Drawing.Common.Tests (23)
System\Drawing\IconConverterTests.cs (12)
39Assert.True(_icoConv.CanConvertFrom(null, _iconBytes.GetType()), "_iconBytes.GetType()");
52Assert.True(_icoConvFrmTD.CanConvertFrom(null, _iconBytes.GetType()), "TD _iconBytes.GetType()");
69Assert.True(_icoConv.CanConvertTo(null, _iconStr.GetType()), "_iconStr.GetType()");
72Assert.True(_icoConv.CanConvertTo(null, _iconBytes.GetType()), "_iconBytes.GetType()");
87Assert.True(_icoConvFrmTD.CanConvertTo(null, _iconStr.GetType()), "TD _iconStr.GetType()");
90Assert.True(_icoConvFrmTD.CanConvertTo(null, _iconBytes.GetType()), "TD _iconBytes.GetType()");
138byte[] newIconBytes = (byte[])_icoConv.ConvertTo(null, CultureInfo.InvariantCulture, _icon, _iconBytes.GetType());
141newIconBytes = (byte[])_icoConv.ConvertTo(_icon, _iconBytes.GetType());
145Assert.Throws<NotSupportedException>(() => _icoConv.ConvertTo(null, CultureInfo.InvariantCulture, _icon, _icon.GetType()));
155newIconBytes = (byte[])_icoConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture, _icon, _iconBytes.GetType());
158newIconBytes = (byte[])_icoConvFrmTD.ConvertTo(_icon, _iconBytes.GetType());
162Assert.Throws<NotSupportedException>(() => _icoConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture, _icon, _icon.GetType()));
System\Drawing\ImageConverterTests.cs (11)
63Assert.True(_imgConv.CanConvertFrom(null, _imageBytes.GetType()), "_imageBytes.GetType()");
78Assert.True(_imgConvFrmTD.CanConvertFrom(null, _imageBytes.GetType()), "TD _imageBytes.GetType()");
95Assert.True(_imgConv.CanConvertTo(null, _imageStr.GetType()), "_imageStr.GetType()");
98Assert.True(_imgConv.CanConvertTo(null, _imageBytes.GetType()), "_imageBytes.GetType()");
109Assert.True(_imgConvFrmTD.CanConvertTo(null, _imageStr.GetType()), "TD _imageStr.GetType()");
112Assert.True(_imgConvFrmTD.CanConvertTo(null, _imageBytes.GetType()), "TD _imageBytes.GetType()");
175byte[] newImageBytes = (byte[])_imgConv.ConvertTo(null, CultureInfo.InvariantCulture, _image, _imageBytes.GetType());
178newImageBytes = (byte[])_imgConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture, _image, _imageBytes.GetType());
181newImageBytes = (byte[])_imgConvFrmTD.ConvertTo(_image, _imageBytes.GetType());
198Assert.Throws<NotSupportedException>(() => _imgConv.ConvertTo(null, CultureInfo.InvariantCulture, _image, _image.GetType()));
207Assert.Throws<NotSupportedException>(() => _imgConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture, _image, _image.GetType()));
System.Formats.Asn1 (2)
System.Formats.Nrbf (1)
System.IO.Compression (16)
System.IO.IsolatedStorage (1)
System.IO.Pipelines (1)
System.Linq (2)
System.Linq.Expressions (25)
System.Linq.Queryable (2)
System.Memory.Data (4)
System.Net.Http (36)
System.Net.Http.Json (3)
System.Net.HttpListener (5)
System.Net.Mail (7)
System.Net.NameResolution (6)
System.Net.Ping (2)
System.Net.Primitives (8)
System.Net.Quic (9)
System.Net.Requests (5)
System.Net.Security (8)
System.Net.Sockets (12)
System.Net.WebClient (1)
System.Net.WebSockets (5)
System.Net.WebSockets.Client (2)
System.Numerics.Tensors (6)
System.Private.CoreLib (286)
src\libraries\System.Private.CoreLib\src\System\Tuple.cs (8)
154throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other));
274throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other));
399throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other));
534throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other));
679throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other));
834throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other));
999throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other));
1179throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other));
System.Private.DataContractSerialization (52)
System\Runtime\Serialization\ReflectionClassWriter.cs (4)
62ReflectionInternalSerialize(xmlWriter, context, memberValue, memberValue.GetType().TypeHandle.Equals(memberType.TypeHandle), writeXsiType, memberType);
77memberType = memberValue.GetType();
102ReflectionInternalSerialize(xmlWriter, context, memberValue!, memberValue!.GetType().TypeHandle.Equals(memberType.TypeHandle), writeXsiType, memberType, originValueIsNullableOfT);
154Type type = obj.GetType();
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (11)
100SerializeWithXsiType(xmlWriter, obj, obj.GetType().TypeHandle, null/*type*/, -1, declaredType.TypeHandle, declaredType);
109RuntimeTypeHandle objTypeHandle = obj.GetType().TypeHandle;
383throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.CannotSerializeObjectWithCycles, DataContract.GetClrTypeFullName(obj.GetType())));
446return obj.GetType().TypeHandle.Equals(memberType.TypeHandle);
499throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.UnknownXmlType, DataContract.GetClrTypeFullName(obj.GetType())));
517Type objType = obj.GetType();
606throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.ResolveTypeReturnedFalse, DataContract.GetClrTypeFullName(DataContractResolver.GetType()), DataContract.GetClrTypeFullName(objectType)));
616throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.ResolveTypeReturnedNull, DataContract.GetClrTypeFullName(DataContractResolver.GetType()), DataContract.GetClrTypeFullName(objectType)));
621throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.ResolveTypeReturnedNull, DataContract.GetClrTypeFullName(DataContractResolver.GetType()), DataContract.GetClrTypeFullName(objectType)));
731InternalSerialize(xmlWriter, o, false /*isDeclaredType*/, false /*writeXsiType*/, -1, o.GetType().TypeHandle);
748Type declaredType = (dataNode.DataContractName == null) ? o.GetType() : Globals.TypeOfObject;
System.Private.Uri (7)
System.Private.Windows.Core (13)
System.Private.Windows.Core.Tests (30)
System.Private.Windows.Core.TestUtilities (9)
System.Private.Xml (171)
System\Xml\Serialization\SoapReflectionImporter.cs (5)
750if (fieldTypeDesc != _typeScope.GetTypeDesc(a.SoapDefaultValue.GetType()))
751throw new InvalidOperationException(SR.Format(SR.XmlInvalidDefaultEnumValue, a.SoapDefaultValue.GetType().FullName, fieldTypeDesc.FullName));
752string strValue = Enum.Format(a.SoapDefaultValue.GetType(), a.SoapDefaultValue, "G").Replace(",", " ");
753string numValue = Enum.Format(a.SoapDefaultValue.GetType(), a.SoapDefaultValue, "D");
755throw new InvalidOperationException(SR.Format(SR.XmlInvalidDefaultValue, strValue, a.SoapDefaultValue.GetType().FullName));
System\Xml\Serialization\XmlSchemas.cs (8)
233if (ret == null || !type.IsAssignableFrom(ret.GetType()))
393throw new InvalidOperationException(SR.Format(SR.XmlSchemaIncludeLocation, this.GetType().Name, external.SchemaLocation));
528item = SR.Format(SR.XmlSchemaNamedItem, ns, o.GetType() == typeof(XmlSchemaSimpleType) ? "simpleType" : "complexType", ((XmlSchemaType)o).Name, null);
555string itemType = o is XmlSchemaImport ? "import" : o is XmlSchemaInclude ? "include" : o is XmlSchemaRedefine ? "redefine" : o.GetType().Name;
564item = SR.Format(SR.XmlSchemaNamedItem, ns, o.GetType().Name, null, details);
576XmlSerializer s = new XmlSerializer(o.GetType());
599Type type = o.GetType();
605if (item.GetType() == type && name == ItemName(item))
System\Xml\Xsl\Runtime\XmlQueryContext.cs (4)
200throw new XslTransformException(SR.XmlIl_CantResolveEntity, uriRelative, dataSource.GetType().ToString());
247return new XmlExtensionFunction(name, namespaceUri, -1, instance.GetType(), XmlQueryRuntime.LateBoundFlags).CanBind();
272XmlExtensionFunction extFunc = _extFuncsLate.Bind(name, namespaceUri, args.Length, instance.GetType(), XmlQueryRuntime.LateBoundFlags);
307if (xmlTypeFormalArg.TypeCode == XmlTypeCode.Item || !clrTypeFormalArg.IsAssignableFrom(objActualArgs[i].GetType()))
System.Private.Xml.Linq (5)
System.Reflection.Context (5)
System.Reflection.Emit (1)
System.Reflection.Metadata (20)
System.Reflection.MetadataLoadContext (1)
System.Resources.Extensions (12)
System.Resources.Writer (2)
System.Runtime.Caching (2)
System.Runtime.InteropServices (2)
System.Runtime.Serialization.Formatters (12)
System.Runtime.Serialization.Schema (1)
System.Security.Cryptography (7)
System.Security.Cryptography.Cose (1)
System.Security.Cryptography.Pkcs (1)
System.Security.Cryptography.Xml (18)
System.Security.Permissions (6)
System.ServiceModel.Http (2)
System.ServiceModel.NetFramingBase (8)
System.ServiceModel.NetTcp (4)
System.ServiceModel.Primitives (186)
Internals\System\Xml\XmlMtomReader.cs (20)
2153get { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, GetType().FullName))); }
2158get { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, GetType().FullName))); }
2159set { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, GetType().FullName))); }
2164throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, GetType().FullName)));
2174throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, GetType().FullName)));
2179throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, GetType().FullName)));
2201throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, GetType().FullName)));
2206throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, GetType().FullName)));
2211throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, GetType().FullName)));
2872get { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, stream.GetType().FullName))); }
2877get { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, stream.GetType().FullName))); }
2878set { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, stream.GetType().FullName))); }
2884throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.ReadNotSupportedOnStream, stream.GetType().FullName)));
2891throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, stream.GetType().FullName)));
2902throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.ReadNotSupportedOnStream, stream.GetType().FullName)));
2909throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, stream.GetType().FullName)));
2920throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.ReadNotSupportedOnStream, stream.GetType().FullName)));
3005throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, stream.GetType().FullName)));
3010throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, stream.GetType().FullName)));
3015throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, stream.GetType().FullName)));
System\ServiceModel\Security\IdentityVerifier.cs (4)
73SecurityTraceRecordHelper.TraceIdentityVerificationFailure(identity, authorizationContext, GetType());
229SecurityTraceRecordHelper.TraceIdentityVerificationSuccess(eventTraceActivity, identity, identity.IdentityClaim, GetType());
241SecurityTraceRecordHelper.TraceIdentityVerificationSuccess(eventTraceActivity, identity, claim, GetType());
276SecurityTraceRecordHelper.TraceIdentityVerificationFailure(identity, authContext, GetType());
System.ServiceModel.Primitives.Tests (16)
ServiceModel\ChannelFactoryTest.cs (12)
39Assert.True(typeof(IRequestChannel).GetTypeInfo().IsAssignableFrom(channel.GetType().GetTypeInfo()),
40String.Format("Channel type '{0}' was not assignable to '{1}'", channel.GetType(), typeof(IRequestChannel)));
43Assert.True(typeof(IRequestChannel).GetTypeInfo().IsAssignableFrom(channel2.GetType().GetTypeInfo()),
44String.Format("Channel type '{0}' was not assignable to '{1}'", channel2.GetType(), typeof(IRequestChannel)));
96Assert.True(typeof(IRequestChannel).GetTypeInfo().IsAssignableFrom(channel.GetType().GetTypeInfo()),
97String.Format("Channel type '{0}' was not assignable to '{1}'", channel.GetType(), typeof(IRequestChannel)));
100Assert.True(typeof(IRequestChannel).GetTypeInfo().IsAssignableFrom(channel2.GetType().GetTypeInfo()),
101String.Format("Channel type '{0}' was not assignable to '{1}'", channel2.GetType(), typeof(IRequestChannel)));
152Assert.True(typeof(IRequestChannel).GetTypeInfo().IsAssignableFrom(channel.GetType().GetTypeInfo()),
153String.Format("Channel type '{0}' was not assignable to '{1}'", channel.GetType(), typeof(IRequestChannel)));
196Assert.True(typeof(IWcfServiceGenerated).GetTypeInfo().IsAssignableFrom(channel.GetType().GetTypeInfo()),
197String.Format("Channel type '{0}' was not assignable to '{1}'", channel.GetType(), typeof(IRequestChannel)));
System.ServiceModel.Syndication (17)
System.ServiceModel.UnixDomainSocket (4)
System.Text.Encoding.CodePages (5)
System.Text.Encodings.Web (2)
System.Text.Json (18)
System.Text.RegularExpressions (1)
System.Threading.Channels (1)
System.Threading.RateLimiting (1)
System.Threading.Tasks.Dataflow (1)
System.Transactions.Local (23)
System.Web.Services.Description (96)
System.Windows.Controls.Ribbon (25)
System.Windows.Forms (235)
System.Windows.Forms.Analyzers.CSharp.Tests (2)
System.Windows.Forms.Design (169)
System.Windows.Forms.Design.Tests (78)
System.Windows.Forms.Primitives (3)
System.Windows.Forms.Primitives.TestUtilities (2)
System.Windows.Forms.Tests (52)
System.Windows.Forms.TestUtilities (1)
System.Windows.Forms.UI.IntegrationTests (3)
System.Xaml (55)
System\Xaml\XamlObjectReader.cs (18)
57var context = new SerializerContext(schemaContext, this.settings) { RootType = instance?.GetType() };
447actualKeyType = context.GetXamlType(entry.Key.GetType());
481XamlType typeOfValue = context.GetXamlType(entry.Value.GetType());
1295else if (!parameterInfo.ParameterType.IsAssignableFrom(argument.GetType()))
1297throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderInstanceDescriptorIncompatibleArgumentTypes, argument.GetType(), parameterInfo.ParameterType));
1433var valueType = value.GetType();
1588AddFactoryMethodAndValidateArguments(value.GetType(), member, arguments, context, out methodParams);
1698throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderNoDefaultConstructor, value.GetType()));
1700throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderNoMatchingConstructor, value.GetType()));
1767var xamlType = context.LocalAssemblyAwareGetXamlType(Object.GetType());
1805var type = context.LocalAssemblyAwareGetXamlType(value.GetType());
1931XamlType valueType = context.GetXamlType(value.GetType());
2017XamlType xamlType = context.LocalAssemblyAwareGetXamlType(value.GetType());
2059var xamlType = context.LocalAssemblyAwareGetXamlType(originalValue.GetType());
2509string ns = GetXamlType(obj.GetType()).PreferredXamlNamespace;
2633schemaContext.GetType(), clrType));
2691XamlType valueXamlType = context.GetXamlType(value.GetType());
2733XamlType type = GetXamlType(objectToName.GetType());
Templates.Blazor.Tests (1)
Templates.Blazor.WebAssembly.Auth.Tests (1)
Templates.Blazor.WebAssembly.Tests (1)
Templates.Mvc.Tests (1)
Templates.Tests (1)
UIAutomationClient (4)
UIAutomationClientSideProviders (119)
MS\Internal\AutomationProxies\CommonXSendMessage.cs (55)
410return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax);
417new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText),
425return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax);
439return XSend(hwnd, NativeMethods.LVM_SETITEMSTATE, new IntPtr(index), new IntPtr(&item), Marshal.SizeOf(item.GetType()));
445return XSend(hwnd, NativeMethods.LVM_SETITEMSTATE, new IntPtr(index), new IntPtr(&item32), Marshal.SizeOf(item32.GetType()));
451return XSend(hwnd, NativeMethods.LVM_SETITEMSTATE, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()));
467return XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(pItem), Marshal.SizeOf(item.GetType()), XSendMessage.ErrorValue.NoCheck);
474bool result = XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), XSendMessage.ErrorValue.NoCheck);
486bool result = XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), XSendMessage.ErrorValue.NoCheck);
507new IntPtr(group.iGroupID), new IntPtr(&group), Marshal.SizeOf(group.GetType()));
514new IntPtr(group.iGroupID), new IntPtr(&group32), Marshal.SizeOf(group32.GetType()));
521new IntPtr(group.iGroupID), new IntPtr(&group64), Marshal.SizeOf(group64.GetType()));
540new IntPtr(group.iGroupID), new IntPtr(pGroup), Marshal.SizeOf(group.GetType()));
551new IntPtr(group.iGroupID), new IntPtr(&group32), Marshal.SizeOf(group32.GetType()));
562new IntPtr(group.iGroupID), new IntPtr(&group64), Marshal.SizeOf(group64.GetType()));
585new IntPtr(group.iGroupID), new IntPtr(pGroup), Marshal.SizeOf(group.GetType()));
596new IntPtr(group.iGroupID), new IntPtr(&group32), Marshal.SizeOf(group32.GetType()));
607new IntPtr(group.iGroupID), new IntPtr(&group64), Marshal.SizeOf(group64.GetType()));
632return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item.iGroupID), new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszHeader), item.cchHeader);
644return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item32.iGroupID), new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszHeader), item32.cchHeader);
656return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item64.iGroupID), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszHeader), item64.cchHeader);
691return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item.iGroupID), new IntPtr(&item), Marshal.SizeOf(item.GetType()), textAddress, size, true);
709return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item32.iGroupID), new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), textAddress, size, true);
727return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item64.iGroupID), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), textAddress, size, true);
753return XSend(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(pItem), Marshal.SizeOf(item.GetType()));
760bool result = XSend(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(&item32), Marshal.SizeOf(item32.GetType()));
773bool result = XSend(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()));
794return GetTextWithinStructure(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax);
801new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText),
809return GetTextWithinStructure(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax);
835return XSend(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(pItem), Marshal.SizeOf(item.GetType()));
842bool result = XSend(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item32), Marshal.SizeOf(item32.GetType()));
855bool result = XSend(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()));
876return GetTextWithinStructure(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax);
884Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText), item32.cchTextMax,
891return GetTextWithinStructure(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax);
917return XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(pItem), Marshal.SizeOf(item.GetType()));
924bool result = XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType()));
937bool result = XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()));
958return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.SizeOf(item.GetType()));
964return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType()));
970return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()));
992Marshal.SizeOf(hitTestInfo.GetType()), XSendMessage.ErrorValue.Zero))
1001Marshal.SizeOf(hitTestInfo32.GetType()), XSendMessage.ErrorValue.Zero))
1010Marshal.SizeOf(hitTestInfo64.GetType()), XSendMessage.ErrorValue.Zero))
1029return GetTextWithinStructure(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax);
1037Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText), item32.cchTextMax,
1044return GetTextWithinStructure(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax);
1070return XSend(hwnd, NativeMethods.TB_GETBUTTON, new IntPtr(index), new IntPtr(pItem), Marshal.SizeOf(item.GetType()), ErrorValue.Zero);
1077bool result = XSend(hwnd, NativeMethods.TB_GETBUTTON, new IntPtr(index), new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), ErrorValue.Zero);
1090bool result = XSend(hwnd, NativeMethods.TB_GETBUTTON, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), ErrorValue.Zero);
1128Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), maxTextLength, true);
1136Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText), maxTextLength,
1145Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), maxTextLength, true);
1173int cMem = Marshal.SizeOf(rectW32.GetType());
MS\Internal\AutomationProxies\WindowsHyperlink.cs (3)
219bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType()));
402return XSendMessage.XSend(_hwnd, NativeMethods.LM_SETITEM, IntPtr.Zero, new IntPtr(&linkItem), Marshal.SizeOf(linkItem.GetType()));
499bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType()));
MS\Internal\AutomationProxies\WindowsListView.cs (7)
1276if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETITEMRECT, new IntPtr(item), new IntPtr(location), Marshal.SizeOf(itemRectangle.GetType())))
1426result = XSendMessage.XSendGetIndex(hwnd, NativeMethods.LVM_SUBITEMHITTEST, IntPtr.Zero, new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType()));
1435result = XSendMessage.XSendGetIndex(hwnd, NativeMethods.LVM_SUBITEMHITTEST, IntPtr.Zero, new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType()));
1499if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETSUBITEMRECT, new IntPtr(item), new IntPtr(location), Marshal.SizeOf(itemRectangle.GetType())))
1672scrollBarInfo.cbSize = Marshal.SizeOf(scrollBarInfo.GetType());
1683si.cbSize = Marshal.SizeOf (si.GetType ());
1800if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETITEMPOSITION, new IntPtr(item), new IntPtr(location), Marshal.SizeOf(pt.GetType())))
MS\Internal\AutomationProxies\WindowsRebar.cs (3)
208return XSendMessage.XSendGetIndex(_hwnd, NativeMethods.RB_HITTEST, IntPtr.Zero, new IntPtr(&rbHitTestInfo), Marshal.SizeOf(rbHitTestInfo.GetType()));
401if (!XSendMessage.XSend(hwnd, NativeMethods.RB_GETRECT, new IntPtr(item), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero))
435if (XSendMessage.XSend(_hwnd, NativeMethods.RB_GETBANDINFOA, new IntPtr(_item), new IntPtr(&rebarBandInfo), Marshal.SizeOf(rebarBandInfo.GetType()), XSendMessage.ErrorValue.Zero))
MS\Internal\AutomationProxies\WindowsSlider.cs (2)
464XSendMessage.XSend(hwnd, NativeMethods.TBM_GETCHANNELRECT, IntPtr.Zero, new IntPtr(&rcChannel), Marshal.SizeOf(rcChannel.GetType()), XSendMessage.ErrorValue.NoCheck);
476XSendMessage.XSend(hwnd, NativeMethods.TBM_GETTHUMBRECT, IntPtr.Zero, new IntPtr(&rcThumb), Marshal.SizeOf(rcThumb.GetType()), XSendMessage.ErrorValue.NoCheck);
MS\Internal\AutomationProxies\WindowsTab.cs (3)
281index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.TCM_HITTEST, IntPtr.Zero, new IntPtr(&hti), Marshal.SizeOf(hti.GetType()));
661result = XSendMessage.XSend(hwnd, NativeMethods.TCM_GETITEMRECT, new IntPtr(count - 1), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero);
1280if (!XSendMessage.XSend(_hwnd, NativeMethods.TCM_GETITEMRECT, new IntPtr(_item), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero))
VBCSCompiler (1)
VBCSCompiler.UnitTests (1)
WindowsFormsIntegration (3)
WinFormsControlsTest (8)
XmlFileLogger (1)
xunit.assert (45)