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
- TypeSystem.cs
- XmlSerializableReader.cs
- AdornerDecorator.cs
- UpdateTranslator.cs
- FormsAuthenticationUser.cs
- HttpCookie.cs
- MasterPageCodeDomTreeGenerator.cs
- Image.cs
- Stackframe.cs
- NamespaceTable.cs
- TextEditorContextMenu.cs
- securitycriticaldata.cs
- DataGridTablesFactory.cs
- Buffer.cs
- ProtectedConfigurationSection.cs
- ProfileSection.cs
- AsynchronousChannelMergeEnumerator.cs
- ProgramNode.cs
- StreamMarshaler.cs
- DeferrableContent.cs
- SQLGuid.cs
- SmtpException.cs
- DeviceSpecificDesigner.cs
- DeviceContext.cs
- ApplicationSettingsBase.cs
- DiscoveryReference.cs
- DataGridState.cs
- ObjectReaderCompiler.cs
- InputBinding.cs
- OleDbCommand.cs
- CreateCardRequest.cs
- OleDbInfoMessageEvent.cs
- ObjectPersistData.cs
- ExtensionSurface.cs
- WindowsGrip.cs
- DropSource.cs
- TypedTableBase.cs
- DES.cs
- EventItfInfo.cs
- SmtpException.cs
- ListManagerBindingsCollection.cs
- XmlSchemaSequence.cs
- FtpWebRequest.cs
- AndCondition.cs
- RelationshipNavigation.cs
- EntryWrittenEventArgs.cs
- SvcFileManager.cs
- Cursors.cs
- FlowDocumentView.cs
- CryptoStream.cs
- ThreadPool.cs
- wgx_commands.cs
- DataMemberAttribute.cs
- ResourcesBuildProvider.cs
- WindowProviderWrapper.cs
- MarkupExtensionParser.cs
- VoiceChangeEventArgs.cs
- AuthenticationModuleElementCollection.cs
- PointLight.cs
- HebrewNumber.cs
- PropertyReference.cs
- ViewLoader.cs
- NetPeerTcpBindingCollectionElement.cs
- XmlNodeReader.cs
- QueryServiceConfigHandle.cs
- MSHTMLHostUtil.cs
- DataGridViewBand.cs
- Win32Native.cs
- RadioButton.cs
- TileBrush.cs
- ClientApiGenerator.cs
- NamedPipeTransportSecurityElement.cs
- PartialCachingControl.cs
- Point3DCollection.cs
- WaitHandle.cs
- MessageEventSubscriptionService.cs
- CodeIdentifier.cs
- XmlDataLoader.cs
- CheckBox.cs
- WebMessageEncodingBindingElement.cs
- Component.cs
- TraceContext.cs
- XmlTextEncoder.cs
- CellConstantDomain.cs
- XmlRootAttribute.cs
- ListViewDeleteEventArgs.cs
- TransformerInfoCollection.cs
- RemoteTokenFactory.cs
- XXXInfos.cs
- StorageEntityTypeMapping.cs
- Int32CAMarshaler.cs
- ControlEvent.cs
- SQLRoleProvider.cs
- ReachSerializerAsync.cs
- Collection.cs
- DetailsViewInsertedEventArgs.cs
- SQLDecimal.cs
- SoapAttributeAttribute.cs
- FontWeights.cs
- IdentityModelDictionary.cs