zcsizmadia edited a comment on pull request #1571:
URL: https://github.com/apache/avro/pull/1571#issuecomment-1053707162


   I think this is what you want to achieve?
   
   ```
   class Schema
   {
   ...
     Type ParseType(string type)
     {
         switch (type)
         {
             case "null":
                 return Type.Null;
             case "boolean":
                 return Type.Boolean;
             case "int":
                 return Type.Int;
             case "long":
                 return Type.Long;
             case "float":
                 return Type.Float;
             case "double":
                 return Type.Double;
             case "bytes":
                 return Type.Bytes;
             case "string":
                 return Type.String;
         }
         return null;
     }
     ...
   }
   ```


-- 
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]


Reply via email to