I have a problem with error CS0236.
public class Converter
{
public string Celsiusz { get; set; }
public string Fahrenheit { get; set; }
public string Kelvin{ get; set; }
public string Rankinen { get; set; }
public string Reaumur { get; set; }
public string Romer { get; set; }
public string Delisle { get; set; }
public string Newton { get; set; }
double CelsiuszDouble;
bool bupa = double.TryParse(Newton, out CelsiuszDouble);
}
Are coming two errors:
First:
error CS0236: A field initializer cannot reference the non-static field, method, or property Converter.Newton
Second:
error CS0236: A field initializer cannot reference the non-static field, method, or property Converter.CelsiuszDouble
Converter.Nevtonisn't that a spelling mistake in your code in that case?