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);
2085foreach (MethodDefinition method in type.Methods)
2271MarkMethodIf(type.Methods, static m => m.Name == "Finalize", new DependencyInfo(DependencyKind.MethodForSpecialType, type), typeOrigin);
2326foreach (var method in type.Methods)
2431if (MarkMethodsIf(type.Methods, MethodDefinitionExtensions.IsPublicInstancePropertyMethod, new DependencyInfo(DependencyKind.ReferencedBySpecialAttribute, type), origin))
2605foreach (MethodDefinition method in type.Methods)
2847return MarkMethodIf(type.Methods, MethodDefinitionExtensions.IsDefaultConstructor, reason, origin) != null;
2855MarkMethodIf(type.Methods,
2889MarkMethodsIf(tdef.Methods, m => !m.IsStatic, reason, origin);
2965MarkMethodsIf(type.Methods, m => m.Name == ".ctor" || m.Name == "Invoke", new DependencyInfo(DependencyKind.MethodForSpecialType, type), origin);
3075foreach (var m in type.Methods)
3210MarkMethodCollection(type.Methods, reason, origin);
3537MarkMethodIf(declaringType.Methods, m => m.Name == methodPair, new DependencyInfo(DependencyKind.MethodForSpecialType, declaringType), methodOrigin);
3603foreach (var method in type.Methods)
3669var nseCtor = MarkMethodIf(nse.Methods, KnownMembers.IsNotSupportedExceptionCtorString, reason, origin);
3679var objectCtor = MarkMethodIf(objectType.Methods, MethodDefinitionExtensions.IsDefaultConstructor, reason, origin);
3696var ctor = MarkMethodIf(disablePrivateReflection.Methods, MethodDefinitionExtensions.IsDefaultConstructor, new DependencyInfo(DependencyKind.DisablePrivateReflectionRequirement, disablePrivateReflection), emptyOrigin);
4201foreach (var method in stateMachineType.Methods)