Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SimpleHandlerBuildProvider.cs
- AuthorizationSection.cs
- StrokeSerializer.cs
- SamlAttribute.cs
- SqlTriggerAttribute.cs
- HwndStylusInputProvider.cs
- SoapExtensionTypeElement.cs
- DataTrigger.cs
- ClearTypeHintValidation.cs
- DBSchemaRow.cs
- AuthorizationContext.cs
- HtmlControl.cs
- MethodToken.cs
- ThemeableAttribute.cs
- MetadataUtilsSmi.cs
- FormatConvertedBitmap.cs
- Missing.cs
- ValueConversionAttribute.cs
- SQLDouble.cs
- WebScriptMetadataMessageEncoderFactory.cs
- DesignUtil.cs
- CollectionDataContractAttribute.cs
- JsonEncodingStreamWrapper.cs
- DataColumnMappingCollection.cs
- ManagementEventArgs.cs
- SoapExtensionReflector.cs
- MemoryMappedViewAccessor.cs
- VectorCollection.cs
- Point4DConverter.cs
- SqlDataSourceCommandParser.cs
- GraphicsContext.cs
- DataGridViewSelectedColumnCollection.cs
- RestrictedTransactionalPackage.cs
- MetadataCache.cs
- ReadOnlyMetadataCollection.cs
- ListBoxAutomationPeer.cs
- MailWebEventProvider.cs
- itemelement.cs
- XPathConvert.cs
- OdbcException.cs
- CdpEqualityComparer.cs
- FlagsAttribute.cs
- TextTreeTextElementNode.cs
- TiffBitmapEncoder.cs
- KnownIds.cs
- SynchronousSendBindingElement.cs
- DbProviderSpecificTypePropertyAttribute.cs
- TypeExtension.cs
- UpDownBase.cs
- QuaternionRotation3D.cs
- ObjectStateFormatter.cs
- Binding.cs
- InternalPermissions.cs
- CodeParameterDeclarationExpression.cs
- NetworkAddressChange.cs
- ResourceProperty.cs
- StubHelpers.cs
- CriticalFinalizerObject.cs
- ZoneLinkButton.cs
- MaskedTextBoxTextEditorDropDown.cs
- ServerValidateEventArgs.cs
- SafeNativeMethods.cs
- altserialization.cs
- ipaddressinformationcollection.cs
- ImageMapEventArgs.cs
- EncryptedReference.cs
- CollectionView.cs
- SystemSounds.cs
- RangeValueProviderWrapper.cs
- ScaleTransform.cs
- CompilerLocalReference.cs
- RtType.cs
- Partitioner.cs
- AttributeData.cs
- PathGradientBrush.cs
- IUnknownConstantAttribute.cs
- HttpMethodAttribute.cs
- SerTrace.cs
- ObjectHandle.cs
- ManagedFilter.cs
- _DigestClient.cs
- TextProperties.cs
- DictionaryEntry.cs
- DateTimeUtil.cs
- DataGridViewColumn.cs
- Set.cs
- SqlPersonalizationProvider.cs
- TemplatePartAttribute.cs
- AvtEvent.cs
- SupportsEventValidationAttribute.cs
- TrustManagerMoreInformation.cs
- ValidationEventArgs.cs
- EntityViewContainer.cs
- DataObjectSettingDataEventArgs.cs
- Message.cs
- FixedTextPointer.cs
- MessageSecurityOverMsmqElement.cs
- DefaultProxySection.cs
- ValidatingPropertiesEventArgs.cs
- TableItemPatternIdentifiers.cs