我对C#有一个构造问题。
我有这一类:
public partial class Signature : Form, ISignature
{
private readonly SignatureMediator mediator;
public Signature(SignatureMediator mediator)
{
this.mediator = mediator;
InitializeComponent();
}
.... more stuff
}
我愿这样作:
public SignatureMediator(int someValue, int otherValue, int thirdValue)
: this(new Signature(this), someValue, otherValue, thirdValue)
// This is not allowed --^
{
// I don t see anyway to get this in to the ":this" part.
//Signature signature = new Signature(this);
}
public SignatureMediator(ISignature form, int someValue, int otherValue, int thirdValue)
{
SigForm = form;
SomeValue= someValue;
OtherValue= otherValue;
ThirdValue= thirdValue;
}
www.un.org/Depts/DGACM/index_russian.htm
在不重复固定价值分配的情况下建立这种制度是否有任何进展?