Nigel Longton created AVRO-1483:
-----------------------------------

             Summary: Csharp library doesnt publicly expose way to create 
ArraySchema objects
                 Key: AVRO-1483
                 URL: https://issues.apache.org/jira/browse/AVRO-1483
             Project: Avro
          Issue Type: Bug
          Components: csharp
            Reporter: Nigel Longton
            Priority: Minor


In Java one can do Schema.createArray(AvroGeneratedClass.class) to allow for 
the raw encoding of arrays. In C# the ArraySchema class is internal only and so 
this doesn't work. Adding the following lines to ArraySchema.cs (as they exist 
in MapSchema.cs) fixes this.
        public static ArraySchema CreateArray(Schema type)
        {
            return new ArraySchema(type, null);
        }




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to