using System; using System.Diagnostics; namespace SpaceWizards.Sodium.Interop { /// Defines the vtbl index of a method as it was in the native signature. [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)] [Conditional("DEBUG")] internal sealed partial class VtblIndexAttribute : Attribute { private readonly uint _index; /// Initializes a new instance of the class. /// The vtbl index of a method as it was in the native signature. public VtblIndexAttribute(uint index) { _index = index; } /// Gets the vtbl index of a method as it was in the native signature. public uint Index => _index; } }