using System;
using System.Collections.Generic;
using System.Text;namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
}
}
class recaver
{
private double x, y, z;
public double x
{
get { return x; }
set { x = value; }
}
}
}这样定义X属性不对吗???编译不过去啊,哪位大师帮解决下
using System.Collections.Generic;
using System.Text;namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
}
}
class recaver
{
private double x, y, z;
public double x
{
get { return x; }
set { x = value; }
}
}
}这样定义X属性不对吗???编译不过去啊,哪位大师帮解决下
{
private double _x, y, z;
public double x
{
get { return _x; }
set { _x = value; }
}
} 这样就可以了