Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeParameter.cs / 1305376 / CodeTypeParameter.cs
//------------------------------------------------------------------------------ //// // //----------------------------------------------------------------------------- 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.[....] // Copyright (c) Microsoft Corporation. All rights reserved. //
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EmptyStringExpandableObjectConverter.cs
- XmlSchemaObjectTable.cs
- BitmapEffectInputConnector.cs
- CheckedListBox.cs
- BindingExpressionBase.cs
- DataBindingList.cs
- ContentPosition.cs
- AgileSafeNativeMemoryHandle.cs
- BooleanAnimationBase.cs
- NTAccount.cs
- DataKey.cs
- KerberosTicketHashIdentifierClause.cs
- HandlerWithFactory.cs
- SpecialFolderEnumConverter.cs
- WaitHandle.cs
- TextTreeInsertUndoUnit.cs
- XmlRawWriter.cs
- AlternationConverter.cs
- HttpStreamMessageEncoderFactory.cs
- XmlSerializerNamespaces.cs
- WebPartChrome.cs
- BamlRecordReader.cs
- EncodingFallbackAwareXmlTextWriter.cs
- SpecularMaterial.cs
- SystemIPGlobalStatistics.cs
- GeneralTransform3DTo2DTo3D.cs
- JsonStringDataContract.cs
- FrugalMap.cs
- WebHostUnsafeNativeMethods.cs
- XmlExpressionDumper.cs
- ScrollBar.cs
- ReliableMessagingVersionConverter.cs
- CodeThrowExceptionStatement.cs
- DnsPermission.cs
- JavaScriptObjectDeserializer.cs
- ChangeToolStripParentVerb.cs
- ProfileEventArgs.cs
- GridViewDeletedEventArgs.cs
- HwndProxyElementProvider.cs
- xsdvalidator.cs
- MailWebEventProvider.cs
- Configuration.cs
- CommentGlyph.cs
- DetailsViewInsertEventArgs.cs
- FontSource.cs
- EditorPart.cs
- TypeLibConverter.cs
- StrongNameIdentityPermission.cs
- HandlerFactoryWrapper.cs
- TokenBasedSet.cs
- ScalarConstant.cs
- SimpleWorkerRequest.cs
- CharKeyFrameCollection.cs
- ParentControlDesigner.cs
- COSERVERINFO.cs
- loginstatus.cs
- PrimitiveSchema.cs
- DataGridPagerStyle.cs
- OutputWindow.cs
- ButtonPopupAdapter.cs
- StorageEntitySetMapping.cs
- WebBrowserEvent.cs
- DeploymentSection.cs
- SecurityAppliedMessage.cs
- HitTestDrawingContextWalker.cs
- BatchParser.cs
- Binding.cs
- MILUtilities.cs
- XmlCharCheckingWriter.cs
- ELinqQueryState.cs
- AvtEvent.cs
- CustomAttribute.cs
- TextEndOfLine.cs
- UserControl.cs
- WebPartConnectionsConnectVerb.cs
- DataGridViewColumnCollection.cs
- columnmapkeybuilder.cs
- CodeTryCatchFinallyStatement.cs
- OverlappedContext.cs
- Oid.cs
- ElementInit.cs
- ClockGroup.cs
- XmlCharCheckingReader.cs
- InitializerFacet.cs
- ImportCatalogPart.cs
- DataObject.cs
- PerformanceCounter.cs
- TableDetailsCollection.cs
- HuffModule.cs
- ISSmlParser.cs
- ConnectionPointCookie.cs
- CodeMemberEvent.cs
- PermissionAttributes.cs
- GlyphRunDrawing.cs
- DateTimeConverter.cs
- FontEditor.cs
- SchemaCreator.cs
- ServiceModelPerformanceCounters.cs
- RoutedEventConverter.cs
- LOSFormatter.cs