File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
sandbox/Generated/UnitGenerator/UnitGenerator.SourceGenerator Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 11// <auto-generated>
22// THIS (.cs) FILE IS GENERATED BY UnitGenerator. DO NOT CHANGE IT.
33// </auto-generated>
4- #pragma warning disable CS8669
5- #pragma warning disable CS8625
4+ #nullable enable
65using System ;
76#if NET7_0_OR_GREATER
87using System . Numerics ;
@@ -16,7 +15,7 @@ internal class UnitOfAttribute : Attribute
1615 public Type Type { get ; }
1716 public UnitGenerateOptions Options { get ; }
1817 public UnitArithmeticOperators ArithmeticOperators { get ; set ; } = UnitArithmeticOperators . All ;
19- public string ToStringFormat { get ; set ; }
18+ public string ? ToStringFormat { get ; set ; }
2019
2120 public UnitOfAttribute ( Type type , UnitGenerateOptions options = UnitGenerateOptions . None )
2221 {
Original file line number Diff line number Diff line change @@ -123,8 +123,7 @@ private void SetDefaultAttribute(GeneratorPostInitializationContext context)
123123// <auto-generated>
124124// THIS (.cs) FILE IS GENERATED BY UnitGenerator. DO NOT CHANGE IT.
125125// </auto-generated>
126- #pragma warning disable CS8669
127- #pragma warning disable CS8625
126+ #nullable enable
128127using System;
129128#if NET7_0_OR_GREATER
130129using System.Numerics;
@@ -138,7 +137,7 @@ internal class UnitOfAttribute : Attribute
138137 public Type Type { get; }
139138 public UnitGenerateOptions Options { get; }
140139 public UnitArithmeticOperators ArithmeticOperators { get; set; } = UnitArithmeticOperators.All;
141- public string ToStringFormat { get; set; }
140+ public string? ToStringFormat { get; set; }
142141
143142 public UnitOfAttribute(Type type, UnitGenerateOptions options = UnitGenerateOptions.None)
144143 {
You can’t perform that action at this time.
0 commit comments