Avro.Schema.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
        public override string ToString()
        {
            System.IO.StringWriter sw = new System.IO.StringWriter();
            Newtonsoft.Json.JsonTextWriter writer = new Newtonsoft.Json.JsonTextWriter(sw);
            writeJson(writer);
            return sw.ToString();
        }

Usage Example

Ejemplo n.º 1
0
 private static void testToString(Schema sc)
 {
     try
     {
         Assert.AreEqual(sc, Schema.Parse(sc.ToString()));
     }
     catch (Exception e)
     {
         throw new AvroException(e.ToString() + ": " + sc.ToString());
     }
 }
All Usage Examples Of Avro.Schema::ToString