Skip to content

[Err] - properties with UseFormatProviderAttribute must return a IFormatProvider #14

@Liamth99

Description

@Liamth99

Example of code diagnostic:

// Expected
[UseFormatProvider]
private static IFormatProvider Default => CultureInfo.CurrentCulture;

// Not Ok
[UseFormatProvider]
private static string Default => "";

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions