13 overrides of Namespace
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
366public override string? Namespace => _baseType.Namespace;
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
108public override string? Namespace => _genericType.Namespace;
src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
94public override string? Namespace => _unmodifiedType.Namespace;
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
75public abstract override string? Namespace { get; }
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
56public override string? Namespace => typeImpl.Namespace;
src\System\Reflection\Emit\RuntimeEnumBuilder.cs (1)
85public override string? Namespace => m_typeBuilder.Namespace;
src\System\Reflection\Emit\RuntimeGenericTypeParameterBuilder.cs (1)
96public override string? Namespace => null;
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (1)
655public override string? Namespace => m_strNameSpace;
src\System\RuntimeType.CoreCLR.cs (1)
3338public override string? Namespace
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
135public override string? Namespace
System.Reflection.Emit (1)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
366public override string? Namespace => _baseType.Namespace;
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Types\RoType.cs (1)
113public sealed override string? Namespace => _lazyNamespace ??= ComputeNamespace();
System.Windows.Forms.Tests (1)
System\Windows\Forms\ListBindingHelperTests.cs (1)
777public override string Namespace => throw new NotImplementedException();
258 references to Namespace
Aspire.Azure.AI.OpenAI (2)
src\Components\Common\AzureComponent.cs (2)
20protected virtual string[] ActivitySourceNames => new[] { $"{typeof(TClient).Namespace}.*" }; 22protected virtual string[] MetricSourceNames => new[] { $"{typeof(TClient).Namespace}.*" };
Aspire.Azure.Data.Tables (2)
src\Components\Common\AzureComponent.cs (2)
20protected virtual string[] ActivitySourceNames => new[] { $"{typeof(TClient).Namespace}.*" }; 22protected virtual string[] MetricSourceNames => new[] { $"{typeof(TClient).Namespace}.*" };
Aspire.Azure.Messaging.EventHubs (2)
src\Components\Common\AzureComponent.cs (2)
20protected virtual string[] ActivitySourceNames => new[] { $"{typeof(TClient).Namespace}.*" }; 22protected virtual string[] MetricSourceNames => new[] { $"{typeof(TClient).Namespace}.*" };
Aspire.Azure.Messaging.ServiceBus (2)
src\Components\Common\AzureComponent.cs (2)
20protected virtual string[] ActivitySourceNames => new[] { $"{typeof(TClient).Namespace}.*" }; 22protected virtual string[] MetricSourceNames => new[] { $"{typeof(TClient).Namespace}.*" };
Aspire.Azure.Messaging.WebPubSub (2)
src\Components\Common\AzureComponent.cs (2)
20protected virtual string[] ActivitySourceNames => new[] { $"{typeof(TClient).Namespace}.*" }; 22protected virtual string[] MetricSourceNames => new[] { $"{typeof(TClient).Namespace}.*" };
Aspire.Azure.Search.Documents (2)
src\Components\Common\AzureComponent.cs (2)
20protected virtual string[] ActivitySourceNames => new[] { $"{typeof(TClient).Namespace}.*" }; 22protected virtual string[] MetricSourceNames => new[] { $"{typeof(TClient).Namespace}.*" };
Aspire.Azure.Security.KeyVault (2)
src\Components\Common\AzureComponent.cs (2)
20protected virtual string[] ActivitySourceNames => new[] { $"{typeof(TClient).Namespace}.*" }; 22protected virtual string[] MetricSourceNames => new[] { $"{typeof(TClient).Namespace}.*" };
Aspire.Azure.Storage.Blobs (2)
src\Components\Common\AzureComponent.cs (2)
20protected virtual string[] ActivitySourceNames => new[] { $"{typeof(TClient).Namespace}.*" }; 22protected virtual string[] MetricSourceNames => new[] { $"{typeof(TClient).Namespace}.*" };
Aspire.Azure.Storage.Queues (2)
src\Components\Common\AzureComponent.cs (2)
20protected virtual string[] ActivitySourceNames => new[] { $"{typeof(TClient).Namespace}.*" }; 22protected virtual string[] MetricSourceNames => new[] { $"{typeof(TClient).Namespace}.*" };
Contract.Data.IntegrationTests (1)
DataContractTests.4.1.1.cs (1)
61get { return typeof(Manager).Namespace ?? "global"; }
dotnet-svcutil-lib (14)
FrameworkFork\Microsoft.CodeDom\System\CodeTypeReference.cs (2)
111if (!String.IsNullOrEmpty(type.Namespace)) 112_baseType = type.Namespace + "." + _baseType;
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeIdentifier.cs (1)
219string ns = t.Namespace;
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (1)
1043ns.Append(arguments[i].Namespace);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (5)
821AddImportStatement(Globals.TypeOfDataContractAttribute.Namespace, contractCodeDomInfo.CodeNamespace); 1006AddImportStatement(Globals.TypeOfKnownTypeAttribute.Namespace, contractCodeDomInfo.CodeNamespace); 1070AddImportStatement(Globals.TypeOfFlagsAttribute.Namespace, contractCodeDomInfo.CodeNamespace); 1078AddImportStatement(Globals.TypeOfDataContractAttribute.Namespace, contractCodeDomInfo.CodeNamespace); 1176AddImportStatement(Globals.TypeOfCollectionDataContractAttribute.Namespace, contractCodeDomInfo.CodeNamespace);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (5)
1673int nsLen = (type.Namespace == null) ? 0 : type.Namespace.Length; 1720string clrNs = type.Namespace; 1777return GetDefaultStableNamespace(type.Namespace); 1813return !type.GetTypeInfo().IsGenericTypeDefinition && type.GetTypeInfo().ContainsGenericParameters ? String.Format(CultureInfo.InvariantCulture, "{0}.{1}", type.Namespace, type.Name) : type.FullName;
illink (1)
InMemory.FunctionalTests (2)
src\Shared\TypeNameHelper\TypeNameHelper.cs (2)
127else if (!string.IsNullOrEmpty(type.Namespace)) 129builder.Append(type.Namespace);
Microsoft.AspNetCore.App.UnitTests (1)
TargetingPackTests.cs (1)
209return reader.StringComparer.Equals(attributeType.Namespace, typeof(ReferenceAssemblyAttribute).Namespace)
Microsoft.AspNetCore.Components.Analyzers.Tests (30)
ComponentParameterCaptureUnmatchedValuesHasWrongTypeTest.cs (3)
22using {typeof(ParameterAttribute).Namespace}; 38using {typeof(ParameterAttribute).Namespace}; 54using {typeof(ParameterAttribute).Namespace};
ComponentParameterCaptureUnmatchedValuesMustBeUniqueTest.cs (2)
19using {typeof(ParameterAttribute).Namespace}; 37using {typeof(ParameterAttribute).Namespace};
ComponentParameterSettersShouldBePublicTest.cs (4)
18using {typeof(CascadingParameterAttribute).Namespace}; 34using {typeof(ParameterAttribute).Namespace}; 50using {typeof(ParameterAttribute).Namespace}; 66using {typeof(ParameterAttribute).Namespace};
ComponentParametersShouldBePublicCodeFixProviderTest.cs (3)
34using " + typeof(ParameterAttribute).Namespace + @"; 57using " + typeof(ParameterAttribute).Namespace + @"; 72using " + typeof(ParameterAttribute).Namespace + @";
ComponentParametersShouldBePublicTest.cs (3)
18using {typeof(ParameterAttribute).Namespace}; 34using {typeof(ParameterAttribute).Namespace}; 50using {typeof(ParameterAttribute).Namespace};
ComponentParameterUsageAnalyzerTest.cs (14)
17using {typeof(ParameterAttribute).Namespace}; 35using {typeof(ParameterAttribute).Namespace}; 66using {typeof(ParameterAttribute).Namespace}; 97using {typeof(ParameterAttribute).Namespace}; 128using {typeof(ParameterAttribute).Namespace}; 159using {typeof(ParameterAttribute).Namespace}; 190using {typeof(ParameterAttribute).Namespace}; 209using {typeof(ParameterAttribute).Namespace}; 231using {typeof(ParameterAttribute).Namespace}; 253using {typeof(ParameterAttribute).Namespace}; 278using {typeof(ParameterAttribute).Namespace}; 297using {typeof(ParameterAttribute).Namespace}; 318using {typeof(ParameterAttribute).Namespace}; 339using {typeof(ParameterAttribute).Namespace};
ComponentsTestDeclarations.cs (1)
9namespace {typeof(ParameterAttribute).Namespace}
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (30)
ComponentParameterCaptureUnmatchedValuesHasWrongTypeTest.cs (3)
22using {typeof(ParameterAttribute).Namespace}; 38using {typeof(ParameterAttribute).Namespace}; 54using {typeof(ParameterAttribute).Namespace};
ComponentParameterCaptureUnmatchedValuesMustBeUniqueTest.cs (2)
19using {typeof(ParameterAttribute).Namespace}; 37using {typeof(ParameterAttribute).Namespace};
ComponentParameterSettersShouldBePublicTest.cs (4)
18using {typeof(CascadingParameterAttribute).Namespace}; 34using {typeof(ParameterAttribute).Namespace}; 50using {typeof(ParameterAttribute).Namespace}; 66using {typeof(ParameterAttribute).Namespace};
ComponentParametersShouldBePublicCodeFixProviderTest.cs (3)
34using " + typeof(ParameterAttribute).Namespace + @"; 57using " + typeof(ParameterAttribute).Namespace + @"; 72using " + typeof(ParameterAttribute).Namespace + @";
ComponentParametersShouldBePublicTest.cs (3)
18using {typeof(ParameterAttribute).Namespace}; 34using {typeof(ParameterAttribute).Namespace}; 50using {typeof(ParameterAttribute).Namespace};
ComponentParameterUsageAnalyzerTest.cs (14)
17using {typeof(ParameterAttribute).Namespace}; 35using {typeof(ParameterAttribute).Namespace}; 66using {typeof(ParameterAttribute).Namespace}; 97using {typeof(ParameterAttribute).Namespace}; 128using {typeof(ParameterAttribute).Namespace}; 159using {typeof(ParameterAttribute).Namespace}; 190using {typeof(ParameterAttribute).Namespace}; 209using {typeof(ParameterAttribute).Namespace}; 231using {typeof(ParameterAttribute).Namespace}; 253using {typeof(ParameterAttribute).Namespace}; 278using {typeof(ParameterAttribute).Namespace}; 297using {typeof(ParameterAttribute).Namespace}; 318using {typeof(ParameterAttribute).Namespace}; 339using {typeof(ParameterAttribute).Namespace};
ComponentsTestDeclarations.cs (1)
9namespace {typeof(ParameterAttribute).Namespace}
Microsoft.AspNetCore.Diagnostics (2)
src\Shared\TypeNameHelper\TypeNameHelper.cs (2)
127else if (!string.IsNullOrEmpty(type.Namespace)) 129builder.Append(type.Namespace);
Microsoft.AspNetCore.Hosting (2)
src\Shared\TypeNameHelper\TypeNameHelper.cs (2)
127else if (!string.IsNullOrEmpty(type.Namespace)) 129builder.Append(type.Namespace);
Microsoft.AspNetCore.Http.Extensions (4)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorFSharpSupport.cs (2)
255&& string.Equals(type1.Namespace, type2.Namespace, StringComparison.Ordinal)
src\Shared\TypeNameHelper\TypeNameHelper.cs (2)
127else if (!string.IsNullOrEmpty(type.Namespace)) 129builder.Append(type.Namespace);
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (2)
src\Identity\test\Shared\ApiConsistencyTestBase.cs (2)
18&& type.Namespace != null 19&& !type.Namespace.EndsWith(".Compiled", StringComparison.Ordinal)
Microsoft.AspNetCore.Identity.InMemory.Test (2)
src\Identity\test\Shared\ApiConsistencyTestBase.cs (2)
18&& type.Namespace != null 19&& !type.Namespace.EndsWith(".Compiled", StringComparison.Ordinal)
Microsoft.AspNetCore.Identity.Test (2)
src\Identity\test\Shared\ApiConsistencyTestBase.cs (2)
18&& type.Namespace != null 19&& !type.Namespace.EndsWith(".Compiled", StringComparison.Ordinal)
Microsoft.AspNetCore.InternalTesting (2)
src\Shared\TaskExtensions.cs (2)
90catch (TimeoutException ex) when (ex.Source == typeof(TaskExtensions).Namespace) 125catch (TimeoutException ex) when (ex.Source == typeof(TaskExtensions).Namespace)
Microsoft.AspNetCore.Mvc.Abstractions (2)
src\Shared\TypeNameHelper\TypeNameHelper.cs (2)
127else if (!string.IsNullOrEmpty(type.Namespace)) 129builder.Append(type.Namespace);
Microsoft.AspNetCore.Mvc.Core (2)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorFSharpSupport.cs (2)
255&& string.Equals(type1.Namespace, type2.Namespace, StringComparison.Ordinal)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
LinkTagHelper.cs (1)
37typeof(LinkTagHelper).Namespace + ".compiler.resources.LinkTagHelper_FallbackJavaScript.js";
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
ViewComponents\ViewComponentConventions.cs (2)
63if (string.IsNullOrEmpty(componentType.Namespace)) 69return componentType.Namespace + "." + shortName;
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
ViewComponents\DefaultViewComponentSelectorTest.cs (1)
11private static readonly string Namespace = typeof(DefaultViewComponentSelectorTest).Namespace;
Microsoft.AspNetCore.OpenApi (4)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorFSharpSupport.cs (2)
255&& string.Equals(type1.Namespace, type2.Namespace, StringComparison.Ordinal)
src\Shared\TypeNameHelper\TypeNameHelper.cs (2)
127else if (!string.IsNullOrEmpty(type.Namespace)) 129builder.Append(type.Namespace);
Microsoft.AspNetCore.Server.IIS (2)
src\Shared\TypeNameHelper\TypeNameHelper.cs (2)
127else if (!string.IsNullOrEmpty(type.Namespace)) 129builder.Append(type.Namespace);
Microsoft.AspNetCore.Shared.Tests (4)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorFSharpSupport.cs (2)
255&& string.Equals(type1.Namespace, type2.Namespace, StringComparison.Ordinal)
src\Shared\TypeNameHelper\TypeNameHelper.cs (2)
127else if (!string.IsNullOrEmpty(type.Namespace)) 129builder.Append(type.Namespace);
Microsoft.AspNetCore.SignalR.Core (2)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorFSharpSupport.cs (2)
255&& string.Equals(type1.Namespace, type2.Namespace, StringComparison.Ordinal)
Microsoft.AspNetCore.SignalR.Specification.Tests (2)
src\Shared\TaskExtensions.cs (2)
90catch (TimeoutException ex) when (ex.Source == typeof(TaskExtensions).Namespace) 125catch (TimeoutException ex) when (ex.Source == typeof(TaskExtensions).Namespace)
Microsoft.Build.Tasks.Core (4)
BootstrapperUtil\BootstrapperBuilder.cs (1)
1985Stream s = a.GetManifestResourceStream(String.Format(CultureInfo.InvariantCulture, "{0}.{1}", typeof(BootstrapperBuilder).Namespace, name));
ManifestUtil\ManifestReader.cs (1)
237string ns = typeof(Util).Namespace;
ManifestUtil\Util.cs (1)
219Stream s = a.GetManifestResourceStream(String.Format(CultureInfo.InvariantCulture, "{0}.{1}", typeof(Util).Namespace, name));
ManifestUtil\XmlUtil.cs (1)
156s = a.GetManifestResourceStream(String.Format(CultureInfo.InvariantCulture, "{0}.{1}", typeof(Util).Namespace, filename));
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
262if (peModule.IsTargetAttribute(customAttrHandle, attributeType.Namespace!, attributeType.Name, ctor: out _))
Microsoft.CodeAnalysis.CSharp (2)
Compilation\CSharpCompilation.cs (1)
1794MetadataTypeName mdName = MetadataTypeName.FromNamespaceAndTypeName(HostObjectType.Namespace ?? String.Empty,
Symbols\AssemblySymbol.cs (1)
838typeInfo.Namespace ?? string.Empty,
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Debugger\MemberInfo\TypeImpl.cs (1)
98get { return Type.Namespace; }
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Options\OptionsTestInfo.cs (1)
62var accessorNamespace = type.Namespace;
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
Remote\ServiceDescriptorTests.cs (4)
88if (type.Namespace == typeof(ImmutableArray<>).Namespace || 90type.Namespace == "System" && type.Name.StartsWith("ValueTuple", StringComparison.Ordinal) || 91type.Namespace == "System" && type.Name.StartsWith("Tuple", StringComparison.Ordinal))
Microsoft.CSharp (3)
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Property.cs (1)
53types.Any(type => type.Name == "IsExternalInit" && !type.IsNested && type.Namespace == "System.Runtime.CompilerServices");
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (2)
766if (callingType.Namespace != null) 768callChain.InsertRange(0, callingType.Namespace.Split('.'));
Microsoft.Data.Analysis.Interactive (1)
DataFrameKernelExtension.cs (1)
32using {typeof(TabularDataResource).Namespace};"));
Microsoft.DotNet.Build.Tasks.Workloads (1)
EmbeddedTemplates.cs (1)
66string ns = MethodBase.GetCurrentMethod().DeclaringType.Namespace;
Microsoft.Extensions.AI.Abstractions (4)
src\Shared\JsonSchemaExporter\NullabilityInfoContext\NullabilityInfoContext.cs (4)
51attribute.AttributeType.Namespace == CompilerServicesNameSpace && 152if (attribute.AttributeType.Namespace == "System.Diagnostics.CodeAnalysis") 306attribute.AttributeType.Namespace == CompilerServicesNameSpace && 398attribute.AttributeType.Namespace == CompilerServicesNameSpace &&
Microsoft.Extensions.DependencyInjection (2)
src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (2)
143else if (!string.IsNullOrEmpty(type.Namespace)) 145builder.Append(type.Namespace);
Microsoft.Extensions.Diagnostics.Abstractions (2)
src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (2)
143else if (!string.IsNullOrEmpty(type.Namespace)) 145builder.Append(type.Namespace);
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
EmbeddedFileProviderTests.cs (1)
14private static readonly string Namespace = typeof(EmbeddedFileProviderTests).Namespace;
Microsoft.Extensions.Http (2)
src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (2)
143else if (!string.IsNullOrEmpty(type.Namespace)) 145builder.Append(type.Namespace);
Microsoft.Extensions.Logging.Abstractions (2)
src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (2)
143else if (!string.IsNullOrEmpty(type.Namespace)) 145builder.Append(type.Namespace);
Microsoft.ML.AutoML.Interactive (1)
AutoMLMonitorKernelExtension.cs (1)
42using {typeof(NotebookMonitor).Namespace};"));
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\NewLateBinding.vb (1)
1273If customModifierType.Name = "IsExternalInit" AndAlso Not customModifierType.IsNested AndAlso customModifierType.Namespace = "System.Runtime.CompilerServices" Then
Mvc.Api.Analyzers.Test (2)
ActualApiResponseMetadataFactoryTest.cs (1)
15private static readonly string Namespace = typeof(ActualApiResponseMetadataFactoryTest).Namespace;
SymbolApiResponseMetadataProviderTest.cs (1)
11private static readonly string Namespace = typeof(SymbolApiResponseMetadataProviderTest).Namespace;
PresentationBuildTasks (5)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
2355string genericName = t.Namespace + DOT + t.Name;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlMapTable.cs (2)
129if (probeType.Namespace == clrNamespace) 161return GetKnownTypeIdFromName(type.Assembly.FullName, type.Namespace, type.Name);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (2)
776string fullName = owner.IsGenericType ? $"{owner.Namespace}.{owner.Name}" : owner.FullName; 2989ClrNamespace = type.Namespace
PresentationFramework (15)
MS\Internal\WindowsRuntime\Generated\WinRT.cs (1)
273public ActivationFactory() : base(typeof(T).Namespace, typeof(T).FullName) { }
System\Windows\Documents\TextRangeSerialization.cs (2)
572string nameSpace = $"clr-namespace:{elementTypeStandardized.Namespace};assembly={assembly}"; 573string prefix = elementTypeStandardized.Namespace;
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (1)
547bamlType.ClrNamespace = type.Namespace;
System\Windows\Markup\BamlMapTable.cs (2)
125if (probeType.Namespace == clrNamespace 161return GetKnownTypeIdFromName(type.Assembly.FullName, type.Namespace, type.Name);
System\Windows\Markup\BamlReader.cs (1)
1049string xmlns = _parserContext.XamlTypeMapper.GetXmlNamespace(declaringType.Namespace,
System\Windows\Markup\Primitives\MarkupWriter.cs (3)
1611if (type.Namespace == null) 1618if (!namespaceToUri.TryGetValue(type.Namespace, out result)) 1620result = $"{clrUriPrefix}{type.Namespace};assembly={ReflectionUtils.GetAssemblyPartialName(type.Assembly)}";
System\Windows\Markup\RestrictiveXamlXmlReader.cs (3)
196bool isValidNamespace = type.Namespace != null && (type.Namespace.Equals("System.Windows", StringComparison.Ordinal) || type.Namespace.StartsWith("System.Windows.", StringComparison.Ordinal));
System\Windows\Markup\XamlTypeMapper.cs (2)
776string fullName = owner.IsGenericType ? $"{owner.Namespace}.{owner.Name}" : owner.FullName; 2989ClrNamespace = type.Namespace
ReachFramework (1)
Serialization\Manager\ReachNamespaceInfo.cs (1)
25this(type.Namespace, prefix, xmlNamespace)
System.CodeDom (2)
src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (2)
97if (!string.IsNullOrEmpty(type.Namespace)) 99_baseType = type.Namespace + "." + _baseType;
System.ComponentModel.Composition (2)
System\ComponentModel\Composition\ContractNameServices.cs (2)
111if (!string.IsNullOrEmpty(type.Namespace)) 113typeName.Append(type.Namespace);
System.Configuration.ConfigurationManager (1)
System\Configuration\ClientConfigPaths.cs (1)
328if (mainType != null) ns = mainType.Namespace;
System.Private.CoreLib (17)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (2)
3088attributeType.Namespace!.EndsWith("Diagnostics.Tracing", StringComparison.Ordinal) && 3089reflectedAttributeType.Namespace!.EndsWith("Diagnostics.Tracing", StringComparison.Ordinal);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
366public override string? Namespace => _baseType.Namespace;
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
108public override string? Namespace => _genericType.Namespace;
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeNameBuilder.cs (2)
283if (i == nestings.Count - 1 && !string.IsNullOrEmpty(enclosingType.Namespace)) 284name = enclosingType.Namespace + "." + name;
src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
94public override string? Namespace => _unmodifiedType.Namespace;
src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (4)
45attribute.AttributeType.Namespace == CompilerServicesNameSpace && 150if (attribute.AttributeType.Namespace == "System.Diagnostics.CodeAnalysis") 320attribute.AttributeType.Namespace == CompilerServicesNameSpace && 412attribute.AttributeType.Namespace == CompilerServicesNameSpace &&
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureConstructedGenericType.cs (1)
60public sealed override string? Namespace => _genericTypeDefinition.Namespace;
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
56public override string? Namespace => typeImpl.Namespace;
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceManager.cs (1)
229string? nameSpace = resourceSource.Namespace;
src\System\Diagnostics\StackTrace.CoreCLR.cs (1)
34string? ns = t.Namespace;
src\System\Reflection\RuntimeAssembly.cs (1)
288string? nameSpace = type?.Namespace;
src\System\RuntimeType.CoreCLR.cs (1)
2231if (ns != null && ns != type.Namespace)
System.Private.DataContractSerialization (9)
src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (2)
97if (!string.IsNullOrEmpty(type.Namespace)) 99_baseType = type.Namespace + "." + _baseType;
System\Runtime\Serialization\DataContract.cs (5)
1470int nsLen = (type.Namespace == null) ? 0 : type.Namespace.Length; 1517string? clrNs = type.Namespace ?? string.Empty; 1575return GetDefaultXmlNamespace(type.Namespace); 1675return !type.IsGenericTypeDefinition && type.ContainsGenericParameters ? type.Namespace + "." + type.Name : type.FullName!;
System\Runtime\Serialization\SchemaExporter.cs (2)
275int nsLen = (clrType.Namespace == null) ? 0 : clrType.Namespace.Length;
System.Private.Windows.Core (2)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
766new ClassInfo(1, $"{typeof(IJsonData).Namespace}.JsonData", [$"<{nameof(jsonData.JsonBytes)}>k__BackingField", $"<{nameof(jsonData.InnerTypeAssemblyQualifiedName)}>k__BackingField"]),
System\TypeExtensions.cs (1)
267return $"{type.Namespace}.{type.Name}[{string.Join(",", genericTypeNames)}]";
System.Private.Xml (2)
System\Xml\Serialization\CodeIdentifier.cs (1)
229string? ns = t.Namespace;
System\Xml\Serialization\Types.cs (1)
994ns.Append(arguments[i].Namespace);
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
137get { return _typeInfo.Namespace; }
System.Reflection.Emit (4)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
366public override string? Namespace => _baseType.Namespace;
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeNameBuilder.cs (2)
283if (i == nestings.Count - 1 && !string.IsNullOrEmpty(enclosingType.Namespace)) 284name = enclosingType.Namespace + "." + name;
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
708typeHandle = AddTypeReference(GetAssemblyReference(type.Assembly), type.Namespace, type.Name);
System.Reflection.MetadataLoadContext (4)
System\Reflection\TypeLoading\Assemblies\RoAssembly.cs (1)
185string? ns = type.Namespace;
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.cs (1)
46return declaringType.Namespace;
System\Reflection\TypeLoading\Types\RoGenericParameterType.cs (1)
34protected sealed override string? ComputeNamespace() => DeclaringType!.Namespace;
System\Reflection\TypeLoading\Types\RoType.GetInterface.cs (1)
33if (ns.Length != 0 && !ns.Equals(ifc.Namespace))
System.Runtime.Serialization.Schema (7)
System\Runtime\Serialization\Schema\CodeExporter.cs (7)
773AddImportStatement(typeof(SerializableAttribute).Namespace, contractCodeDomInfo.CodeNamespace); 804AddImportStatement(typeof(DataContractAttribute).Namespace, contractCodeDomInfo.CodeNamespace); 1001AddImportStatement(typeof(KnownTypeAttribute).Namespace, contractCodeDomInfo.CodeNamespace); 1077AddImportStatement(typeof(FlagsAttribute).Namespace, contractCodeDomInfo.CodeNamespace); 1085AddImportStatement(typeof(DataContractAttribute).Namespace, contractCodeDomInfo.CodeNamespace); 1256AddImportStatement(typeof(CollectionDataContractAttribute).Namespace, contractCodeDomInfo.CodeNamespace); 1436return !type.IsGenericTypeDefinition && type.ContainsGenericParameters ? type.Namespace + "." + type.Name : type.FullName!;
System.ServiceModel.NetNamedPipe.Tests (1)
NetNamedPipeBindingTest.cs (1)
20.GetType(typeof(NamedPipeTransportBindingElement).Namespace + ".PipeUri");
System.ServiceModel.Primitives.Tests (1)
Security\SecurityUtilsTest.cs (1)
18.GetType(typeof(WindowsClientCredential).Namespace + ".SecurityUtils");
System.Windows.Forms (4)
System\Windows\Forms\Application.cs (2)
200string? ns = type.Namespace; 481string? ns = type.Namespace;
System\Windows\Forms\Control.ControlVersionInfo.cs (2)
50string? ns = _owner.GetType().Namespace; 97string? ns = _owner.GetType().Namespace;
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\BaseContextMenuStrip.cs (2)
263private static readonly string s_systemWindowsFormsNamespace = typeof(ToolStripItem).Namespace!; 298if (_itemType.Namespace == s_systemWindowsFormsNamespace)
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (2)
33private static readonly string s_systemWindowsFormsNamespace = typeof(ToolStripItem).Namespace; 150if (itemType.Namespace == s_systemWindowsFormsNamespace)
System.Xaml (6)
System\Xaml\Schema\XamlNamespace.cs (1)
224if (!KS.Eq(t.Namespace, clrPrefix))
System\Xaml\XamlSchemaContext.cs (2)
934IList<string> clrBoundNamespaces = GetXmlNsMappings(clrType.Assembly, clrType.Namespace); 942return GetXmlNsMappings(clrType.Assembly, clrType.Namespace);
System\Xaml\XamlType.cs (3)
1465sb.Append(UnderlyingTypeInternal.Value.Namespace); 1645&& UnderlyingType.Namespace == typeof(Nullable<>).Namespace);