JavaPeerAliasesAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attribute applied to generated alias holder types. When multiple .NET types
map to the same JNI name (e.g., JavaCollection and JavaCollection<T>
both map to "java/util/Collection"), the base JNI name entry points to
a plain holder class annotated with this attribute, which lists the indexed
TypeMap keys for each alias type.
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
public sealed class JavaPeerAliasesAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)>]
type JavaPeerAliasesAttribute = class
inherit Attribute
- Inheritance
-
JavaPeerAliasesAttribute
- Attributes
Remarks
The alias holder is NOT a JavaPeerProxy subclass — this ensures GetCustomAttribute<JavaPeerProxy>() returns null for alias entries, keeping the fast path (non-alias types) free of alias checks.
Constructors
| Name | Description |
|---|---|
| JavaPeerAliasesAttribute(String[]) | |
Properties
| Name | Description |
|---|---|
| Aliases |
Gets the indexed TypeMap keys for this alias group (e.g., |