例如,如果我创建一个Base
类和2个派生类DerivedOne
和DerivedTwo
,则可以在DerivedOne
中声明引用{ {1}}?
谢谢
答案 0 :(得分:0)
您是否正在寻找类似的东西?
using (var pack = ZipPackage.Open(xpsFileName, FileMode.Open, FileAccess.ReadWrite))
{
foreach (var part in pack.GetParts()) if (part.Uri.OriginalString.EndsWith(".fpage"))
{
using (var file = part.GetStream(FileMode.Open, FileAccess.ReadWrite))
{
var page = ProcessPage(XElement.Load(file));
file.Position = 0;
page.Save(file);
file.SetLength(file.Position);
}
}
}
如果不清楚,请告诉我。