namespace Guilds
{
public class Wizard
{
public void Wear(IClothing clothing)
{
Console.WriteLine("Puts on the {Robe} and {WizardHat}".Fmt(clothing));
}
IClothing _clothes;
IWeapon _weapon; // <== I want my fields added at the bottom of the class!
}
}
フィールドを一番下に置くと、後続のフィールドもクラスの一番下に追加されることを認識しています。最初のフィールドでも、これをデフォルトの動作にしたいと思います。
通常、この動作は Ctrl + を押すとトリガーされます。宣言されていないフィールドの上。