mr-smidge commented on a change in pull request #7654: URL: https://github.com/apache/arrow/pull/7654#discussion_r453670993
########## File path: csharp/src/Apache.Arrow/Arrays/Date32Array.cs ########## @@ -55,16 +70,39 @@ public Date32Array(ArrayData data) public override void Accept(IArrowArrayVisitor visitor) => Accept(this, visitor); - public DateTimeOffset? GetDate(int index) + [Obsolete("Use `GetDateTimeOffset()` instead")] + public DateTimeOffset? GetDate(int index) => GetDateTimeOffset(index); + + /// <summary> + /// Get the date at the specified index in the form of a <see cref="DateTime"/> object. + /// </summary> + /// <remarks> + /// The <see cref="DateTime.Kind"/> property of the returned object is set to + /// <see cref="DateTimeKind.Unspecified"/>. + /// </remarks> + /// <param name="index">Index at which to get the date.</param> + /// <returns>Returns a <see cref="DateTime"/> object, or <c>null</c> if there is no object at that index. + /// </returns> + public DateTime? GetDateTime(int index) Review comment: In the absence of being able to overload return types, this class (and `Date64Array`) follows the naming convention of [System.Convert](https://docs.microsoft.com/en-us/dotnet/api/system.convert?view=netcore-3.1), and mentions the return type in the method name. As such, the original `GetDate()` method is marked as _obsolete_. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org