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
- WebReferenceOptions.cs
- dataprotectionpermissionattribute.cs
- DataObjectCopyingEventArgs.cs
- MeshGeometry3D.cs
- PenContext.cs
- FormatPage.cs
- SiteMapNode.cs
- EntityModelBuildProvider.cs
- InitializerFacet.cs
- ThrowHelper.cs
- DataTableReaderListener.cs
- FontDifferentiator.cs
- DataGridToolTip.cs
- BroadcastEventHelper.cs
- RightsDocument.cs
- StrongTypingException.cs
- DefaultProxySection.cs
- XamlFilter.cs
- HttpProfileBase.cs
- TypeHelpers.cs
- OraclePermissionAttribute.cs
- EditBehavior.cs
- MSG.cs
- MatrixTransform.cs
- PropertiesTab.cs
- ElementsClipboardData.cs
- SerialPinChanges.cs
- ObjectDataSource.cs
- PriorityChain.cs
- Input.cs
- ConfigurationLoaderException.cs
- AstTree.cs
- NestPullup.cs
- WindowsListViewItemCheckBox.cs
- ProfileEventArgs.cs
- X509ChainPolicy.cs
- PrinterSettings.cs
- Executor.cs
- MonthChangedEventArgs.cs
- ValueUtilsSmi.cs
- WebPartTransformer.cs
- EngineSite.cs
- OletxEnlistment.cs
- ToolboxItem.cs
- CaseDesigner.xaml.cs
- StyleBamlTreeBuilder.cs
- DataServiceRequestArgs.cs
- ClientCredentialsSecurityTokenManager.cs
- MenuItemStyleCollectionEditor.cs
- DataGridAutomationPeer.cs
- SqlNotificationRequest.cs
- TreeNodeStyle.cs
- DataGridRow.cs
- WebRequestModulesSection.cs
- ScriptingSectionGroup.cs
- CmsInterop.cs
- MatrixKeyFrameCollection.cs
- CssStyleCollection.cs
- ColorKeyFrameCollection.cs
- DispatcherOperation.cs
- ClipboardData.cs
- FilteredDataSetHelper.cs
- Visual3D.cs
- TransformProviderWrapper.cs
- Point3D.cs
- PropertyEmitterBase.cs
- PeerSecurityHelpers.cs
- SegmentInfo.cs
- XmlSchemaSimpleTypeUnion.cs
- DbDataAdapter.cs
- MessageDecoder.cs
- InkCanvasSelectionAdorner.cs
- VirtualDirectoryMapping.cs
- RawTextInputReport.cs
- LingerOption.cs
- RegionIterator.cs
- ZoneIdentityPermission.cs
- PresentationAppDomainManager.cs
- SqlServices.cs
- AliasGenerator.cs
- DataAdapter.cs
- ExternalCalls.cs
- DataColumnMappingCollection.cs
- CommandEventArgs.cs
- TypeHelper.cs
- TableRow.cs
- IconHelper.cs
- PseudoWebRequest.cs
- Html32TextWriter.cs
- ObjectStateManagerMetadata.cs
- DataPagerFieldCollection.cs
- GeometryCollection.cs
- Memoizer.cs
- LongValidatorAttribute.cs
- DesignRelationCollection.cs
- CustomCredentialPolicy.cs
- HasCopySemanticsAttribute.cs
- DataException.cs
- SQLInt64.cs
- _NativeSSPI.cs