I have the following method in public abstract A : IVirtualMachineExporter :
public override void Prepare() { ... }
I call the Prepare from another class B:
public sealed class B
{
public new ExportJobRequest Request { get { return (ExportJobRequest)base.Request; } }
private void ExportTask()
{
IVirtualMachineExporter exporter = CreateExporter();
exporter.Prepare();
}
}
Request containing public bool isAdHoc { get; set; }. I want to use information from this property inside Prepare(). How can I do this? I don't want to change Prepare() signature.
Aucun commentaire:
Enregistrer un commentaire