簡體   English   中英

如何使用CodeTypeDeclaration使用CodeDom創建內部類?

[英]How can I create an internal class with CodeDom using CodeTypeDeclaration?

如何使用CodeTypeDeclaration使用CodeDom創建內部類?

嘗試示例將其設為私有。

LE:找到了答案,所以如果有人需要,我會在這里發布。

myType.TypeAttributes = (myType.TypeAttributes & ~TypeAttributes.VisibilityMask) | TypeAttributes.NestedAssembly;

找到了答案,所以如果有人需要,我會在這里發布。

myType.TypeAttributes = (myType.TypeAttributes & ~TypeAttributes.VisibilityMask) | TypeAttributes.NestedAssembly;

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM