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
- GradientStop.cs
- SafeNativeMethods.cs
- SmiRequestExecutor.cs
- VectorKeyFrameCollection.cs
- LocalTransaction.cs
- ControlPropertyNameConverter.cs
- JournalEntryStack.cs
- Attributes.cs
- _AutoWebProxyScriptHelper.cs
- PictureBox.cs
- IsolatedStorageFilePermission.cs
- Serializer.cs
- ExpandSegmentCollection.cs
- WmfPlaceableFileHeader.cs
- DictionaryKeyPropertyAttribute.cs
- RightsManagementEncryptedStream.cs
- TeredoHelper.cs
- CircleHotSpot.cs
- XmlSerializerImportOptions.cs
- FilterException.cs
- XmlNamedNodeMap.cs
- XmlSchemaResource.cs
- DiscoveryCallbackBehavior.cs
- UMPAttributes.cs
- Calendar.cs
- FontWeights.cs
- ParserContext.cs
- MetadataException.cs
- MimeAnyImporter.cs
- ScrollBar.cs
- ListItemViewAttribute.cs
- TableItemPattern.cs
- ChildrenQuery.cs
- StopRoutingHandler.cs
- XmlObjectSerializerWriteContextComplex.cs
- XhtmlTextWriter.cs
- GridViewDeleteEventArgs.cs
- EngineSite.cs
- LogicalTreeHelper.cs
- HostingEnvironment.cs
- BuildProviderAppliesToAttribute.cs
- CallbackCorrelationInitializer.cs
- CircleHotSpot.cs
- HandleCollector.cs
- IImplicitResourceProvider.cs
- MatrixAnimationUsingPath.cs
- StructuralComparisons.cs
- CounterSet.cs
- PreviewPrintController.cs
- Icon.cs
- GridPattern.cs
- Dispatcher.cs
- XPathParser.cs
- ToolStripOverflowButton.cs
- ExtensibleClassFactory.cs
- StylusPlugInCollection.cs
- Certificate.cs
- AuthenticationConfig.cs
- BrowserCapabilitiesCodeGenerator.cs
- ThreadAbortException.cs
- CompilerResults.cs
- ReflectionUtil.cs
- MailWebEventProvider.cs
- IMembershipProvider.cs
- FixedSOMFixedBlock.cs
- ButtonChrome.cs
- Control.cs
- ComponentChangedEvent.cs
- MarshalByRefObject.cs
- BindingExpressionBase.cs
- LogRecordSequence.cs
- CustomError.cs
- FileLevelControlBuilderAttribute.cs
- WindowsRichEditRange.cs
- ReferencedCollectionType.cs
- TcpAppDomainProtocolHandler.cs
- DataStorage.cs
- NativeMethodsOther.cs
- ObjectViewQueryResultData.cs
- xmlsaver.cs
- _HTTPDateParse.cs
- EventData.cs
- HMACSHA384.cs
- KeyBinding.cs
- StylusCaptureWithinProperty.cs
- SamlAudienceRestrictionCondition.cs
- DataTableClearEvent.cs
- Config.cs
- Sentence.cs
- ValidatedMobileControlConverter.cs
- OdbcParameter.cs
- SchemaImporter.cs
- ClientFormsIdentity.cs
- CodeSpit.cs
- EncodingDataItem.cs
- XmlStringTable.cs
- ReferentialConstraint.cs
- KeyPressEvent.cs
- Logging.cs
- validationstate.cs