File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/Microsoft.Data.SqlClient/tests/UnitTests
Microsoft/Data/SqlClient/UdtSerialization Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 8
8
<OutputPath >$(BinFolder)$(Configuration).$(Platform).$(AssemblyName)</OutputPath >
9
9
<IsTestProject >true</IsTestProject >
10
10
<GenerateDocumentationFile >true</GenerateDocumentationFile >
11
+ <Nullable >enable</Nullable >
11
12
</PropertyGroup >
12
13
<!-- Common references -->
13
14
<ItemGroup >
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ internal class NestedBoolWrapperClass { public bool Field1; public BoolWrapperSt
187
187
// Failure case: a struct or a class containing one designated primitive type and a nested class
188
188
[ SqlUserDefinedType ( Format . Native ) ]
189
189
[ StructLayout ( LayoutKind . Sequential ) ]
190
- internal class InvalidNestedBoolWrapperClass { public bool Field1 ; public BoolWrapperClass Field2 ; }
190
+ internal class InvalidNestedBoolWrapperClass { public bool Field1 ; public BoolWrapperClass ? Field2 ; }
191
191
192
192
// Failure case: a struct or a class containing a field which is not a designated primitive type
193
193
[ SqlUserDefinedType ( Format . Native ) ]
@@ -302,7 +302,7 @@ public void Write(BinaryWriter w)
302
302
WriteInvoked = true ;
303
303
}
304
304
305
- public bool Equals ( UserDefinedFormattedClass other )
305
+ public bool Equals ( UserDefinedFormattedClass ? other )
306
306
=> other is not null && other . Field1 == Field1 ;
307
307
}
308
308
You can’t perform that action at this time.
0 commit comments