Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- CollectionViewGroupRoot.cs
- AudioException.cs
- ColorDialog.cs
- Win32KeyboardDevice.cs
- ExpressionVisitorHelpers.cs
- objectquery_tresulttype.cs
- XmlSchemaComplexContentRestriction.cs
- DataGridDesigner.cs
- ContextInformation.cs
- PinnedBufferMemoryStream.cs
- DefaultBindingPropertyAttribute.cs
- Validator.cs
- XPathSingletonIterator.cs
- UserControl.cs
- HttpStreamXmlDictionaryReader.cs
- StringUtil.cs
- ParallelTimeline.cs
- SmiContextFactory.cs
- OdbcPermission.cs
- ArgIterator.cs
- HotSpotCollection.cs
- CachedFontFace.cs
- NetworkCredential.cs
- PartBasedPackageProperties.cs
- TraceLog.cs
- Inline.cs
- FreezableDefaultValueFactory.cs
- DispatchChannelSink.cs
- httpapplicationstate.cs
- OleDbRowUpdatingEvent.cs
- ActiveXHost.cs
- DiscreteKeyFrames.cs
- GenerateDerivedKeyRequest.cs
- SecurityRuntime.cs
- _TimerThread.cs
- CacheVirtualItemsEvent.cs
- bindurihelper.cs
- RoleGroup.cs
- ThemeableAttribute.cs
- Scripts.cs
- FamilyTypeface.cs
- CustomAttribute.cs
- GenericUriParser.cs
- DbConnectionStringCommon.cs
- EmptyEnumerable.cs
- EventWaitHandle.cs
- XmlMtomReader.cs
- RotateTransform.cs
- ClientApiGenerator.cs
- Matrix3D.cs
- TextRangeSerialization.cs
- HttpPostProtocolReflector.cs
- Margins.cs
- HelloMessageCD1.cs
- ResetableIterator.cs
- _FtpControlStream.cs
- EditorAttributeInfo.cs
- DesignerActionPanel.cs
- WindowsFormsHostPropertyMap.cs
- DataViewManagerListItemTypeDescriptor.cs
- FormsAuthenticationEventArgs.cs
- SubMenuStyleCollection.cs
- DataGridViewAccessibleObject.cs
- DtrList.cs
- MenuTracker.cs
- SwitchAttribute.cs
- AudioLevelUpdatedEventArgs.cs
- StdValidatorsAndConverters.cs
- LocationSectionRecord.cs
- HashRepartitionStream.cs
- EntityClientCacheEntry.cs
- MenuItemCollection.cs
- ThreadStartException.cs
- SspiHelper.cs
- FunctionMappingTranslator.cs
- sqlcontext.cs
- SourceInterpreter.cs
- ADMembershipProvider.cs
- SoapCodeExporter.cs
- SQLDateTime.cs
- SimpleWorkerRequest.cs
- BuildManager.cs
- DesignerActionPropertyItem.cs
- LoginName.cs
- AsyncCallback.cs
- IArgumentProvider.cs
- _ConnectStream.cs
- HttpListenerPrefixCollection.cs
- PropertyGeneratedEventArgs.cs
- UTF7Encoding.cs
- DataColumn.cs
- LocalizabilityAttribute.cs
- PublisherMembershipCondition.cs
- XmlHierarchicalEnumerable.cs
- BulletedList.cs
- TypeToArgumentTypeConverter.cs
- SoundPlayer.cs
- SecurityTokenValidationException.cs
- CriticalFinalizerObject.cs
- SqlDataSourceQueryEditor.cs