1 //------------------------------------------------------------------------------
2 // <copyright file="CodeTypeParameter.cs" company="Microsoft">
4 // <OWNER>[....]</OWNER>
5 // Copyright (c) Microsoft Corporation. All rights reserved.
7 //------------------------------------------------------------------------------
9 namespace System.CodeDom {
11 using System.Diagnostics;
13 using Microsoft.Win32;
14 using System.Collections;
15 using System.Reflection;
16 using System.Runtime.InteropServices;
19 ClassInterface(ClassInterfaceType.AutoDispatch),
23 public class CodeTypeParameter : CodeObject {
25 private CodeAttributeDeclarationCollection customAttributes;
26 private CodeTypeReferenceCollection constraints;
27 private bool hasConstructorConstraint;
29 public CodeTypeParameter() {
32 public CodeTypeParameter(string name) {
38 return (name == null) ? string.Empty : name;
45 public CodeTypeReferenceCollection Constraints {
47 if (constraints == null) {
48 constraints = new CodeTypeReferenceCollection();
54 public CodeAttributeDeclarationCollection CustomAttributes {
56 if (customAttributes == null) {
57 customAttributes = new CodeAttributeDeclarationCollection();
59 return customAttributes;
63 public bool HasConstructorConstraint {
65 return hasConstructorConstraint;
68 hasConstructorConstraint = value;