Skip to content
This repository was archived by the owner on Feb 25, 2021. It is now read-only.

Conversation

kswoll
Copy link

@kswoll kswoll commented Nov 19, 2018

Currently if you have a property like:

[Parameter] public string Foo { get; private set; }

The analzyer emits a warning about public properties with a [Parameter] attribute specified. Since the reason for this warning is about calling the setter (and mutating state at improper points in the rendering cycle) explicit non-public setters should be ignored.

See https://github.com/aspnet/Blazor/issues/1388#issuecomment-439650736 for more elaboration

…es with ParameterAttribute

Currently if you have a property like:

```
[Parameter] public string Foo { get; private set; }
```

The analzyer emits a warning about public properties with a `[Parameter]` attribute specified.  Since the reason for this warning is about calling the setter (and mutating state at improper points in the rendering cycle) explicit non-public setters should be ignored.

See https://github.com/aspnet/Blazor/issues/1388#issuecomment-439650736 for more elaboration
@dnfclas
Copy link

dnfclas commented Nov 19, 2018

CLA assistant check
All CLA requirements met.

@kswoll
Copy link
Author

kswoll commented Nov 19, 2018

Any thoughts on the failure? It passes locally for me and doesn't seem at all related to my changes. Flaky?


  Starting test execution, please wait...
  [xUnit.net 00:00:01.2289096]     Microsoft.JSInterop.Test.JsonUtilTest.CanSerializeClassToJson [FAIL]
  Failed   Microsoft.JSInterop.Test.JsonUtilTest.CanSerializeClassToJson

@SteveSandersonMS
Copy link
Member

Thanks for this! It's now moved to dotnet/aspnetcore#4594.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants