private string GetTypeDesc(DocValuesWriter obj) { if (obj is BinaryDocValuesWriter) { return("binary"); } else if (obj is NumericDocValuesWriter) { return("numeric"); } else { Debug.Assert(obj is SortedDocValuesWriter); return("sorted"); } }
private static string GetTypeDesc(DocValuesWriter obj) // LUCENENET specific - made static { if (obj is BinaryDocValuesWriter) { return("binary"); } else if (obj is NumericDocValuesWriter) { return("numeric"); } else { if (Debugging.AssertsEnabled) { Debugging.Assert(obj is SortedDocValuesWriter); } return("sorted"); } }