Skip to content

S3ObjectVersion IsDeleteMarker and IsLatest changed to nullable? #3918

Answered by dscpinheiro
Coder3333 asked this question in Q&A
Discussion options

You must be logged in to vote

This change was intentional (https://docs.aws.amazon.com/sdk-for-net/v4/developer-guide/net-dg-v4.html#net-dg-v4-value-types) and the preview 1 blog post has more details on why this change was made and what a null response means:

V4 changes properties on classes used for requests and responses that used value types like int, bool, and DateTime to use the nullable version, essentially changing the type from bool to bool?. This addresses a long standing issue many users had with the SDK in that they could not tell, for example, if a boolean property is false because the service returned false, or if the property is false because that is the default value for bool types.

Because .NET’s h…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Coder3333
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants