Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 : [....] 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
- FlowSwitch.cs
- WebErrorHandler.cs
- Clipboard.cs
- CustomBindingElementCollection.cs
- TreeNodeStyleCollection.cs
- _NestedSingleAsyncResult.cs
- RSAOAEPKeyExchangeDeformatter.cs
- BaseValidator.cs
- CommonProperties.cs
- ConnectionPoint.cs
- WindowsComboBox.cs
- StreamReader.cs
- PointF.cs
- TypeConverterHelper.cs
- CodeAssignStatement.cs
- MachineKeySection.cs
- TypeExtensions.cs
- RepeaterCommandEventArgs.cs
- DateTimeParse.cs
- TypeConstant.cs
- ToolStripOverflow.cs
- _NetRes.cs
- FastEncoderWindow.cs
- PropertyIDSet.cs
- BaseComponentEditor.cs
- ConsumerConnectionPointCollection.cs
- AppLevelCompilationSectionCache.cs
- Literal.cs
- BinaryFormatterWriter.cs
- DocumentSequenceHighlightLayer.cs
- StylusPointDescription.cs
- PictureBoxDesigner.cs
- PolyLineSegmentFigureLogic.cs
- ProtocolsConfiguration.cs
- CryptoConfig.cs
- MSHTMLHost.cs
- TypeGeneratedEventArgs.cs
- OleDbParameter.cs
- DataTableClearEvent.cs
- PagedDataSource.cs
- DependencySource.cs
- TreeNodeCollection.cs
- InvalidMessageContractException.cs
- RemoteWebConfigurationHostServer.cs
- CodeIndexerExpression.cs
- SecurityKeyIdentifierClause.cs
- InkCollectionBehavior.cs
- Update.cs
- BatchWriter.cs
- AudioFormatConverter.cs
- DataServiceClientException.cs
- DataControlPagerLinkButton.cs
- XmlnsDefinitionAttribute.cs
- Asn1Utilities.cs
- MetadataUtil.cs
- URLIdentityPermission.cs
- InitializerFacet.cs
- XmlSignatureManifest.cs
- Point.cs
- ParseHttpDate.cs
- DoubleAnimationUsingPath.cs
- DataGridDetailsPresenterAutomationPeer.cs
- PolicyException.cs
- GlyphRunDrawing.cs
- VarInfo.cs
- TreeSet.cs
- SupportingTokenProviderSpecification.cs
- CFGGrammar.cs
- SortedList.cs
- AtomServiceDocumentSerializer.cs
- EpmContentDeSerializerBase.cs
- ResourceDictionary.cs
- CacheRequest.cs
- UnmanagedHandle.cs
- DrawingContextDrawingContextWalker.cs
- ChangeBlockUndoRecord.cs
- Privilege.cs
- CellLabel.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- BitmapImage.cs
- FormatConvertedBitmap.cs
- StringComparer.cs
- RegexFCD.cs
- SchemaElementDecl.cs
- MatrixTransform3D.cs
- Classification.cs
- XmlDigitalSignatureProcessor.cs
- TextComposition.cs
- PersianCalendar.cs
- WebPartHelpVerb.cs
- OLEDB_Util.cs
- ImageSourceConverter.cs
- TaskFormBase.cs
- OdbcCommand.cs
- InvalidPrinterException.cs
- FormViewPagerRow.cs
- XPathParser.cs
- HMACSHA512.cs
- PageThemeParser.cs
- ScrollPattern.cs