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
- TextDecorationCollectionConverter.cs
- Vector3DValueSerializer.cs
- DbDeleteCommandTree.cs
- CodeFieldReferenceExpression.cs
- Completion.cs
- XamlPathDataSerializer.cs
- HttpStaticObjectsCollectionBase.cs
- WebBrowsableAttribute.cs
- IUnknownConstantAttribute.cs
- SessionStateItemCollection.cs
- HtmlToClrEventProxy.cs
- InternalTransaction.cs
- ObjectStateEntry.cs
- TransformerConfigurationWizardBase.cs
- Screen.cs
- XmlSchemaAny.cs
- safelinkcollection.cs
- SelectionList.cs
- XmlSchemaObjectCollection.cs
- XmlHelper.cs
- MimeParameter.cs
- AppDomainFactory.cs
- XmlReaderSettings.cs
- TargetException.cs
- AsyncStreamReader.cs
- SystemException.cs
- Utils.cs
- CodeTypeReferenceExpression.cs
- WebConfigurationManager.cs
- UrlPropertyAttribute.cs
- SystemNetHelpers.cs
- ComponentEditorForm.cs
- Int32CollectionConverter.cs
- CertificateElement.cs
- PocoEntityKeyStrategy.cs
- ResourceReferenceKeyNotFoundException.cs
- EnumValAlphaComparer.cs
- RegexNode.cs
- ContainerVisual.cs
- IncrementalCompileAnalyzer.cs
- InkSerializer.cs
- Graph.cs
- SmiMetaData.cs
- XmlDataProvider.cs
- ISAPIRuntime.cs
- OutputCacheSettings.cs
- CodeRemoveEventStatement.cs
- RelationshipType.cs
- OnOperation.cs
- AbstractSvcMapFileLoader.cs
- SystemIcons.cs
- ItemCheckEvent.cs
- ObjectStateFormatter.cs
- FrugalMap.cs
- URIFormatException.cs
- Ports.cs
- ZoneButton.cs
- HtmlInputHidden.cs
- SplitterCancelEvent.cs
- Size.cs
- ProcessProtocolHandler.cs
- WindowsTokenRoleProvider.cs
- CompiledRegexRunnerFactory.cs
- SortedSetDebugView.cs
- Base64Encoder.cs
- Int32KeyFrameCollection.cs
- XmlDataDocument.cs
- EventLogRecord.cs
- NumberFormatInfo.cs
- WindowVisualStateTracker.cs
- ZipIOCentralDirectoryBlock.cs
- SchemaRegistration.cs
- CircleHotSpot.cs
- ToolStripButton.cs
- ReceiveDesigner.xaml.cs
- SslStream.cs
- FutureFactory.cs
- DataGridViewImageCell.cs
- SelectedPathEditor.cs
- NameTable.cs
- FormViewDeletedEventArgs.cs
- TypeInfo.cs
- DataObjectFieldAttribute.cs
- ModuleBuilderData.cs
- Bold.cs
- SQLConvert.cs
- Journaling.cs
- XmlArrayItemAttributes.cs
- _Win32.cs
- Parser.cs
- OletxResourceManager.cs
- AccessDataSourceView.cs
- ColorAnimationBase.cs
- FrameworkPropertyMetadata.cs
- EnvironmentPermission.cs
- FolderBrowserDialog.cs
- SqlDependencyListener.cs
- ServiceInstanceProvider.cs
- Pens.cs
- XmlTextEncoder.cs