27 instantiations of MissingMethodException
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Compilation.cs (1)
111MissingMethodException missingMethod = new MissingMethodException(string.Format("{0}:{1}", type.FullName, methodName));
Microsoft.AspNetCore.Http.Extensions (1)
src\Shared\ParameterBindingMethodCache.cs (1)
526throw new MissingMethodException("No suitable System.Enum.TryParse method found.");
Microsoft.AspNetCore.Mvc.Abstractions (1)
src\Shared\ParameterBindingMethodCache.cs (1)
526throw new MissingMethodException("No suitable System.Enum.TryParse method found.");
Microsoft.AspNetCore.OpenApi (1)
src\Shared\ParameterBindingMethodCache.cs (1)
526throw new MissingMethodException("No suitable System.Enum.TryParse method found.");
Microsoft.Build (1)
Evaluation\Expander.cs (1)
4333throw new TargetInvocationException(new MissingMethodException());
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\CompilerServices\VBBinder.vb (2)
2263Throw New MissingMethodException 2279Throw New MissingMethodException
PresentationFramework (2)
MS\Internal\Interop\InternalDispatchObject.cs (1)
128throw new MissingMethodException(GetType().Name, name);
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (1)
937throw new MissingMethodException();
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\CatalogReflectionContextAttribute.cs (1)
40throw new MissingMethodException(SR.ReflectionContext_Requires_DefaultConstructor, missingMethodException);
System.Private.CoreLib (14)
src\libraries\System.Private.CoreLib\src\Internal\Runtime\InteropServices\ComponentActivator.cs (1)
341throw new MissingMethodException(typeName, methodName);
src\libraries\System.Private.CoreLib\src\System\AppDomain.cs (1)
138throw new MissingMethodException(SR.Arg_EntryPointNotFoundException);
src\libraries\System.Private.CoreLib\src\System\DefaultBinder.cs (1)
296throw new MissingMethodException(SR.MissingMember);
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (1)
181throw new MissingMethodException(readerType.FullName, "GetAssemblyName");
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (2)
674throw new MissingMethodException(FullName, name); 684throw new MissingMethodException(FullName, name);
src\libraries\System.Private.CoreLib\src\System\StartupHookProvider.cs (1)
189throw new MissingMethodException(StartupHookTypeName, InitializeMethodName);
src\System\RuntimeType.ActivatorCache.cs (1)
69case MissingMethodException: throw new MissingMethodException(friendlyMessage);
src\System\RuntimeType.CoreCLR.cs (6)
3893throw new MissingMethodException(SR.Format(SR.MissingConstructor_Name, FullName)); 3912throw new MissingMethodException(SR.Format(SR.MissingConstructor_Name, FullName), innerMME); 3917throw new MissingMethodException(SR.Format(SR.MissingConstructor_Name, FullName)); 3974throw new MissingMethodException(SR.Format(SR.Arg_NoDefCTor, this)); 4003throw new MissingMethodException(SR.Format(SR.Arg_NoDefCTor, this)); 4031throw new MissingMethodException(SR.Format(SR.Arg_NoDefCTor, this));
System.Private.Xml (1)
System\Xml\Serialization\Compilation.cs (1)
535MissingMethodException missingMethod = new MissingMethodException($"{type.FullName}::{methodName}");
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeData.cs (1)
79throw new MissingMethodException(SR.Format(SR.MissingCustomAttributeConstructor, declaringType));
System.Xaml (1)
System\Xaml\Schema\XamlTypeInvoker.cs (1)
314throw new MissingMethodException(SR.Format(SR.NoDefaultConstructor, underlyingType.FullName));
65 references to MissingMethodException
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Compilation.cs (1)
111MissingMethodException missingMethod = new MissingMethodException(string.Format("{0}:{1}", type.FullName, methodName));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationFormatter.cs (1)
165catch (MissingMethodException mme)
Microsoft.Build (2)
Evaluation\Expander.cs (1)
3632catch (MissingMethodException ex) when ((_bindingFlags & BindingFlags.InvokeMethod) == BindingFlags.InvokeMethod)
ExceptionHandling.cs (1)
250|| e is MissingMethodException // thrown when code in a dependent assembly attempts to access a missing method in an assembly that was modified
Microsoft.Build.Engine.OM.UnitTests (1)
ExceptionHandling.cs (1)
250|| e is MissingMethodException // thrown when code in a dependent assembly attempts to access a missing method in an assembly that was modified
Microsoft.Build.Engine.UnitTests (1)
BackEnd\SdkResolverLoader_Tests.cs (1)
176exception.InnerException.ShouldBeOfType<MissingMethodException>();
Microsoft.Build.Tasks.Core (1)
ExceptionHandling.cs (1)
250|| e is MissingMethodException // thrown when code in a dependent assembly attempts to access a missing method in an assembly that was modified
Microsoft.Build.Utilities.Core (1)
ExceptionHandling.cs (1)
250|| e is MissingMethodException // thrown when code in a dependent assembly attempts to access a missing method in an assembly that was modified
Microsoft.CodeAnalysis.UnitTests (1)
AnalyzerAssemblyLoaderTests.cs (1)
1386Assert.True(ex is MissingMethodException or TargetInvocationException, $@"Unexpected exception type: ""{ex.GetType()}""");
Microsoft.Extensions.Options (5)
OptionsFactory.cs (2)
54/// <exception cref="MissingMethodException">The <typeparamref name="TOptions"/> does not have a public parameterless constructor or <typeparamref name="TOptions"/> is <see langword="abstract"/>.</exception> 99/// <exception cref="MissingMethodException">The <typeparamref name="TOptions"/> does not have a public parameterless constructor or <typeparamref name="TOptions"/> is <see langword="abstract"/>.</exception>
OptionsManager.cs (1)
41/// <exception cref="MissingMethodException">The <typeparamref name="TOptions"/> does not have a public parameterless constructor or <typeparamref name="TOptions"/> is <see langword="abstract"/>.</exception>
OptionsMonitor.cs (2)
76/// <exception cref="MissingMethodException">The <typeparamref name="TOptions"/> does not have a public parameterless constructor or <typeparamref name="TOptions"/> is <see langword="abstract"/>.</exception> 88/// <exception cref="MissingMethodException">The <typeparamref name="TOptions"/> does not have a public parameterless constructor or <typeparamref name="TOptions"/> is <see langword="abstract"/>.</exception>
Microsoft.Maui (2)
HotReload\HotReloadHelper.cs (1)
95 catch (MissingMethodException)
Platform\ElementExtensions.cs (1)
83 catch (MissingMethodException)
MSBuild (1)
ExceptionHandling.cs (1)
250|| e is MissingMethodException // thrown when code in a dependent assembly attempts to access a missing method in an assembly that was modified
MSBuildTaskHost (1)
ExceptionHandling.cs (1)
250|| e is MissingMethodException // thrown when code in a dependent assembly attempts to access a missing method in an assembly that was modified
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
366[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.MissingMethodException))]
netstandard (1)
netstandard.cs (1)
1058[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.MissingMethodException))]
PresentationCore (5)
MS\Internal\DpiUtil\DpiUtil+DpiAwarenessContextHelper.cs (1)
50catch (Exception e) when (e is EntryPointNotFoundException || e is MissingMethodException || e is DllNotFoundException)
MS\Internal\DpiUtil\DpiUtil+DpiAwarenessScope.cs (1)
119catch (Exception e) when (e is EntryPointNotFoundException || e is MissingMethodException || e is DllNotFoundException)
MS\Internal\DpiUtil\DpiUtil+ProcessDpiAwarenessHelper.cs (1)
70catch (Exception e) when (e is EntryPointNotFoundException || e is MissingMethodException || e is DllNotFoundException)
MS\Internal\DpiUtil\DpiUtil+SystemDpiHelper.cs (1)
52catch (Exception e) when (e is EntryPointNotFoundException || e is MissingMethodException || e is DllNotFoundException)
MS\Internal\DpiUtil\DpiUtil+WindowDpiScaleHelper.cs (1)
50catch (Exception e) when (e is EntryPointNotFoundException || e is MissingMethodException || e is DllNotFoundException)
PresentationFramework (6)
MS\Internal\Data\ViewManager.cs (1)
590catch (MissingMethodException e)
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1185catch (MissingMethodException e)
System\Windows\Data\ObjectDataProvider.cs (2)
460catch (System.MissingMethodException mme) 529catch (MissingMethodException mme)
System\Windows\Documents\Serialization\SerializerProvider.cs (1)
168catch (MissingMethodException)
System\Windows\Markup\BamlRecordReader.cs (1)
5279catch (System.MissingMethodException e)
System.ComponentModel.Composition (2)
System\ComponentModel\Composition\CatalogReflectionContextAttribute.cs (1)
38catch (MissingMethodException missingMethodException)
System\ComponentModel\Composition\MetadataViewProvider.cs (1)
88catch (MissingMethodException ex)
System.Private.CoreLib (10)
src\libraries\System.Private.CoreLib\src\System\Lazy.cs (1)
161catch (MissingMethodException)
src\libraries\System.Private.CoreLib\src\System\Resources\FileBasedResourceGroveler.cs (1)
101catch (MissingMethodException e)
src\libraries\System.Private.CoreLib\src\System\Resources\ManifestBasedResourceGroveler.cs (2)
257catch (MissingMethodException) { } 263catch (MissingMethodException e)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\UnsafeAccessorAttribute.cs (1)
47/// method will throw <see cref="MissingFieldException" /> or <see cref="MissingMethodException" />.
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (1)
671catch (MissingMethodException) { }
src\libraries\System.Private.CoreLib\src\System\Threading\LazyInitializer.cs (2)
65catch (MissingMethodException) 166catch (MissingMethodException)
src\System\RuntimeType.ActivatorCache.cs (1)
69case MissingMethodException: throw new MissingMethodException(friendlyMessage);
src\System\RuntimeType.CoreCLR.cs (1)
3908catch (MissingMethodException innerMME)
System.Private.Xml (3)
System\Xml\Serialization\Compilation.cs (1)
535MissingMethodException missingMethod = new MissingMethodException($"{type.FullName}::{methodName}");
System\Xml\Serialization\XmlSerializationReader.cs (1)
5073WriteCatchException(typeof(MissingMethodException));
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
3446WriteCatchException(typeof(MissingMethodException));
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
354[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.MissingMethodException))]
System.Windows.Forms (2)
System\Windows\Forms\DataBinding\BindingSource.cs (1)
545catch (MissingMethodException ex)
System\Windows\Forms\DataBinding\ListBindingHelper.cs (1)
260catch (MissingMethodException ex)
System.Windows.Forms.Design (3)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
877catch (MissingMethodException)
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (2)
289catch (MissingMethodException) 355catch (MissingMethodException)
System.Windows.Forms.Design.Tests (4)
System\ComponentModel\Design\DesignSurfaceTests.cs (2)
1064Assert.Throws<MissingMethodException>(() => surface.CreateComponent(type)); 1120Assert.Throws<MissingMethodException>(() => surface.CreateInstance(type));
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (2)
1286Assert.Throws<MissingMethodException>(() => manager.GetSerializer(null, typeof(ClassWithInterfaceDefaultSerializationProvider))); 1406Assert.Throws<MissingMethodException>(() => iManager.GetSerializer(null, typeof(ClassWithInterfaceDefaultSerializationProvider)));
System.Xaml (7)
System\Xaml\Runtime\ClrObjectRuntime.cs (1)
55catch (MissingMethodException ex)
System\Xaml\Runtime\PartialTrustTolerantRuntime.cs (6)
84catch (MissingMethodException) 150else if (ex.InnerException is MissingMethodException) 181else if (ex.InnerException is MissingMethodException) 207if (e.InnerException is MissingMethodException) 239if (e.InnerException is MissingMethodException) 272catch (MissingMethodException)
System.Xaml.Tests (2)
System\Xaml\Schema\XamlTypeInvokerTests.cs (2)
195Assert.Throws<MissingMethodException>(() => invoker.CreateInstance(null)); 196Assert.Throws<MissingMethodException>(() => invoker.CreateInstance(Array.Empty<object>()));