Class Imports
A set of "module exports" that can be imported by a WebAssembly module.
Assembly: WaaS.Core.dll
View Source
public sealed class Imports : Dictionary<string, IModuleExports>, IDictionary<string, IModuleExports>, ICollection<KeyValuePair<string, IModuleExports>>, IReadOnlyDictionary<string, IModuleExports>, IReadOnlyCollection<KeyValuePair<string, IModuleExports>>, IEnumerable<KeyValuePair<string, IModuleExports>>, IDictionary, ICollection, IEnumerable, IDeserializationCallback, ISerializable, IImports
Inheritance: System.Object -> System.Collections.Generic.Dictionary<System.String,WaaS.Runtime.IModuleExports>
Implements:
Expand
System.Collections.Generic.IDictionary<System.String,WaaS.Runtime.IModuleExports>, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,WaaS.Runtime.IModuleExports>>, System.Collections.Generic.IReadOnlyDictionary<System.String,WaaS.Runtime.IModuleExports>, System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<System.String,WaaS.Runtime.IModuleExports>>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String,WaaS.Runtime.IModuleExports>>, System.Collections.IDictionary, System.Collections.ICollection, System.Collections.IEnumerable, System.Runtime.Serialization.IDeserializationCallback, System.Runtime.Serialization.ISerializable, WaaS.Runtime.IImports
Methods
TryGetImportable<T>(string, string, out T?)
View Source
public bool TryGetImportable<T>(string moduleName, string name, out T? value) where T : IExternal
Returns
System.Boolean
Parameters
| Type | Name |
|---|---|
System.String | moduleName |
System.String | name |
<T> | value |
Type Parameters
T
Implements
System.Collections.Generic.IDictionary<System.String,WaaS.Runtime.IModuleExports>System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,WaaS.Runtime.IModuleExports>>System.Collections.Generic.IReadOnlyDictionary<System.String,WaaS.Runtime.IModuleExports>System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<System.String,WaaS.Runtime.IModuleExports>>System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String,WaaS.Runtime.IModuleExports>>System.Collections.IDictionarySystem.Collections.ICollectionSystem.Collections.IEnumerableSystem.Runtime.Serialization.IDeserializationCallbackSystem.Runtime.Serialization.ISerializable- WaaS.Runtime.IImports