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
- RequestNavigateEventArgs.cs
- BindableTemplateBuilder.cs
- DataSourceHelper.cs
- LineMetrics.cs
- DomNameTable.cs
- ParallelDesigner.cs
- Brush.cs
- WindowsListViewScroll.cs
- ObjectToIdCache.cs
- ManagedWndProcTracker.cs
- PointCollectionConverter.cs
- SapiAttributeParser.cs
- followingquery.cs
- StaticResourceExtension.cs
- NullRuntimeConfig.cs
- TextElementCollectionHelper.cs
- GroupBox.cs
- InputLanguageCollection.cs
- Missing.cs
- dsa.cs
- EncryptedPackageFilter.cs
- FillErrorEventArgs.cs
- DataControlFieldCell.cs
- ZipIOCentralDirectoryFileHeader.cs
- FileDialog_Vista_Interop.cs
- ConfigXmlAttribute.cs
- CommandBinding.cs
- SQLGuid.cs
- ToolStripDropDownButton.cs
- ApplicationBuildProvider.cs
- _ContextAwareResult.cs
- TemplateField.cs
- Brush.cs
- ToolboxItemLoader.cs
- AssemblyResourceLoader.cs
- XmlSequenceWriter.cs
- FamilyTypefaceCollection.cs
- ProgressBar.cs
- Msec.cs
- TabItemWrapperAutomationPeer.cs
- InvokeProviderWrapper.cs
- CodeDomExtensionMethods.cs
- HMACSHA1.cs
- MessageAction.cs
- NetNamedPipeSecurityMode.cs
- CodeArrayCreateExpression.cs
- ReadOnlyDictionary.cs
- UIElementIsland.cs
- LocationReferenceValue.cs
- ComplexObject.cs
- NavigationExpr.cs
- HatchBrush.cs
- ExtentCqlBlock.cs
- GridProviderWrapper.cs
- TransactionChannel.cs
- SqlReferenceCollection.cs
- _SingleItemRequestCache.cs
- RoleManagerSection.cs
- DateTimePickerDesigner.cs
- EncodingDataItem.cs
- FormsAuthenticationCredentials.cs
- PolicyLevel.cs
- GenericAuthenticationEventArgs.cs
- Utility.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- LockCookie.cs
- COM2EnumConverter.cs
- MenuItemBinding.cs
- DesignerWidgets.cs
- TextBoxBaseDesigner.cs
- MobileTextWriter.cs
- CompositeCollectionView.cs
- AnnotationAdorner.cs
- SQLDecimalStorage.cs
- RuleAction.cs
- Version.cs
- DispatcherExceptionFilterEventArgs.cs
- SmtpLoginAuthenticationModule.cs
- TreeNodeMouseHoverEvent.cs
- _DigestClient.cs
- webeventbuffer.cs
- StringCollectionMarkupSerializer.cs
- FontFamily.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- AnnotationResourceCollection.cs
- MailAddressCollection.cs
- CultureInfoConverter.cs
- SoapAttributeOverrides.cs
- WSHttpBindingCollectionElement.cs
- RemotingConfiguration.cs
- ReceiveSecurityHeader.cs
- ContextMenu.cs
- DesignerOptionService.cs
- HttpListener.cs
- TransformDescriptor.cs
- StylusPointProperties.cs
- Char.cs
- ProfilePropertySettings.cs
- ApplicationCommands.cs
- PowerEase.cs