Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / CodeDOM / CodeMemberProperty.cs / 1 / CodeMemberProperty.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ////// [ ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable, ] public class CodeMemberProperty : CodeTypeMember { private CodeTypeReference type; private CodeParameterDeclarationExpressionCollection parameters = new CodeParameterDeclarationExpressionCollection(); private bool hasGet; private bool hasSet; private CodeStatementCollection getStatements = new CodeStatementCollection(); private CodeStatementCollection setStatements = new CodeStatementCollection(); private CodeTypeReference privateImplements = null; private CodeTypeReferenceCollection implementationTypes = null; ////// Represents a class property. /// ////// public CodeTypeReference PrivateImplementationType { get { return privateImplements; } set { privateImplements = value; } } ///[To be supplied.] ////// public CodeTypeReferenceCollection ImplementationTypes { get { if (implementationTypes == null) { implementationTypes = new CodeTypeReferenceCollection(); } return implementationTypes; } } ///[To be supplied.] ////// public CodeTypeReference Type { get { if (type == null) { type = new CodeTypeReference(""); } return type; } set { type = value; } } ///Gets or sets the data type of the property. ////// public bool HasGet { get { return hasGet || getStatements.Count > 0; } set { hasGet = value; if (!value) { getStatements.Clear(); } } } ////// Gets a value /// indicating whether the property has a get method accessor. /// ////// public bool HasSet { get { return hasSet || setStatements.Count > 0; } set { hasSet = value; if (!value) { setStatements.Clear(); } } } ////// Gets a value /// indicating whether the property has a set method accessor. /// ////// public CodeStatementCollection GetStatements { get { return getStatements; } } ////// Gets or sets the collection of get statements for the /// property. /// ////// public CodeStatementCollection SetStatements { get { return setStatements; } } ////// Gets or sets the collection of get statements for the property. /// ////// public CodeParameterDeclarationExpressionCollection Parameters { get { return parameters; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets or sets the collection of declaration expressions /// for /// the property. /// ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ////// [ ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable, ] public class CodeMemberProperty : CodeTypeMember { private CodeTypeReference type; private CodeParameterDeclarationExpressionCollection parameters = new CodeParameterDeclarationExpressionCollection(); private bool hasGet; private bool hasSet; private CodeStatementCollection getStatements = new CodeStatementCollection(); private CodeStatementCollection setStatements = new CodeStatementCollection(); private CodeTypeReference privateImplements = null; private CodeTypeReferenceCollection implementationTypes = null; ////// Represents a class property. /// ////// public CodeTypeReference PrivateImplementationType { get { return privateImplements; } set { privateImplements = value; } } ///[To be supplied.] ////// public CodeTypeReferenceCollection ImplementationTypes { get { if (implementationTypes == null) { implementationTypes = new CodeTypeReferenceCollection(); } return implementationTypes; } } ///[To be supplied.] ////// public CodeTypeReference Type { get { if (type == null) { type = new CodeTypeReference(""); } return type; } set { type = value; } } ///Gets or sets the data type of the property. ////// public bool HasGet { get { return hasGet || getStatements.Count > 0; } set { hasGet = value; if (!value) { getStatements.Clear(); } } } ////// Gets a value /// indicating whether the property has a get method accessor. /// ////// public bool HasSet { get { return hasSet || setStatements.Count > 0; } set { hasSet = value; if (!value) { setStatements.Clear(); } } } ////// Gets a value /// indicating whether the property has a set method accessor. /// ////// public CodeStatementCollection GetStatements { get { return getStatements; } } ////// Gets or sets the collection of get statements for the /// property. /// ////// public CodeStatementCollection SetStatements { get { return setStatements; } } ////// Gets or sets the collection of get statements for the property. /// ////// public CodeParameterDeclarationExpressionCollection Parameters { get { return parameters; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets or sets the collection of declaration expressions /// for /// the property. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StdRegProviderWrapper.cs
- IPAddressCollection.cs
- User.cs
- CodePropertyReferenceExpression.cs
- SynchronizationContext.cs
- SqlCharStream.cs
- Transaction.cs
- ExceptionUtility.cs
- Registry.cs
- InternalSafeNativeMethods.cs
- SevenBitStream.cs
- DataServiceQueryProvider.cs
- DBParameter.cs
- PersistenceTypeAttribute.cs
- sqlmetadatafactory.cs
- TextOutput.cs
- HtmlInputControl.cs
- GlyphingCache.cs
- TextMetrics.cs
- ScrollContentPresenter.cs
- PenCursorManager.cs
- XmlElementAttribute.cs
- TranslateTransform3D.cs
- BinaryReader.cs
- PathGradientBrush.cs
- MobileContainerDesigner.cs
- Win32Exception.cs
- ClientData.cs
- EncoderReplacementFallback.cs
- MailDefinition.cs
- SqlParameterizer.cs
- ExceptionTrace.cs
- StackOverflowException.cs
- StorageMappingItemCollection.cs
- AuthenticationSection.cs
- LockedBorderGlyph.cs
- ListChangedEventArgs.cs
- RemotingException.cs
- TableLayoutPanelCodeDomSerializer.cs
- Part.cs
- RelationshipType.cs
- UserControlCodeDomTreeGenerator.cs
- MobileControlBuilder.cs
- EventMap.cs
- ConnectionManagementSection.cs
- EdmSchemaError.cs
- PrivilegeNotHeldException.cs
- SelectionPatternIdentifiers.cs
- Repeater.cs
- StylusTip.cs
- BulletChrome.cs
- QilLiteral.cs
- RSAPKCS1SignatureDeformatter.cs
- SQLChars.cs
- TransactionProtocol.cs
- XmlAttributeOverrides.cs
- TextDataBindingHandler.cs
- OracleConnection.cs
- ChangeBlockUndoRecord.cs
- ListGeneralPage.cs
- MsmqOutputMessage.cs
- NonBatchDirectoryCompiler.cs
- VarInfo.cs
- ClaimSet.cs
- RichTextBoxContextMenu.cs
- ImageFormat.cs
- DataControlFieldHeaderCell.cs
- FileDetails.cs
- LinqExpressionNormalizer.cs
- HtmlEmptyTagControlBuilder.cs
- DataGridrowEditEndingEventArgs.cs
- SoapDocumentServiceAttribute.cs
- ResourcesChangeInfo.cs
- MetadataArtifactLoaderCompositeFile.cs
- Encoding.cs
- Pen.cs
- ADMembershipProvider.cs
- SharedHttpsTransportManager.cs
- AstNode.cs
- DomNameTable.cs
- DynamicMetaObjectBinder.cs
- ImageCodecInfo.cs
- Translator.cs
- X509Chain.cs
- ClientUtils.cs
- DataGridViewAccessibleObject.cs
- ConnectionInterfaceCollection.cs
- HwndStylusInputProvider.cs
- DSASignatureDeformatter.cs
- XmlSchemaAnnotation.cs
- SecurityKeyIdentifier.cs
- SiteMap.cs
- QilGenerator.cs
- XmlLinkedNode.cs
- StringUtil.cs
- Matrix3D.cs
- WindowHideOrCloseTracker.cs
- PeerEndPoint.cs
- EditingMode.cs
- ConfigurationException.cs