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
- DataRowExtensions.cs
- SqlLiftWhereClauses.cs
- CfgParser.cs
- TileBrush.cs
- InkCanvasSelectionAdorner.cs
- Dump.cs
- Evidence.cs
- WindowsStatusBar.cs
- EmptyTextWriter.cs
- InvalidCastException.cs
- SqlFactory.cs
- RootContext.cs
- BaseHashHelper.cs
- ExceptionTranslationTable.cs
- WebBrowserEvent.cs
- ChangeBlockUndoRecord.cs
- MultipartIdentifier.cs
- WebConfigurationFileMap.cs
- HttpInputStream.cs
- ItemAutomationPeer.cs
- EntityDataSourceEntitySetNameItem.cs
- ContainsRowNumberChecker.cs
- SafeEventLogWriteHandle.cs
- EntityCommand.cs
- TextTreeExtractElementUndoUnit.cs
- NameValueConfigurationElement.cs
- ConfigurationFileMap.cs
- FormDocumentDesigner.cs
- RoleGroupCollection.cs
- Util.cs
- CodeMemberEvent.cs
- ChangeNode.cs
- CopyCodeAction.cs
- DependencyPropertyValueSerializer.cs
- PolicyManager.cs
- Propagator.cs
- CalendarSelectionChangedEventArgs.cs
- Facet.cs
- XPathAxisIterator.cs
- DataSourceXmlTextReader.cs
- Qualifier.cs
- HtmlEmptyTagControlBuilder.cs
- ListCollectionView.cs
- PeerCollaboration.cs
- Range.cs
- InputScopeNameConverter.cs
- EntityContainerRelationshipSet.cs
- NameSpaceExtractor.cs
- FunctionCommandText.cs
- DataControlImageButton.cs
- PerformanceCounterManager.cs
- ApplicationSecurityInfo.cs
- Int32Animation.cs
- WebPartDeleteVerb.cs
- HtmlControlPersistable.cs
- ProfileWorkflowElement.cs
- SoapInteropTypes.cs
- PropertyReferenceSerializer.cs
- SemanticValue.cs
- DataContract.cs
- XmlSubtreeReader.cs
- OpCellTreeNode.cs
- Win32.cs
- ReflectionHelper.cs
- DataMisalignedException.cs
- ArcSegment.cs
- TextServicesContext.cs
- BehaviorEditorPart.cs
- CopyOfAction.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- QilFunction.cs
- WsdlInspector.cs
- PropertyInformation.cs
- TextDecorationCollection.cs
- CharacterHit.cs
- ModelTreeEnumerator.cs
- Expressions.cs
- BuilderPropertyEntry.cs
- IdnMapping.cs
- OdbcFactory.cs
- OpenTypeLayoutCache.cs
- XmlSerializationGeneratedCode.cs
- ToolStripAdornerWindowService.cs
- CachedResourceDictionaryExtension.cs
- Exceptions.cs
- UntrustedRecipientException.cs
- DataServiceClientException.cs
- Triplet.cs
- ConnectionManagementElement.cs
- xmlfixedPageInfo.cs
- DataSourceControl.cs
- SQLDoubleStorage.cs
- SchemaElementDecl.cs
- EditorResources.cs
- Triangle.cs
- VBIdentifierName.cs
- SystemDropShadowChrome.cs
- TextRenderer.cs
- HttpValueCollection.cs
- MimeMultiPart.cs