Code:
/ DotNET / DotNET / 8.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
- SignerInfo.cs
- BaseInfoTable.cs
- ApplicationProxyInternal.cs
- NullableBoolConverter.cs
- SessionStateUtil.cs
- OdbcConnectionOpen.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- SignedPkcs7.cs
- dbenumerator.cs
- CodeAttachEventStatement.cs
- BitmapEffectInput.cs
- SizeValueSerializer.cs
- WindowsTreeView.cs
- DataBinder.cs
- ScrollableControlDesigner.cs
- CodeCommentStatement.cs
- SecurityHelper.cs
- XmlReaderSettings.cs
- HttpListener.cs
- PasswordRecovery.cs
- login.cs
- NativeMethodsOther.cs
- MouseOverProperty.cs
- CorrelationService.cs
- AdornedElementPlaceholder.cs
- TemplateColumn.cs
- DataControlReference.cs
- ObjectRef.cs
- DebugHandleTracker.cs
- HttpDictionary.cs
- Enum.cs
- XmlSchemaSimpleTypeList.cs
- SmtpReplyReaderFactory.cs
- HtmlMeta.cs
- ImageAttributes.cs
- Scripts.cs
- StdRegProviderWrapper.cs
- SecurityDescriptor.cs
- ScrollData.cs
- EventLogInternal.cs
- QueryCacheKey.cs
- GroupItem.cs
- TypedDataSourceCodeGenerator.cs
- SiteMapDesignerDataSourceView.cs
- UdpConstants.cs
- PenLineCapValidation.cs
- SecurityPolicySection.cs
- AnalyzedTree.cs
- ButtonChrome.cs
- Msec.cs
- DoubleKeyFrameCollection.cs
- PreviewKeyDownEventArgs.cs
- Point4DValueSerializer.cs
- Expression.DebuggerProxy.cs
- WeakHashtable.cs
- ApplyTemplatesAction.cs
- SqlEnums.cs
- SectionUpdates.cs
- StrokeFIndices.cs
- XhtmlBasicPanelAdapter.cs
- HttpCookiesSection.cs
- DateTimeOffsetConverter.cs
- ClientBuildManager.cs
- X509CertificateCollection.cs
- EventEntry.cs
- InstanceLockQueryResult.cs
- AccessViolationException.cs
- SessionViewState.cs
- ColumnResizeUndoUnit.cs
- EpmContentSerializerBase.cs
- PathParser.cs
- DictionaryEntry.cs
- WebConfigurationHostFileChange.cs
- ILGenerator.cs
- ZipIOLocalFileBlock.cs
- Ref.cs
- StrongNameUtility.cs
- RelationshipSet.cs
- TransmissionStrategy.cs
- BaseParser.cs
- InstanceDataCollection.cs
- Mapping.cs
- GatewayDefinition.cs
- DataGridViewCellPaintingEventArgs.cs
- JsonWriter.cs
- BaseDataListDesigner.cs
- SafeNativeMethods.cs
- PropertyEmitterBase.cs
- StorageRoot.cs
- ValidatedControlConverter.cs
- DetailsViewCommandEventArgs.cs
- Propagator.JoinPropagator.cs
- _ProxyChain.cs
- graph.cs
- ComponentResourceKey.cs
- DashStyles.cs
- TextDecorationCollection.cs
- ControlTemplate.cs
- BindingManagerDataErrorEventArgs.cs
- TraceContextEventArgs.cs