You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by GitBox <gi...@apache.org> on 2022/02/14 21:09:18 UTC

[GitHub] [avro] zcsizmadia commented on a change in pull request #1549: AVRO-3402 Updated GenericWriter to meet style guidelines

zcsizmadia commented on a change in pull request #1549:
URL: https://github.com/apache/avro/pull/1549#discussion_r806240577



##########
File path: lang/csharp/src/apache/main/Generic/GenericWriter.cs
##########
@@ -29,59 +30,63 @@ namespace Avro.Generic
     public delegate void Writer<T>(T t);
 
     /// <summary>
-    /// A typesafe wrapper around DefaultWriter. While a specific object of DefaultWriter
+    /// A type-safe wrapper around DefaultWriter. While a specific object of DefaultWriter
     /// allows the client to serialize a generic type, an object of this class allows
     /// only a single type of object to be serialized through it.
     /// </summary>
     /// <typeparam name="T">The type of object to be serialized.</typeparam>
+    /// <seealso cref="DatumWriter&lt;T&gt;" />
     public class GenericWriter<T> : DatumWriter<T>
     {
-        private readonly DefaultWriter writer;
+        private readonly DefaultWriter _writer;
 
         /// <summary>
-        /// Initializes a new instance of the <see cref="GenericWriter{T}"/> class.
+        /// Initializes a new instance of the <see cref="GenericWriter{T}" /> class.
         /// </summary>
         /// <param name="schema">Schema to use when writing.</param>
         public GenericWriter(Schema schema) : this(new DefaultWriter(schema))
         {
-
         }
 
         /// <inheritdoc/>
-        public Schema Schema { get { return writer.Schema; } }
+        public Schema Schema
+        { get { return _writer.Schema; } }

Review comment:
       Maybe just "public Schema Schema => _writer.Schema;``, since it is a getter only?




-- 
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: issues-unsubscribe@avro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org