Is it possible to declare variables then assign values to those variables outside of a function?
Try to do this:
public class Similarity
{
public string index;
public double distance;
public double similarityRate;
public Similarity(string index, double distance)
{
this.index = index;
this.distance = distance;
}
int b = 100; //new code
}