Class ExternalAttribute
- Namespace
- Utils.Reflection
- Assembly
- Utils.Reflection.dll
Attribute used to mark properties or fields to be mapped to external unmanaged functions.
[AttributeUsage(AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public class ExternalAttribute : Attribute
- Inheritance
-
ExternalAttribute
- Inherited Members
- Extension Methods
Constructors
ExternalAttribute()
Creates a new instance of the ExternalAttribute class using the member's name.
public ExternalAttribute()
ExternalAttribute(string)
Creates a new instance of the ExternalAttribute class with an explicit name override.
public ExternalAttribute(string name)
Parameters
namestringThe name of the unmanaged function to map.
Properties
Name
The name of the external function to map. If not provided, the member's name will be used.
public string Name { get; }