2
我有一個應用程序可以讓開發人員創建自己的派生子類並向其添加預定義的屬性。在Visual Studio中創建自定義屬性編輯器/生成器.Net
例如:
class MyDocContainer : GenericDocumentContainer {
Document docA = new Document("Secret Report on Brocoli Wars");
Document docB = new Document("Who's afraid of Donald Duck");
Document docC = new Document("Out Of Money Experience");
//rest of code goes here
}
我想有一個可視化編輯器,將允許編輯/添加文件和其他預定義類型的分部類(就像設置設計器)
這將有助於對派生類進行綜合觀察並使其更易於維護。
理想情況下,我也想生成在特殊場所(如構造函數或專用init方法)
任何想法每個屬性相關的幾行代碼?