error CS0219: The variable `loc' is assigned but its value is never used