Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }/// 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
- HuffCodec.cs
- ProfileModule.cs
- PersonalizationDictionary.cs
- Rotation3D.cs
- ZipIOLocalFileDataDescriptor.cs
- DecimalConstantAttribute.cs
- GridItemProviderWrapper.cs
- UserControlBuildProvider.cs
- ReaderWriterLock.cs
- SourceElementsCollection.cs
- DataGridRowHeader.cs
- MessageQueueKey.cs
- Converter.cs
- SystemWebSectionGroup.cs
- Rect3DConverter.cs
- MemoryMappedView.cs
- TextBox.cs
- EndpointDiscoveryElement.cs
- ContentControl.cs
- ConstructorNeedsTagAttribute.cs
- X509Utils.cs
- SerializationStore.cs
- HttpModuleAction.cs
- CompletedAsyncResult.cs
- AsymmetricAlgorithm.cs
- DesignOnlyAttribute.cs
- LocalizabilityAttribute.cs
- DockPatternIdentifiers.cs
- MouseButtonEventArgs.cs
- Header.cs
- RTLAwareMessageBox.cs
- TextUtf8RawTextWriter.cs
- PhysicalAddress.cs
- Pair.cs
- ListCollectionView.cs
- DesignerLoader.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- ValidatorCollection.cs
- TreeNodeStyle.cs
- Positioning.cs
- _KerberosClient.cs
- WebResourceAttribute.cs
- SoundPlayerAction.cs
- TraceSection.cs
- InstancePersistenceCommand.cs
- CachedPathData.cs
- ReplyChannel.cs
- ModelServiceImpl.cs
- UndoEngine.cs
- ConfigXmlElement.cs
- PropertyPathConverter.cs
- DataGridRowAutomationPeer.cs
- ExtentJoinTreeNode.cs
- StyleSheet.cs
- UrlAuthorizationModule.cs
- UInt16Converter.cs
- AstNode.cs
- Cloud.cs
- BaseUriHelper.cs
- NoClickablePointException.cs
- UrlPath.cs
- WorkflowOwnershipException.cs
- TableChangeProcessor.cs
- KeyValueConfigurationElement.cs
- PropertyInformation.cs
- OracleTimeSpan.cs
- TaiwanCalendar.cs
- SafeHandle.cs
- ValueProviderWrapper.cs
- MethodInfo.cs
- TTSEngineProxy.cs
- ToolStripPanelRow.cs
- EncodingDataItem.cs
- TransactionProtocolConverter.cs
- TreeNodeBinding.cs
- DataGridViewCellStateChangedEventArgs.cs
- RootBuilder.cs
- WeakRefEnumerator.cs
- AssemblyAssociatedContentFileAttribute.cs
- IIS7UserPrincipal.cs
- TextInfo.cs
- ExtensionQuery.cs
- RegisteredDisposeScript.cs
- FormViewInsertEventArgs.cs
- XamlWriter.cs
- SessionStateSection.cs
- MutableAssemblyCacheEntry.cs
- ImageButton.cs
- ControlTemplate.cs
- DomainUpDown.cs
- EFAssociationProvider.cs
- GridItemPatternIdentifiers.cs
- storepermission.cs
- RegionData.cs
- PaintValueEventArgs.cs
- WindowsFormsHost.cs
- TextTreeUndoUnit.cs
- XamlHostingConfiguration.cs
- CodeMemberMethod.cs
- BoundField.cs