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
- EntityStoreSchemaFilterEntry.cs
- GraphicsState.cs
- ResourceReferenceExpression.cs
- DrawingAttributes.cs
- TraceXPathNavigator.cs
- ByteAnimationUsingKeyFrames.cs
- ZipIOExtraFieldElement.cs
- MultiTrigger.cs
- HostingEnvironmentException.cs
- XmlSchemaExporter.cs
- XmlCDATASection.cs
- TypedElement.cs
- DataGridCellItemAutomationPeer.cs
- XmlChildEnumerator.cs
- PostBackOptions.cs
- AnonymousIdentificationModule.cs
- WeakRefEnumerator.cs
- AllowedAudienceUriElementCollection.cs
- DataGridViewElement.cs
- SplitterPanel.cs
- NullableConverter.cs
- AutomationPatternInfo.cs
- ProfileParameter.cs
- LinqDataSourceDisposeEventArgs.cs
- ElementMarkupObject.cs
- StringStorage.cs
- CompilationLock.cs
- CalendarTable.cs
- GZipDecoder.cs
- ElementNotEnabledException.cs
- hebrewshape.cs
- SafeArrayRankMismatchException.cs
- ContextStaticAttribute.cs
- JobPageOrder.cs
- ExceptionTranslationTable.cs
- ConfigurationProperty.cs
- MetadataUtil.cs
- DeploymentSection.cs
- OdbcHandle.cs
- SourceChangedEventArgs.cs
- UserControl.cs
- Module.cs
- StrokeNodeOperations.cs
- PropertyValueChangedEvent.cs
- CrossSiteScriptingValidation.cs
- Misc.cs
- MaskedTextBox.cs
- Root.cs
- RangeBaseAutomationPeer.cs
- CollectionChangeEventArgs.cs
- TabItem.cs
- DataKeyCollection.cs
- ScriptComponentDescriptor.cs
- GridViewUpdatedEventArgs.cs
- SystemNetHelpers.cs
- Point3DIndependentAnimationStorage.cs
- InitializationEventAttribute.cs
- PbrsForward.cs
- XmlNamespaceMappingCollection.cs
- ExpressionValueEditor.cs
- ToolTipAutomationPeer.cs
- DbConnectionStringBuilder.cs
- FieldNameLookup.cs
- GenericRootAutomationPeer.cs
- BinaryUtilClasses.cs
- GrammarBuilderRuleRef.cs
- SelectedDatesCollection.cs
- RoleGroupCollection.cs
- HtmlElementCollection.cs
- ClientSideProviderDescription.cs
- UserValidatedEventArgs.cs
- GlyphTypeface.cs
- WindowsFormsLinkLabel.cs
- QilLiteral.cs
- MenuRenderer.cs
- Msmq4PoisonHandler.cs
- WebPartEditorCancelVerb.cs
- DispatcherOperation.cs
- DES.cs
- NetWebProxyFinder.cs
- StrokeNode.cs
- Win32PrintDialog.cs
- WindowsFormsHelpers.cs
- RC2.cs
- WindowsToolbar.cs
- SchemaManager.cs
- IisTraceListener.cs
- Lease.cs
- QilScopedVisitor.cs
- HtmlImage.cs
- UriTemplateCompoundPathSegment.cs
- ToolStripMenuItem.cs
- ActionFrame.cs
- ButtonColumn.cs
- SessionStateItemCollection.cs
- FillRuleValidation.cs
- SiblingIterators.cs
- AsymmetricAlgorithm.cs
- EntitySqlException.cs
- BufferedWebEventProvider.cs