Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove doc on DateTime being invalid #402

Merged
merged 1 commit into from
Sep 27, 2024
Merged

Remove doc on DateTime being invalid #402

merged 1 commit into from
Sep 27, 2024

Commits on Sep 27, 2024

  1. Remove doc on DateTime being invalid

    Since when using public visibility, it can be valid since they would be static readonly props with a lambda now.
    
    For example, the following now works just fine:
    
    ```xml
    <Constant Include="TypedTimeSpan" Value="TimeSpan.FromSeconds(5)" Type="TimeSpan" />
    ```
    
    And generates:
    
    ```csharp
    public static TimeSpan TypedTimeSpan => TimeSpan.FromSeconds(5);
    ```
    kzu committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    d3e0a37 View commit details
    Browse the repository at this point in the history