Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeMemberProperty.cs / 1305376 / CodeMemberProperty.cs
//------------------------------------------------------------------------------ //// // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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. /// ///// // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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
- Model3D.cs
- ConnectionsZoneDesigner.cs
- ImmComposition.cs
- PathSegment.cs
- TemplatePartAttribute.cs
- SerializerProvider.cs
- ComponentDispatcherThread.cs
- BindStream.cs
- ListViewDeletedEventArgs.cs
- Geometry.cs
- CookieProtection.cs
- FunctionQuery.cs
- EntityContainerEntitySet.cs
- DataTableNameHandler.cs
- AdvancedBindingEditor.cs
- OpenTypeLayout.cs
- DocumentReference.cs
- TextSelectionHighlightLayer.cs
- HostingEnvironment.cs
- PropertyNames.cs
- IncrementalHitTester.cs
- InvokePattern.cs
- CursorConverter.cs
- Privilege.cs
- COMException.cs
- EnumDataContract.cs
- SqlDataSourceCache.cs
- ListViewPagedDataSource.cs
- ContainerControl.cs
- IISUnsafeMethods.cs
- DataGridViewRowHeaderCell.cs
- InfoCardSymmetricCrypto.cs
- DataGridViewLayoutData.cs
- TextEffectResolver.cs
- HostProtectionException.cs
- DBPropSet.cs
- DatagridviewDisplayedBandsData.cs
- HtmlLink.cs
- AssemblyNameProxy.cs
- ToolStripDropDownItem.cs
- DesignerWithHeader.cs
- IODescriptionAttribute.cs
- basecomparevalidator.cs
- WindowsToolbar.cs
- BreakRecordTable.cs
- GridViewItemAutomationPeer.cs
- SettingsProviderCollection.cs
- ClientConfigurationSystem.cs
- BitmapEffectDrawingContent.cs
- ContainerUtilities.cs
- DetailsView.cs
- HTMLTextWriter.cs
- FunctionDescription.cs
- DataSourceSelectArguments.cs
- InputElement.cs
- XhtmlBasicObjectListAdapter.cs
- DecoderExceptionFallback.cs
- XPathPatternBuilder.cs
- EdmValidator.cs
- SendKeys.cs
- NoClickablePointException.cs
- WindowsTab.cs
- ListDictionaryInternal.cs
- TreeBuilderBamlTranslator.cs
- IntegerValidator.cs
- WebReferencesBuildProvider.cs
- DtcInterfaces.cs
- SpeakProgressEventArgs.cs
- EventLogPermissionAttribute.cs
- StdValidatorsAndConverters.cs
- PriorityItem.cs
- BasicCellRelation.cs
- ClientTargetSection.cs
- VisualCollection.cs
- CellTreeNode.cs
- PathTooLongException.cs
- BufferModesCollection.cs
- StorageInfo.cs
- OperationAbortedException.cs
- TextMessageEncodingElement.cs
- LocalFileSettingsProvider.cs
- X509SubjectKeyIdentifierClause.cs
- ValueOfAction.cs
- COM2PictureConverter.cs
- ControllableStoryboardAction.cs
- ProcessHostConfigUtils.cs
- LassoSelectionBehavior.cs
- EastAsianLunisolarCalendar.cs
- ThreadWorkerController.cs
- OracleInternalConnection.cs
- CompressEmulationStream.cs
- ScriptingAuthenticationServiceSection.cs
- ComponentChangingEvent.cs
- MimeBasePart.cs
- DoubleLinkList.cs
- TransmissionStrategy.cs
- GeometryModel3D.cs
- CodeAttachEventStatement.cs
- XmlCountingReader.cs
- Error.cs