C#クラスをビルドしたdllの列挙型クラス変数にアクセスできない
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
例えば”SampleLib”の名前で実装されているC#ライブラリ内に列挙型のクラス変数SampleLib.SampleClass.Season (Spring/Summer/…などの列挙メンバーを持つ)がある時に、これをビルドしたdllをasmInfo = NET.addAssembly(“/path/to/SampleLib.dll”)の様にした時に、asmInfo.Enumの値が「’SampleLib.SampleClass+Season’」となってしまい、列挙型変数にアクセスできない(期待される結果: 「’SampleLib.SampleClass.Season’」)。どんな原因が考えられるでしょうか…環境:MATLAB2023b, .NET8.0
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Call MATLAB from .NET dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!