FSharp.Formatting
FSharp.Formatting copied to clipboard
c# public readonly fields ignored
I'm using the ProjectScaffold api docs generation method and have the following type in c#:
/// <summary>
/// docs for the type
/// </summary>
public class SomeType
{
/// <summary>
/// Id of the type
/// </summary>
public readonly Guid Id;
/// <summary>
/// some property of the type
/// </summary>
public readonly DateTimeOffset When;
// ... .ctor, etc.
}
Both public fields are ignored and not rendered (regardless of publicOnly true or false).
I can reproduce and think its a FSharp.Compiler.Service problem. The field is not shown in any of the FCS APIs. I think this is another instance of https://github.com/fsharp/FSharp.Compiler.Service/issues/235
C# issue, closing
I think it's still valid