这里是结构代码的一部分,该结构代码在构造函数中创建一个self实例。我可以知道“ (ComplexDouble )ref this = new ComplexDouble();”的目的是什么吗?
public struct ComplexDouble
{
public unsafe ComplexDouble(double real, double imaginary)
{
*(ComplexDouble*) ref this = new ComplexDouble();
this.Real = real;
this.Imaginary = imaginary;
}
}