Skip to content

[hot_reload] Mono should ignore Param table row updates #56574

@lambdageek

Description

@lambdageek

Roslyn will emit these for changes like this:

Old code:

    public class MethodBody1 {
        public static string StaticMethod1 () {
            Func <string,string> fn = static (s) => s + "G";
            return fn ("OLD STRIN");
        }
    }

New code:

    public class MethodBody1 {
        public static string StaticMethod1 () {
            Func <string,string> fn = static (s) => s + "G";
            return fn ("NEW STRIN");
        }
    }

Roslyn will emit a param update for 's' even though nothing about the parameter has changed.

(Note that to get a clean delta it's necessary to use hotreload-utils that includes dotnet/hotreload-utils#65, otherwise the delta will be bloated with unnecessary field and method additions for the (unchanged) lambda).

This is part of #44806

Metadata

Metadata

Assignees

Labels

area-EnC-monoHot Reload for WebAssembly, iOS/Android, etc

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions