FSharp.Formatting icon indicating copy to clipboard operation
FSharp.Formatting copied to clipboard

c# public readonly fields ignored

Open dnauck opened this issue 9 years ago • 3 comments

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).

dnauck avatar Dec 18 '15 09:12 dnauck

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

matthid avatar Dec 18 '15 12:12 matthid

C# issue, closing

dsyme avatar Apr 12 '19 23:04 dsyme

I think it's still valid

forki avatar Apr 13 '19 06:04 forki