In this code, is there a difference between the static function and the non-static one?
And, beside the fact that a static function belongs to the object and not to the instance, are there more differences?
public class ClassName
{
public void f1(SomeObject n)
{
n.someProperty = 1;
}
public static void f1(ref SomeObject n)
{
n.someProperty = 1;
}
}
duplicate? Yes, so it seems. just note that in the other question there were no answers that addressed the question itself.