File tree Expand file tree Collapse file tree
tests/MemoryPack.Tests/Models Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -155,4 +155,4 @@ public sealed class GenerateTypeScriptAttribute : Attribute
155155}
156156
157157[ AttributeUsage ( AttributeTargets . Field | AttributeTargets . Property ) ]
158- public sealed class SkipOverwriteByDefaultAttribute : Attribute ;
158+ public sealed class SuppressDefaultInitialization : Attribute ;
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public ReferenceSymbols(Compilation compilation)
4747 MemoryPackOnSerializedAttribute = GetTypeByMetadataName ( "MemoryPack.MemoryPackOnSerializedAttribute" ) ;
4848 MemoryPackOnDeserializingAttribute = GetTypeByMetadataName ( "MemoryPack.MemoryPackOnDeserializingAttribute" ) ;
4949 MemoryPackOnDeserializedAttribute = GetTypeByMetadataName ( "MemoryPack.MemoryPackOnDeserializedAttribute" ) ;
50- SkipOverwriteDefaultAttribute = GetTypeByMetadataName ( "MemoryPack.SkipOverwriteByDefaultAttribute " ) ;
50+ SkipOverwriteDefaultAttribute = GetTypeByMetadataName ( "MemoryPack.SuppressDefaultInitialization " ) ;
5151 GenerateTypeScriptAttribute = GetTypeByMetadataName ( MemoryPackGenerator . GenerateTypeScriptAttributeFullName ) ;
5252 IMemoryPackable = GetTypeByMetadataName ( "MemoryPack.IMemoryPackable`1" ) . ConstructUnboundGenericType ( ) ;
5353 KnownTypes = new WellKnownTypes ( this ) ;
Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ partial class FieldDefaultValue
2323 public int X ;
2424 public int Y = 12345 ;
2525
26- [ SkipOverwriteByDefault ]
26+ [ SuppressDefaultInitialization ]
2727 public float Z = 678.9f ;
2828
29- [ SkipOverwriteByDefault ]
29+ [ SuppressDefaultInitialization ]
3030 public int FromMethod = StaticMethod . GetNumber ( ) ;
3131}
3232
@@ -36,12 +36,12 @@ partial class PropertyDefaultValue
3636 public int X { get ; init ; }
3737 public int Y { get ; set ; } = 12345 ;
3838
39- [ SkipOverwriteByDefault ]
39+ [ SuppressDefaultInitialization ]
4040 public float Z { get ; set ; } = 678.9f ;
4141
42- [ SkipOverwriteByDefault ]
42+ [ SuppressDefaultInitialization ]
4343 public float W { get ; init ; } = 678.9f ;
4444
45- [ SkipOverwriteByDefault ]
45+ [ SuppressDefaultInitialization ]
4646 public int FromMethod { get ; set ; } = StaticMethod . GetNumber ( ) ;
4747}
You can’t perform that action at this time.
0 commit comments