Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- StorageModelBuildProvider.cs
- RtfToXamlLexer.cs
- InfoCardAsymmetricCrypto.cs
- PnrpPeerResolverBindingElement.cs
- Vector3DCollection.cs
- Select.cs
- StateMachine.cs
- DataContractJsonSerializer.cs
- HttpChannelHelper.cs
- NumberAction.cs
- ComponentSerializationService.cs
- InstanceData.cs
- HTMLTagNameToTypeMapper.cs
- ModelUIElement3D.cs
- ColumnResizeAdorner.cs
- PieceDirectory.cs
- MoveSizeWinEventHandler.cs
- XmlMembersMapping.cs
- ConsoleEntryPoint.cs
- PipeConnection.cs
- XPathChildIterator.cs
- DiscoveryClientOutputChannel.cs
- SqlAliaser.cs
- RawUIStateInputReport.cs
- NumberFunctions.cs
- ResourceDescriptionAttribute.cs
- HuffmanTree.cs
- DefaultCommandConverter.cs
- ToolStripControlHost.cs
- SlipBehavior.cs
- CodeTypeReferenceCollection.cs
- DNS.cs
- WebControlsSection.cs
- TemplateBamlRecordReader.cs
- ListItemsPage.cs
- MimeBasePart.cs
- AggregationMinMaxHelpers.cs
- QuaternionValueSerializer.cs
- ConfigXmlDocument.cs
- HttpConfigurationSystem.cs
- RIPEMD160.cs
- Collection.cs
- BasicCellRelation.cs
- SecureUICommand.cs
- _BaseOverlappedAsyncResult.cs
- HashSetDebugView.cs
- ConstraintConverter.cs
- XmlUtilWriter.cs
- DataControlPagerLinkButton.cs
- TdsEnums.cs
- WindowsBrush.cs
- DbDeleteCommandTree.cs
- RuntimeCompatibilityAttribute.cs
- SuppressMergeCheckAttribute.cs
- ConnectionProviderAttribute.cs
- Int32EqualityComparer.cs
- WebPartsPersonalizationAuthorization.cs
- ListViewUpdatedEventArgs.cs
- PointF.cs
- DelegatingConfigHost.cs
- CssTextWriter.cs
- Hex.cs
- NGCSerializationManagerAsync.cs
- SqlStream.cs
- WebPartDeleteVerb.cs
- HttpStaticObjectsCollectionBase.cs
- LocatorPartList.cs
- FilterEventArgs.cs
- TableItemStyle.cs
- ManagementObjectSearcher.cs
- WebServiceTypeData.cs
- MsmqVerifier.cs
- DataFormats.cs
- RequiredAttributeAttribute.cs
- CompilerState.cs
- InstanceKey.cs
- TemplateControl.cs
- DescriptionCreator.cs
- EventSinkHelperWriter.cs
- TextElementEnumerator.cs
- PeerTransportListenAddressValidatorAttribute.cs
- Content.cs
- LabelLiteral.cs
- DataServiceConfiguration.cs
- MiniModule.cs
- SimpleTypeResolver.cs
- Mouse.cs
- ActivityInstance.cs
- FocusTracker.cs
- NullableConverter.cs
- CompilerState.cs
- Literal.cs
- FixedPageProcessor.cs
- WebServiceData.cs
- MonthChangedEventArgs.cs
- EmbeddedMailObject.cs
- ProxyGenerator.cs
- TextStore.cs
- BinaryFormatter.cs
- PreviewPrintController.cs