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
- FunctionDefinition.cs
- JoinElimination.cs
- QilUnary.cs
- UInt16.cs
- HelloOperation11AsyncResult.cs
- SamlConstants.cs
- SmtpSection.cs
- AttributeProviderAttribute.cs
- RSAPKCS1SignatureFormatter.cs
- XmlNodeList.cs
- OdbcParameter.cs
- EntitySetDataBindingList.cs
- DataRecordObjectView.cs
- EncoderNLS.cs
- XamlGridLengthSerializer.cs
- ADConnectionHelper.cs
- DynamicObjectAccessor.cs
- TypeElement.cs
- HttpCookieCollection.cs
- StringAnimationBase.cs
- SecurityUtils.cs
- HttpCapabilitiesBase.cs
- HMACMD5.cs
- EdmTypeAttribute.cs
- Literal.cs
- AsyncOperation.cs
- InternalsVisibleToAttribute.cs
- ExpressionBuilder.cs
- Int32Rect.cs
- QilTargetType.cs
- WebPartDisplayModeCollection.cs
- HtmlTable.cs
- FieldBuilder.cs
- ZipIOLocalFileHeader.cs
- IOException.cs
- BinaryUtilClasses.cs
- ExpandSegmentCollection.cs
- MarkupCompilePass1.cs
- VectorCollectionConverter.cs
- DebugView.cs
- SafeBitVector32.cs
- DefaultClaimSet.cs
- BitConverter.cs
- BitmapFrameDecode.cs
- StorageEndPropertyMapping.cs
- DrawTreeNodeEventArgs.cs
- RawMouseInputReport.cs
- MobileUITypeEditor.cs
- ComplexPropertyEntry.cs
- FlowDocumentFormatter.cs
- LogLogRecordHeader.cs
- DataSourceSelectArguments.cs
- ExpressionConverter.cs
- Utility.cs
- DrawingImage.cs
- BuildProvidersCompiler.cs
- CatalogPartCollection.cs
- CategoryGridEntry.cs
- XamlFrame.cs
- CompilationSection.cs
- GiveFeedbackEvent.cs
- Timer.cs
- Tag.cs
- ObjectTag.cs
- XmlILOptimizerVisitor.cs
- GeneralTransform2DTo3D.cs
- OfTypeExpression.cs
- SiteMap.cs
- EntityDataSourceChangingEventArgs.cs
- TrackingLocationCollection.cs
- QfeChecker.cs
- RegexGroupCollection.cs
- ColumnWidthChangedEvent.cs
- ResourceManager.cs
- ResourceReader.cs
- CombinedTcpChannel.cs
- TimeSpanStorage.cs
- ConstraintConverter.cs
- CompatibleComparer.cs
- MultipartContentParser.cs
- DataGridViewColumnCollectionEditor.cs
- StringConverter.cs
- ToolboxItemFilterAttribute.cs
- XmlILModule.cs
- EdmFunction.cs
- TokenCreationException.cs
- NetStream.cs
- SortExpressionBuilder.cs
- SolidColorBrush.cs
- WebControlsSection.cs
- KeyFrames.cs
- HighlightComponent.cs
- Int32Storage.cs
- XmlSerializationGeneratedCode.cs
- UInt64Storage.cs
- AuthenticationService.cs
- ShapeTypeface.cs
- SystemInformation.cs
- DynamicScriptObject.cs
- WFItemsToSpacerVisibility.cs