LibreOffice Module cli_ure (master) 1
Public Member Functions | Properties | Private Attributes | List of all members
uno.TypeArgumentsAttribute Class Reference

is used to mark a parameterized UNO entity(i.e. More...

Inheritance diagram for uno.TypeArgumentsAttribute:
[legend]
Collaboration diagram for uno.TypeArgumentsAttribute:
[legend]

Public Member Functions

 TypeArgumentsAttribute (Type[] arguments)
 initializes an instance with the specified value. More...
 

Properties

Type[] Arguments [get]
 

Private Attributes

Type[] m_arguments
 

Detailed Description

is used to mark a parameterized UNO entity(i.e.

struct) to be an instantiation of a template with the specified type arguments.

Currently only UNO structs can have type parameters.


[TypeParameters(new string[]{"T"})]
struct Foo {
  [ParameterizedType("T")]
  Object member;
}

public interface XFoo {
   [return:TypeArguments(new string[]{typeof(char)})]
   Foo func( [TypeArguments(new string[]{typeof(char)})] Foo f);
}
See also
TypeParametersAttribute
ParameterizedTypeAttribute

Definition at line 50 of file TypeArgumentsAttribute.cs.

Constructor & Destructor Documentation

◆ TypeArgumentsAttribute()

uno.TypeArgumentsAttribute.TypeArgumentsAttribute ( Type[]  arguments)
inline

initializes an instance with the specified value.

Parameters
parametersarrayay of names representing the types. It must not be null.

Definition at line 58 of file TypeArgumentsAttribute.cs.

References uno.TypeArgumentsAttribute.m_arguments.

Member Data Documentation

◆ m_arguments

Type [] uno.TypeArgumentsAttribute.m_arguments
private

Property Documentation

◆ Arguments

Type [] uno.TypeArgumentsAttribute.Arguments
get

Definition at line 63 of file TypeArgumentsAttribute.cs.


The documentation for this class was generated from the following file: