Linker.Steps\MarkStep.cs (23)
599foreach (var method in type.Methods)
1152foreach (var m in type.Methods)
1269if (MarkMethodIf(type.Methods, IsNonEmptyStaticConstructor, reason, origin, suppressTrimAnalysisWarnings: suppressTrimAnalysisWarnings) != null)
1420MethodDefinition? method = type.Methods.FirstOrDefault(m => m.Name == methodname && !m.HasMetadataParameters());
2009MarkMethodsIf(type.Methods, IsSpecialSerializationConstructor, new DependencyInfo(DependencyKind.SerializationMethodForType, type), origin);
2012MarkMethodsIf(type.Methods, HasOnSerializeOrDeserializeAttribute, new DependencyInfo(DependencyKind.SerializationMethodForType, type), origin);
2082foreach (MethodDefinition method in type.Methods)
2268MarkMethodIf(type.Methods, static m => m.Name == "Finalize", new DependencyInfo(DependencyKind.MethodForSpecialType, type), typeOrigin);
2323foreach (var method in type.Methods)
2428if (MarkMethodsIf(type.Methods, MethodDefinitionExtensions.IsPublicInstancePropertyMethod, new DependencyInfo(DependencyKind.ReferencedBySpecialAttribute, type), origin))
2602foreach (MethodDefinition method in type.Methods)
2844return MarkMethodIf(type.Methods, MethodDefinitionExtensions.IsDefaultConstructor, reason, origin) != null;
2852MarkMethodIf(type.Methods,
2886MarkMethodsIf(tdef.Methods, m => !m.IsStatic, reason, origin);
2962MarkMethodsIf(type.Methods, m => m.Name == ".ctor" || m.Name == "Invoke", new DependencyInfo(DependencyKind.MethodForSpecialType, type), origin);
3072foreach (var m in type.Methods)
3207MarkMethodCollection(type.Methods, reason, origin);
3534MarkMethodIf(declaringType.Methods, m => m.Name == methodPair, new DependencyInfo(DependencyKind.MethodForSpecialType, declaringType), methodOrigin);
3600foreach (var method in type.Methods)
3666var nseCtor = MarkMethodIf(nse.Methods, KnownMembers.IsNotSupportedExceptionCtorString, reason, origin);
3676var objectCtor = MarkMethodIf(objectType.Methods, MethodDefinitionExtensions.IsDefaultConstructor, reason, origin);
3693var ctor = MarkMethodIf(disablePrivateReflection.Methods, MethodDefinitionExtensions.IsDefaultConstructor, new DependencyInfo(DependencyKind.DisablePrivateReflectionRequirement, disablePrivateReflection), emptyOrigin);
4198foreach (var method in stateMachineType.Methods)