Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesNK committed Sep 3, 2020
1 parent 761d28e commit 6341275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aspnetcore/grpc/protobuf.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ message Person {
}
```

C# generated messages don't expose the wrappers. Value type properties use .NET nullable types, for example `int?`. Reference type properties with `string` and `ByteString` values are unchanged except assigning `null` no longer throws an error.
`wrappers.proto` types aren't exposed in generated properties. Protobuf automatically maps them to appropriate .NET nullable types when generating C# messages. For example, a `google.protobuf.Int32Value` field generates a `int?` property. Reference type properties like `string` and `ByteString` are unchanged except `null` can be assigned to them without error.

The following table shows the complete list of wrapper types with their equivalent C# type:

Expand Down

0 comments on commit 6341275

Please sign in to comment.