10 overrides of Module
System.Private.CoreLib (6)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
320public override Module Module
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
72public override Module Module => _genericType.Module;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
90public override Module Module => _unmodifiedType.Module;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
86public sealed override Module Module => throw new NotSupportedException(SR.NotSupported_SignatureType);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
51public override Module Module => typeImpl.Module;
System\RuntimeType.NativeAot.cs (1)
852public override Module Module => GetRuntimeTypeInfo().Module;
System.Private.Reflection.Execution (1)
Internal\Reflection\Execution\TypeLoader\ConstraintValidatorSupport.cs (1)
178public override Module Module { get { Debug.Assert(false); throw NotImplemented.ByDesign; } }
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
125public override Module Module
System.Reflection.Emit (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
320public override Module Module
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Types\RoType.cs (1)
131public sealed override Module Module => GetRoModule();
82 references to Module
dotnet-svcutil-lib (5)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (1)
151s_serializationModule = typeof(CodeGenerator).GetTypeInfo().Module; // could to be replaced by different dll that has SkipVerification set to false
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (3)
1723string ns = GetGlobalDataContractNamespace(clrNs, type.GetTypeInfo().Module.GetCustomAttributes(typeof(ContractNamespaceAttribute)).ToArray()); 2270return (type.GetTypeInfo().Module.Equals(typeof(DataContract).GetTypeInfo().Module) || IsAssemblyFriendOfSerialization(type.GetTypeInfo().Assembly)) && !type.GetTypeInfo().IsNestedPrivate;
TypeLoader.cs (1)
102type.Module.GetCustomAttributes(typeof(ContractNamespaceAttribute));
Microsoft.Build.Tasks.Core (3)
ManifestUtil\SecurityUtil.cs (2)
568System.Resources.ResourceManager resources = new System.Resources.ResourceManager("Microsoft.Build.Tasks.Core.Strings.ManifestUtilities", typeof(SecurityUtilities).Module.Assembly); 652System.Resources.ResourceManager resources = new System.Resources.ResourceManager("Microsoft.Build.Tasks.Core.Strings.ManifestUtilities", typeof(SecurityUtilities).Module.Assembly);
ManifestUtil\TrustInfo.cs (1)
246System.Resources.ResourceManager resources = new System.Resources.ResourceManager("Microsoft.Build.Tasks.Core.Strings.ManifestUtilities", typeof(SecurityUtilities).Module.Assembly);
Microsoft.Extensions.AI.Tests (1)
Functions\AIFunctionFactoryTest.cs (1)
1659typeof(AIFunctionFactoryTest).Module);
Microsoft.Extensions.Diagnostics.Testing (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (2)
783Module? temp119 = instance.Module; 964Module? temp159 = instance.Module;
Microsoft.Maui.Controls.Xaml (1)
XamlCompilationAttribute.cs (1)
32 attr = type.Module.GetCustomAttribute<XamlCompilationAttribute>();
Microsoft.ML.Maml (1)
MAML.cs (1)
57string currentDirectory = Path.GetDirectoryName(typeof(Maml).Module.FullyQualifiedName);
Microsoft.ML.ResultProcessor (1)
ResultProcessor.cs (1)
1005string currentDirectory = Path.GetDirectoryName(typeof(ResultProcessor).Module.FullyQualifiedName);
Microsoft.ML.Sweeper (2)
ConfigRunner.cs (1)
107string currentDirectory = Path.GetDirectoryName(typeof(ExeConfigRunnerBase).Module.FullyQualifiedName);
SweepCommand.cs (1)
49public static readonly string LocalExePath = Path.GetDirectoryName(typeof(SweepCommand).Module.FullyQualifiedName);
Microsoft.VisualStudio.TestPlatform.Common (1)
ExtensionFramework\Utilities\TestExtensionPluginInformation.cs (1)
83EqtTrace.Error("The type \"{0}\" defined in \"{1}\" does not have ExtensionUri attribute.", testLoggerType.ToString(), testLoggerType.Module.Name);
PresentationFramework (7)
System\Windows\Documents\TextRangeSerialization.cs (3)
569int index = elementTypeStandardized.Module.Name.LastIndexOf('.'); 570string assembly = (index == -1 ? elementTypeStandardized.Module.Name : elementTypeStandardized.Module.Name.Substring(0, index));
System\Windows\Documents\TextSchema.cs (4)
269return elementType.Module == typeof(System.Windows.Documents.TextElement).Module || // presentationframework 270elementType.Module == typeof(System.Windows.UIElement).Module; // presentationcore
System.ComponentModel.TypeConverter (3)
System\ComponentModel\LicFileLicenseProvider.cs (1)
79modulePath ??= type.Module.FullyQualifiedName;
System\ComponentModel\ReflectTypeDescriptionProvider.cs (1)
863if (kvp.Key.Module == module && kvp.Value!.IsPopulated)
System\ComponentModel\TypeDescriptor.cs (1)
2477if (nodeType != null && nodeType.Module.Equals(module) || nodeType == typeof(object))
System.Drawing.Common (3)
System\Drawing\Bitmap.cs (1)
80return type.Module.Assembly.GetManifestResourceStream(type, resource)
System\Drawing\BitmapSelector.cs (1)
42return GetResourceStream(type.Module.Assembly, type, originalName);
System\Drawing\Icon.cs (1)
99Stream? stream = type.Module.Assembly.GetManifestResourceStream(type, resource)
System.Private.CoreLib (15)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.cs (2)
69if (assembly != typeof(object).Module.Assembly) 87if (assembly != typeof(object).Module.Assembly)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
213return type.Module?.Assembly;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodOnTypeBuilderInstantiation.cs (1)
47return (MethodInfo)t.Module.ResolveMethod(info.MetadataToken)!;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
328return baseType.Module;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
72public override Module Module => _genericType.Module;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeNameBuilder.cs (1)
310AddAssemblySpec(type.Module.Assembly.FullName!);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\MemberInfo.cs (1)
26return type.Module;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
90public override Module Module => _unmodifiedType.Module;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
51public override Module Module => typeImpl.Module;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\SerializationInfo.cs (2)
37_rootTypeAssemblyName = type.Module.Assembly.FullName!; 90_rootTypeAssemblyName = type.Module.Assembly.FullName!;
System\Delegate.cs (1)
277return new DiagnosticMethodInfo("Invoke", t.FullName, t.Module.Assembly.FullName);
System\Reflection\Runtime\MethodInfos\RuntimeConstructorInfo.cs (1)
106return DeclaringType.Module;
System\RuntimeTypeHandle.cs (1)
90return type.Module.ModuleHandle;
System.Private.DataContractSerialization (6)
System\Runtime\Serialization\CodeGenerator.cs (1)
97private static Module SerializationModule => field ??= typeof(CodeGenerator).Module; // could to be replaced by different dll that has SkipVerification set to false
System\Runtime\Serialization\DataContract.cs (3)
1544GetGlobalDataContractNamespace(clrNs, type.Module.GetCustomAttributes<ContractNamespaceAttribute>().ToArray()) ?? 2222return (type.Module.Equals(typeof(DataContract).Module) || IsAssemblyFriendOfSerialization(type.Assembly)) && !type.IsNestedPrivate;
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (1)
186DynamicMethod dynamicMethod = new DynamicMethod(methodName, signature.ReturnType, paramTypes, typeof(JsonFormatReaderGenerator).Module, allowPrivateMemberAccess);
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (1)
121DynamicMethod dynamicMethod = new DynamicMethod(methodName, signature.ReturnType, paramTypes, typeof(JsonFormatWriterGenerator).Module, allowPrivateMemberAccess);
System.Private.Xml (1)
System\Xml\Serialization\Compiler.cs (1)
63Module module = type.Module;
System.Reflection.Context (3)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
127get { return _typeInfo.Module; }
System\Reflection\Context\Virtual\VirtualMethodBase.cs (1)
48get { return DeclaringType!.Module; }
System\Reflection\Context\Virtual\VirtualPropertyBase.cs (1)
74get { return DeclaringType!.Module; }
System.Reflection.Emit (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
328return baseType.Module;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeNameBuilder.cs (1)
310AddAssemblySpec(type.Module.Assembly.FullName!);
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Modules\RoModule.cs (1)
102if (type.Module != this)
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\FormatterServices.cs (1)
58throw new SerializationException(SR.Format(SR.Serialization_NonSerType, parentType.FullName, parentType.Module.Assembly.FullName));
System.Security.Permissions (1)
System\Security\Permissions\PrincipalPermission.cs (1)
256root.AddAttribute("class", typename + ", " + GetType().Module.Assembly.FullName.Replace('\"', '\''));
System.Text.Json (11)
System\Text\Json\Serialization\Metadata\ReflectionEmitMemberAccessor.cs (11)
40typeof(ReflectionEmitMemberAccessor).Module, 89typeof(ReflectionEmitMemberAccessor).Module, 202typeof(ReflectionEmitMemberAccessor).Module, 259typeof(ReflectionEmitMemberAccessor).Module, 348typeof(ReflectionEmitMemberAccessor).Module, 373typeof(ReflectionEmitMemberAccessor).Module, 397typeof(ReflectionEmitMemberAccessor).Module, 629typeof(ReflectionEmitMemberAccessor).Module, 701typeof(ReflectionEmitMemberAccessor).Module, 709typeof(ReflectionEmitMemberAccessor).Module, 717typeof(ReflectionEmitMemberAccessor).Module,
System.Windows.Forms (8)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
1449eventInterface = controlType.Module.Assembly.GetType(eventName, throwOnError: false);
System\Windows\Forms\Application.cs (2)
1113Module module = typeof(Application).Module; 1286? FileVersionInfo.GetVersionInfo(type.Module.FullyQualifiedName)
System\Windows\Forms\Control.ControlVersionInfo.cs (4)
33object[] attrs = _owner.GetType().Module.Assembly.GetCustomAttributes(typeof(AssemblyCompanyAttribute), false); 80object[] attrs = _owner.GetType().Module.Assembly.GetCustomAttributes(typeof(AssemblyProductAttribute), false); 128object[] attrs = _owner.GetType().Module.Assembly.GetCustomAttributes(typeof(AssemblyInformationalVersionAttribute), false); 163string path = _owner.GetType().Module.FullyQualifiedName;
System\Windows\Forms\Input\Cursor.cs (1)
84: this(type.OrThrowIfNull().Module.Assembly.GetManifestResourceStream(type, resource)!)
System.Windows.Forms.Design (2)
System\Drawing\BitmapSelector.cs (1)
109Assembly assembly = type.Module.Assembly;
System\Drawing\Design\ColorEditor.CustomColorDialog.cs (1)
15private static readonly Assembly s_assembly = typeof(ColorEditor).Module.Assembly;
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Internals\ScaleHelper.cs (1)
404using Stream stream = type.Module.Assembly.GetManifestResourceStream(type, resource)