Linker.Steps\MarkStep.cs (23)
598foreach (var method in type.Methods)
1151foreach (var m in type.Methods)
1268if (MarkMethodIf(type.Methods, IsNonEmptyStaticConstructor, reason, origin, suppressTrimAnalysisWarnings: suppressTrimAnalysisWarnings) != null)
1419MethodDefinition? method = type.Methods.FirstOrDefault(m => m.Name == methodname && !m.HasMetadataParameters());
2008MarkMethodsIf(type.Methods, IsSpecialSerializationConstructor, new DependencyInfo(DependencyKind.SerializationMethodForType, type), origin);
2011MarkMethodsIf(type.Methods, HasOnSerializeOrDeserializeAttribute, new DependencyInfo(DependencyKind.SerializationMethodForType, type), origin);
2064foreach (MethodDefinition method in type.Methods)
2233MarkMethodIf(type.Methods, static m => m.Name == "Finalize", new DependencyInfo(DependencyKind.MethodForSpecialType, type), typeOrigin);
2288foreach (var method in type.Methods)
2393if (MarkMethodsIf(type.Methods, MethodDefinitionExtensions.IsPublicInstancePropertyMethod, new DependencyInfo(DependencyKind.ReferencedBySpecialAttribute, type), origin))
2567foreach (MethodDefinition method in type.Methods)
2809return MarkMethodIf(type.Methods, MethodDefinitionExtensions.IsDefaultConstructor, reason, origin) != null;
2817MarkMethodIf(type.Methods,
2851MarkMethodsIf(tdef.Methods, m => !m.IsStatic, reason, origin);
2927MarkMethodsIf(type.Methods, m => m.Name == ".ctor" || m.Name == "Invoke", new DependencyInfo(DependencyKind.MethodForSpecialType, type), origin);
3037foreach (var m in type.Methods)
3172MarkMethodCollection(type.Methods, reason, origin);
3499MarkMethodIf(declaringType.Methods, m => m.Name == methodPair, new DependencyInfo(DependencyKind.MethodForSpecialType, declaringType), methodOrigin);
3565foreach (var method in type.Methods)
3631var nseCtor = MarkMethodIf(nse.Methods, KnownMembers.IsNotSupportedExceptionCtorString, reason, origin);
3641var objectCtor = MarkMethodIf(objectType.Methods, MethodDefinitionExtensions.IsDefaultConstructor, reason, origin);
3658var ctor = MarkMethodIf(disablePrivateReflection.Methods, MethodDefinitionExtensions.IsDefaultConstructor, new DependencyInfo(DependencyKind.DisablePrivateReflectionRequirement, disablePrivateReflection), emptyOrigin);
4163foreach (var method in stateMachineType.Methods)