Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeParameter.cs / 1305376 / 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
- SafeRsaProviderHandle.cs
- ApplicationSecurityManager.cs
- xsdvalidator.cs
- IISUnsafeMethods.cs
- ToolStripContentPanelRenderEventArgs.cs
- ISessionStateStore.cs
- ProxyHelper.cs
- _NestedMultipleAsyncResult.cs
- NumericUpDownAcceleration.cs
- XmlSchemaComplexType.cs
- WorkflowOperationFault.cs
- Error.cs
- DataTrigger.cs
- MemoryStream.cs
- DispatcherHookEventArgs.cs
- NavigationProgressEventArgs.cs
- XamlReaderHelper.cs
- PropertyPathWorker.cs
- RubberbandSelector.cs
- GenericsInstances.cs
- ListView.cs
- EntitySetBaseCollection.cs
- RadioButton.cs
- ProxyGenerationError.cs
- ServicePointManagerElement.cs
- GridViewColumn.cs
- RoleGroup.cs
- ObjectListItemCollection.cs
- SqlOuterApplyReducer.cs
- LocalClientSecuritySettings.cs
- HtmlDocument.cs
- BooleanFunctions.cs
- NumberSubstitution.cs
- RequestCache.cs
- StackOverflowException.cs
- SafeTokenHandle.cs
- ThreadStaticAttribute.cs
- MaterialCollection.cs
- HMACSHA1.cs
- AtlasWeb.Designer.cs
- CompletedAsyncResult.cs
- ChangesetResponse.cs
- SqlWorkflowInstanceStore.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ApplyTemplatesAction.cs
- TableLayoutSettings.cs
- WebPartDescriptionCollection.cs
- NativeMethods.cs
- Native.cs
- PrimitiveXmlSerializers.cs
- MarkupCompiler.cs
- NodeFunctions.cs
- UIElementParagraph.cs
- Gdiplus.cs
- ExceptionHelpers.cs
- StylusCaptureWithinProperty.cs
- UTF8Encoding.cs
- Viewport3DAutomationPeer.cs
- ApplySecurityAndSendAsyncResult.cs
- SByte.cs
- updatecommandorderer.cs
- ServiceParser.cs
- BitmapEffectOutputConnector.cs
- _DigestClient.cs
- AVElementHelper.cs
- ItemDragEvent.cs
- MenuItemBinding.cs
- DefaultTextStoreTextComposition.cs
- DynamicContractTypeBuilder.cs
- WindowsIPAddress.cs
- Grant.cs
- SharedTcpTransportManager.cs
- XmlSchemaExporter.cs
- FixedSOMImage.cs
- HttpListenerException.cs
- PromptStyle.cs
- Evaluator.cs
- PreProcessInputEventArgs.cs
- DiagnosticTraceSchemas.cs
- _TLSstream.cs
- BulletedListEventArgs.cs
- CachedFontFace.cs
- XsltConvert.cs
- PathFigure.cs
- BindingListCollectionView.cs
- CreateUserWizard.cs
- MethodBuilder.cs
- ActiveDesignSurfaceEvent.cs
- KeyValuePairs.cs
- SoapFault.cs
- Screen.cs
- FileDialogCustomPlace.cs
- DataServiceExpressionVisitor.cs
- ComponentManagerBroker.cs
- EntityDataSourceColumn.cs
- AdapterDictionary.cs
- SchemaImporterExtension.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- HwndSource.cs
- BasicHttpMessageCredentialType.cs