1*cf279e26SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*cf279e26SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*cf279e26SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*cf279e26SAndrew Rist  * distributed with this work for additional information
6*cf279e26SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*cf279e26SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*cf279e26SAndrew Rist  * "License"); you may not use this file except in compliance
9*cf279e26SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*cf279e26SAndrew Rist  *
11*cf279e26SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*cf279e26SAndrew Rist  *
13*cf279e26SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*cf279e26SAndrew Rist  * software distributed under the License is distributed on an
15*cf279e26SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*cf279e26SAndrew Rist  * KIND, either express or implied.  See the License for the
17*cf279e26SAndrew Rist  * specific language governing permissions and limitations
18*cf279e26SAndrew Rist  * under the License.
19*cf279e26SAndrew Rist  *
20*cf279e26SAndrew Rist  *************************************************************/
21*cf279e26SAndrew Rist 
22*cf279e26SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir using System;
25cdf0e10cSrcweir 
26cdf0e10cSrcweir 
27cdf0e10cSrcweir namespace uno
28cdf0e10cSrcweir {
29cdf0e10cSrcweir /** is used to mark a UNO entity to have type parameters.
30cdf0e10cSrcweir 
31cdf0e10cSrcweir     <p>Currently it is only applied with polymorphic structs. That is structs,
32cdf0e10cSrcweir     which have a type parameter list.
33cdf0e10cSrcweir     </p>
34cdf0e10cSrcweir  */
35cdf0e10cSrcweir [AttributeUsage(AttributeTargets.Class, Inherited=false)]
36cdf0e10cSrcweir public sealed class TypeParametersAttribute: System.Attribute
37cdf0e10cSrcweir {
38cdf0e10cSrcweir     /** initializes an instance with the specified value.
39cdf0e10cSrcweir 
40cdf0e10cSrcweir         @param parameters
41cdf0e10cSrcweir         array of names representing the types.
42cdf0e10cSrcweir         It must not be null.
43cdf0e10cSrcweir      */
TypeParametersAttribute(string[] parameters)44cdf0e10cSrcweir     public TypeParametersAttribute(string[] parameters)
45cdf0e10cSrcweir     {
46cdf0e10cSrcweir         m_parameters = parameters;
47cdf0e10cSrcweir     }
48cdf0e10cSrcweir 
49cdf0e10cSrcweir     public string[] Parameters
50cdf0e10cSrcweir     {
51cdf0e10cSrcweir         get
52cdf0e10cSrcweir         {
53cdf0e10cSrcweir             return m_parameters;
54cdf0e10cSrcweir         }
55cdf0e10cSrcweir     }
56cdf0e10cSrcweir 
57cdf0e10cSrcweir     private string[] m_parameters;
58cdf0e10cSrcweir }
59cdf0e10cSrcweir 
60cdf0e10cSrcweir }
61cdf0e10cSrcweir 
62