DanTm99 commented on code in PR #34125:
URL: https://github.com/apache/arrow/pull/34125#discussion_r1109427363
##########
csharp/src/Apache.Arrow/Schema.cs:
##########
@@ -22,98 +22,91 @@ namespace Apache.Arrow
{
public partial class Schema
{
- public IReadOnlyDictionary<string, Field> Fields
- {
- get => _fieldsDictionary;
- }
-
+ [Obsolete("Use `FieldsList` instead")]
Review Comment:
Since `FieldsList` wasn't previously exposed, `Fields` was the only way of
getting a list of all the fields (via `Fields.Values`).
So for some use cases `FieldsList` would be preferred over `Fields`, but for
others `FieldsLookup` would be preferred over `Fields`. I've updated the
message to mention both, so the user can decide which would be best to use for
their use case.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]