Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Shared / MS / Internal / securitycriticaldataformultiplegetandset.cs / 1 / securitycriticaldataformultiplegetandset.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: // This is a helper class to facilate the storage of data that's Critical for set and get. // This file is used as a cannister to hold values for Dynamic properties that are // not safe to expose and are built to be used only privately. // The other caveat is that these dynamic properties should not be needed in the // animation or databinding scenarios example: PresenationSource // // History: // 04/29/05 : akaza Created. // //--------------------------------------------------------------------------- using System ; using System.Security ; using MS.Internal.PresentationCore; namespace MS.Internal { [FriendAccessAllowed] // Built into Core, also used by Framework. internal class SecurityCriticalDataForMultipleGetAndSet{ /// /// Critical - "by definition" - this class is intended only for data that's /// Critical for setting. /// [SecurityCritical] internal SecurityCriticalDataForMultipleGetAndSet(T value) { _value = value; } ////// Critical - Setter is Critical "by definition" - this class is intended only /// for data that's Critical for setting. /// internal T Value { [SecurityCritical] get { return _value; } [SecurityCritical] set { _value = value; } } ////// Critical - by definition as this data is Critical for set. /// > [SecurityCritical] private T _value; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: // This is a helper class to facilate the storage of data that's Critical for set and get. // This file is used as a cannister to hold values for Dynamic properties that are // not safe to expose and are built to be used only privately. // The other caveat is that these dynamic properties should not be needed in the // animation or databinding scenarios example: PresenationSource // // History: // 04/29/05 : akaza Created. // //--------------------------------------------------------------------------- using System ; using System.Security ; using MS.Internal.PresentationCore; namespace MS.Internal { [FriendAccessAllowed] // Built into Core, also used by Framework. internal class SecurityCriticalDataForMultipleGetAndSet{ /// /// Critical - "by definition" - this class is intended only for data that's /// Critical for setting. /// [SecurityCritical] internal SecurityCriticalDataForMultipleGetAndSet(T value) { _value = value; } ////// Critical - Setter is Critical "by definition" - this class is intended only /// for data that's Critical for setting. /// internal T Value { [SecurityCritical] get { return _value; } [SecurityCritical] set { _value = value; } } ////// Critical - by definition as this data is Critical for set. /// > [SecurityCritical] private T _value; } } // 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
- SignatureDescription.cs
- JournalNavigationScope.cs
- coordinatorscratchpad.cs
- UseLicense.cs
- RoleManagerSection.cs
- ReachSerializer.cs
- HtmlTitle.cs
- VisualStyleElement.cs
- XsdDateTime.cs
- Table.cs
- EntityClassGenerator.cs
- HtmlInputReset.cs
- Peer.cs
- Error.cs
- WebControlsSection.cs
- PageEventArgs.cs
- InternalConfigSettingsFactory.cs
- DataGridViewLinkCell.cs
- TimeoutException.cs
- TimeStampChecker.cs
- ScriptComponentDescriptor.cs
- VariableQuery.cs
- ManagedIStream.cs
- NameTable.cs
- TextPointerBase.cs
- StatusBarDrawItemEvent.cs
- codemethodreferenceexpression.cs
- XhtmlStyleClass.cs
- CircleHotSpot.cs
- ServiceModelActivity.cs
- EngineSite.cs
- TabControl.cs
- PageRequestManager.cs
- precedingsibling.cs
- GrammarBuilder.cs
- DetailsViewRow.cs
- XmlDocumentSurrogate.cs
- MsmqIntegrationInputMessage.cs
- PerspectiveCamera.cs
- basecomparevalidator.cs
- AggregateNode.cs
- RemotingConfigParser.cs
- UDPClient.cs
- ResourceDictionary.cs
- BaseTemplateCodeDomTreeGenerator.cs
- EntityPropertyMappingAttribute.cs
- CodeDomConfigurationHandler.cs
- VBCodeProvider.cs
- UnsafeNativeMethods.cs
- XmlFormatWriterGenerator.cs
- WebPartCloseVerb.cs
- Facet.cs
- ElementNotAvailableException.cs
- XmlQueryCardinality.cs
- DES.cs
- filewebresponse.cs
- WebPartDeleteVerb.cs
- ResourceAssociationSet.cs
- SiteMapProvider.cs
- CodeSubDirectoriesCollection.cs
- TextContainer.cs
- OutputCacheModule.cs
- ChannelSinkStacks.cs
- TableRowsCollectionEditor.cs
- BindingNavigator.cs
- OutputScopeManager.cs
- RSAOAEPKeyExchangeFormatter.cs
- BitmapFrameEncode.cs
- BezierSegment.cs
- EventRouteFactory.cs
- MobileCapabilities.cs
- SystemKeyConverter.cs
- BamlTreeNode.cs
- unsafeIndexingFilterStream.cs
- ToolboxItemImageConverter.cs
- SessionSwitchEventArgs.cs
- AndMessageFilter.cs
- SelectionUIHandler.cs
- PointHitTestParameters.cs
- QualifiedCellIdBoolean.cs
- EventLogEntry.cs
- CqlLexer.cs
- ThreadSafeList.cs
- Processor.cs
- GPStream.cs
- InputBuffer.cs
- RoutingBehavior.cs
- Unit.cs
- BrowserDefinition.cs
- UIPropertyMetadata.cs
- GridViewSortEventArgs.cs
- DateTimeConverter.cs
- ExpressionPrinter.cs
- Evidence.cs
- TransactionScope.cs
- GeometryModel3D.cs
- basenumberconverter.cs
- ISO2022Encoding.cs
- MetafileHeaderWmf.cs
- ImageBrush.cs