reef-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dhruv Mahajan <dhruv.maha...@gmail.com>
Subject Regarding static function to specify schema in Serializable classes
Date Fri, 01 Jul 2016 05:44:00 GMT
Hi

So for making classes serializable using Avro, in some places
like AvroNamingLookupRequest.cs, we specify the static function for schema:

 /// <summary>
        /// Gets the schema.
        /// </summary>
        public static string Schema
        {
            get
            {
                return JsonSchema;
            }
        }


while at some other place like DataVectorContract.cs we do not specify it.
What is the difference and right thing to do?

Dhruv

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message