using System; namespace Wasmtime { /// /// Used to mark .NET methods and fields as imports to a WebAssembly module. /// [AttributeUsage(AttributeTargets.Method | AttributeTargets.Field)] public class ImportAttribute : Attribute { /// /// Constructs a new . /// /// The name of the import. public ImportAttribute(string name) { Name = name; } /// /// The name of the import. /// public string Name { get; set; } /// /// The module name of the import. /// /// A null or empty module name implies that the import is not scoped to a module. public string Module { get; set; } } }