Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / System / Windows / SetterBase.cs / 1 / SetterBase.cs
/****************************************************************************\ * * File: SetterBase.cs * * TargetType property and event setting base class. * * Copyright (C) 2004 by Microsoft Corporation. All rights reserved. * \***************************************************************************/ namespace System.Windows { ////// TargetType property and event setting base class. /// [Localizability(LocalizationCategory.Ignore)] public abstract class SetterBase { ////// SetterBase construction /// internal SetterBase() { } ////// Returns the sealed state of this object. If true, any attempt /// at modifying the state of this object will trigger an exception. /// public bool IsSealed { get { return _sealed; } } internal virtual void Seal() { _sealed = true; } ////// Subclasses need to call this method before any changes to their state. /// protected void CheckSealed() { if ( _sealed ) { throw new InvalidOperationException(SR.Get(SRID.CannotChangeAfterSealed, "SetterBase")); } } // Derived private bool _sealed; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. /****************************************************************************\ * * File: SetterBase.cs * * TargetType property and event setting base class. * * Copyright (C) 2004 by Microsoft Corporation. All rights reserved. * \***************************************************************************/ namespace System.Windows { ////// TargetType property and event setting base class. /// [Localizability(LocalizationCategory.Ignore)] public abstract class SetterBase { ////// SetterBase construction /// internal SetterBase() { } ////// Returns the sealed state of this object. If true, any attempt /// at modifying the state of this object will trigger an exception. /// public bool IsSealed { get { return _sealed; } } internal virtual void Seal() { _sealed = true; } ////// Subclasses need to call this method before any changes to their state. /// protected void CheckSealed() { if ( _sealed ) { throw new InvalidOperationException(SR.Get(SRID.CannotChangeAfterSealed, "SetterBase")); } } // Derived private bool _sealed; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ToolboxItem.cs
- TextAction.cs
- DataExpression.cs
- BulletedListEventArgs.cs
- BookmarkCallbackWrapper.cs
- ItemsControlAutomationPeer.cs
- DeviceContexts.cs
- ClrProviderManifest.cs
- TableLayoutPanelCodeDomSerializer.cs
- XmlCompatibilityReader.cs
- TemplateManager.cs
- Hex.cs
- CFGGrammar.cs
- SystemFonts.cs
- BindUriHelper.cs
- HttpApplicationFactory.cs
- DocumentViewer.cs
- SafeNativeMethods.cs
- FormatSettings.cs
- HtmlTableRow.cs
- SectionInput.cs
- TypedColumnHandler.cs
- ListBoxAutomationPeer.cs
- ProcessHostMapPath.cs
- SqlUnionizer.cs
- CodeDomConfigurationHandler.cs
- DefaultValueTypeConverter.cs
- HttpProtocolImporter.cs
- BitmapDownload.cs
- controlskin.cs
- ElementHostPropertyMap.cs
- AnnotationAuthorChangedEventArgs.cs
- MultiBinding.cs
- DesignerExtenders.cs
- QilLiteral.cs
- Stacktrace.cs
- ValidationErrorInfo.cs
- BamlCollectionHolder.cs
- TimelineClockCollection.cs
- SchemaConstraints.cs
- DBDataPermissionAttribute.cs
- NonClientArea.cs
- XmlCharType.cs
- Membership.cs
- FormViewInsertedEventArgs.cs
- IssuedSecurityTokenParameters.cs
- SafeThemeHandle.cs
- InstanceDescriptor.cs
- Label.cs
- EndpointDiscoveryElement.cs
- EntityDataSourceQueryBuilder.cs
- RepeatBehavior.cs
- IPEndPoint.cs
- OrderedDictionary.cs
- HiddenFieldPageStatePersister.cs
- FilteredAttributeCollection.cs
- DataGridViewRow.cs
- EDesignUtil.cs
- SchemaEntity.cs
- ConstraintStruct.cs
- WindowsGraphicsCacheManager.cs
- TextComposition.cs
- AppSettingsReader.cs
- DataGridParentRows.cs
- FormViewUpdateEventArgs.cs
- KerberosReceiverSecurityToken.cs
- DataContractSerializerOperationBehavior.cs
- DecimalAverageAggregationOperator.cs
- ExtendedProtectionPolicyTypeConverter.cs
- FormDocumentDesigner.cs
- PingReply.cs
- TypeLibConverter.cs
- DocumentPageTextView.cs
- CodeCatchClause.cs
- codemethodreferenceexpression.cs
- StyleXamlTreeBuilder.cs
- XomlCompilerParameters.cs
- DetailsViewUpdatedEventArgs.cs
- UnsettableComboBox.cs
- NameValueConfigurationCollection.cs
- ToolStripItem.cs
- ConfigurationErrorsException.cs
- Html32TextWriter.cs
- LingerOption.cs
- BmpBitmapDecoder.cs
- ListViewTableRow.cs
- NameValuePermission.cs
- EnumMember.cs
- DataGridViewRowStateChangedEventArgs.cs
- LinqDataSourceDeleteEventArgs.cs
- MemberDomainMap.cs
- FontDriver.cs
- CompilerErrorCollection.cs
- PropertyValueEditor.cs
- XmlSchemaGroup.cs
- HttpListenerRequest.cs
- Collection.cs
- TransactionInterop.cs
- HyperLink.cs
- ExtendedProtectionPolicyTypeConverter.cs