//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public static <E extends Exception> int count(org.neo4j.cursor.RawCursor<?,E> cursor) throws E public static int Count <E, T1>(RawCursor <T1> cursor) where E : Exception { try { int count = 0; while (cursor.Next()) { count++; } return(count); } finally { cursor.Close(); } }