Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeParameter.cs / 1 / CodeTypeParameter.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.CodeDom {
using System.Diagnostics;
using System;
using Microsoft.Win32;
using System.Collections;
using System.Reflection;
using System.Runtime.InteropServices;
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeTypeParameter : CodeObject {
private string name;
private CodeAttributeDeclarationCollection customAttributes;
private CodeTypeReferenceCollection constraints;
private bool hasConstructorConstraint;
public CodeTypeParameter() {
}
public CodeTypeParameter(string name) {
this.name = name;
}
public string Name {
get {
return (name == null) ? string.Empty : name;
}
set {
name = value;
}
}
public CodeTypeReferenceCollection Constraints {
get {
if (constraints == null) {
constraints = new CodeTypeReferenceCollection();
}
return constraints;
}
}
public CodeAttributeDeclarationCollection CustomAttributes {
get {
if (customAttributes == null) {
customAttributes = new CodeAttributeDeclarationCollection();
}
return customAttributes;
}
}
public bool HasConstructorConstraint {
get {
return hasConstructorConstraint;
}
set {
hasConstructorConstraint = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.CodeDom {
using System.Diagnostics;
using System;
using Microsoft.Win32;
using System.Collections;
using System.Reflection;
using System.Runtime.InteropServices;
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeTypeParameter : CodeObject {
private string name;
private CodeAttributeDeclarationCollection customAttributes;
private CodeTypeReferenceCollection constraints;
private bool hasConstructorConstraint;
public CodeTypeParameter() {
}
public CodeTypeParameter(string name) {
this.name = name;
}
public string Name {
get {
return (name == null) ? string.Empty : name;
}
set {
name = value;
}
}
public CodeTypeReferenceCollection Constraints {
get {
if (constraints == null) {
constraints = new CodeTypeReferenceCollection();
}
return constraints;
}
}
public CodeAttributeDeclarationCollection CustomAttributes {
get {
if (customAttributes == null) {
customAttributes = new CodeAttributeDeclarationCollection();
}
return customAttributes;
}
}
public bool HasConstructorConstraint {
get {
return hasConstructorConstraint;
}
set {
hasConstructorConstraint = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- X509Extension.cs
- Resources.Designer.cs
- WorkflowCommandExtensionItem.cs
- XmlFileEditor.cs
- Console.cs
- AuthenticationModeHelper.cs
- WindowsFormsLinkLabel.cs
- SafeNativeMethods.cs
- XmlSerializerFactory.cs
- PersonalizableTypeEntry.cs
- MappedMetaModel.cs
- FixedFlowMap.cs
- AutomationElement.cs
- GroupBox.cs
- MenuItemAutomationPeer.cs
- PageTextBox.cs
- ToolBarDesigner.cs
- StructuredCompositeActivityDesigner.cs
- LinearKeyFrames.cs
- RegexCharClass.cs
- MinimizableAttributeTypeConverter.cs
- LayoutEngine.cs
- GroupItem.cs
- GridViewRowCollection.cs
- SqlStream.cs
- BindableAttribute.cs
- BrushConverter.cs
- XmlBaseWriter.cs
- PrintController.cs
- dataSvcMapFileLoader.cs
- PassportAuthenticationEventArgs.cs
- ValidationResult.cs
- HtmlTableCell.cs
- MetafileHeaderWmf.cs
- GeneralTransform3DTo2D.cs
- SafeSystemMetrics.cs
- CodeAccessPermission.cs
- ExceptionUtil.cs
- SizeFConverter.cs
- Expression.cs
- FileStream.cs
- dataprotectionpermission.cs
- HasCopySemanticsAttribute.cs
- SmiContextFactory.cs
- DiscoveryDocumentLinksPattern.cs
- ConfigurationPropertyCollection.cs
- PrintEvent.cs
- WindowsFormsHost.cs
- ConnectionsZone.cs
- XpsFilter.cs
- EditorPartChrome.cs
- precedingquery.cs
- BuildProviderCollection.cs
- ItemMap.cs
- _UriSyntax.cs
- ProxyWebPartConnectionCollection.cs
- RenamedEventArgs.cs
- XhtmlBasicSelectionListAdapter.cs
- DynamicScriptObject.cs
- MarginCollapsingState.cs
- ImageSource.cs
- HtmlTableRowCollection.cs
- UriParserTemplates.cs
- PageCatalogPart.cs
- OrderedDictionaryStateHelper.cs
- AuthenticationSection.cs
- XmlComplianceUtil.cs
- CompiledIdentityConstraint.cs
- NullRuntimeConfig.cs
- OutputCacheSection.cs
- DirectoryNotFoundException.cs
- MemoryMappedFile.cs
- ZipPackagePart.cs
- ReadOnlyTernaryTree.cs
- ServiceActivationException.cs
- DropSource.cs
- Signature.cs
- EntityDataSourceMemberPath.cs
- QueryCacheManager.cs
- ToolboxDataAttribute.cs
- ListViewDataItem.cs
- DataServiceSaveChangesEventArgs.cs
- TileBrush.cs
- CommandField.cs
- LinkLabel.cs
- Ref.cs
- Quad.cs
- LocatorBase.cs
- EntityDataSourceEntitySetNameItem.cs
- CodeNamespaceImportCollection.cs
- SvcMapFileSerializer.cs
- Dump.cs
- _SslSessionsCache.cs
- PageParser.cs
- ProfileGroupSettingsCollection.cs
- Symbol.cs
- MembershipAdapter.cs
- ObjectCacheSettings.cs
- SignerInfo.cs
- QueryRewriter.cs