Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SimpleMailWebEventProvider.cs
- ValidationVisibilityAttribute.cs
- SymmetricAlgorithm.cs
- OdbcConnection.cs
- SiteMapHierarchicalDataSourceView.cs
- URLMembershipCondition.cs
- Base64Encoding.cs
- EntityDataSourceDataSelectionPanel.cs
- XmlDownloadManager.cs
- TransformDescriptor.cs
- SiteIdentityPermission.cs
- UrlPath.cs
- IdentifierCreationService.cs
- WmlValidationSummaryAdapter.cs
- KeyGestureValueSerializer.cs
- CqlIdentifiers.cs
- MatrixCamera.cs
- HtmlTableRowCollection.cs
- DataKeyCollection.cs
- CodeDomConfigurationHandler.cs
- HttpCookieCollection.cs
- ColumnReorderedEventArgs.cs
- Events.cs
- FlatButtonAppearance.cs
- ColorConvertedBitmap.cs
- lengthconverter.cs
- PhoneCall.cs
- Label.cs
- Rotation3DAnimationBase.cs
- SiteMapProvider.cs
- WindowsGraphics2.cs
- AxisAngleRotation3D.cs
- Set.cs
- _NTAuthentication.cs
- ContainerAction.cs
- ContainsRowNumberChecker.cs
- PenCursorManager.cs
- SearchExpression.cs
- SrgsSemanticInterpretationTag.cs
- SingleKeyFrameCollection.cs
- SourceFileInfo.cs
- ProfileParameter.cs
- UnauthorizedAccessException.cs
- IndexOutOfRangeException.cs
- BitmapEffectState.cs
- DataGridViewRowConverter.cs
- ComponentChangedEvent.cs
- loginstatus.cs
- EnumValAlphaComparer.cs
- ExpressionBuilderContext.cs
- TranslateTransform3D.cs
- FtpWebResponse.cs
- Exceptions.cs
- ServiceRouteHandler.cs
- KeyedHashAlgorithm.cs
- EncodingNLS.cs
- PopupRoot.cs
- COM2ColorConverter.cs
- ContainerVisual.cs
- PerformanceCounterManager.cs
- StringConverter.cs
- IISUnsafeMethods.cs
- ServicePointManagerElement.cs
- QueuePathEditor.cs
- StorageComplexTypeMapping.cs
- EntityDataSourceWrapperCollection.cs
- StandardOleMarshalObject.cs
- SoapProtocolReflector.cs
- COM2TypeInfoProcessor.cs
- TextDocumentView.cs
- XmlSerializerSection.cs
- ObservableCollection.cs
- PerformanceCounter.cs
- SqlProfileProvider.cs
- ArrayElementGridEntry.cs
- QuaternionRotation3D.cs
- GlyphInfoList.cs
- ProfileSettingsCollection.cs
- Decoder.cs
- Tracking.cs
- SystemUnicastIPAddressInformation.cs
- UrlPath.cs
- TimersDescriptionAttribute.cs
- AlternationConverter.cs
- HtmlFormWrapper.cs
- ImageCodecInfoPrivate.cs
- METAHEADER.cs
- WebEvents.cs
- GroupItem.cs
- SqlBooleanMismatchVisitor.cs
- DataGridViewTextBoxColumn.cs
- TagNameToTypeMapper.cs
- TheQuery.cs
- AutomationElement.cs
- CodeCatchClauseCollection.cs
- DataObjectEventArgs.cs
- ProfileSettings.cs
- XmlNodeReader.cs
- complextypematerializer.cs
- SymmetricKeyWrap.cs