You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import'package:winmd/winmd.dart';
voidmain() {
// A Windows Runtime interfaceconst typeToGenerate ='Windows.Foundation.Collections.IVectorView`1';
// Load the metadata for this interfacefinal typeDef =MetadataStore.getMetadataForType(typeToGenerate)!;
// Create a Dart projectionprint('$typeToGenerate contains the following methods:');
for (final method in typeDef.methods) {
print(' ${method.name}');
}
}
results in
Windows.Foundation.Collections.IVectorView`1 contains the following methods:
Unhandled exception:
WinmdException: Unrecognized or internal type 0
#0 parseCorElementType
package:winmd/…/com/constants.dart:198
#1 new TypeIdentifier.fromValue
package:winmd/src/typeidentifier.dart:46
#2 new TypeTuple.fromSignature
package:winmd/…/utils/typetuple.dart:30
#3 Method._parseMethodDefSig
package:winmd/src/method.dart:330
#4 Method._parseSignatureBlob
package:winmd/src/method.dart:272
#5 new Method
package:winmd/src/method.dart:83
#6 new Method.fromToken
package:winmd/src/method.dart:113
#7 TypeDef.methods
package:winmd/src/typedef.dart:383
#8 main
example\main.dart:19
#9 _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:283:19)
#10 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)
Exited (255)
The text was updated successfully, but these errors were encountered:
results in
The text was updated successfully, but these errors were encountered: