Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- WindowProviderWrapper.cs
- Predicate.cs
- LOSFormatter.cs
- ImageBrush.cs
- EntityDataSourceWizardForm.cs
- BinaryObjectReader.cs
- HtmlWindowCollection.cs
- FtpCachePolicyElement.cs
- MeshGeometry3D.cs
- Menu.cs
- ZoneIdentityPermission.cs
- Quad.cs
- HttpResponseHeader.cs
- SmtpClient.cs
- EntryPointNotFoundException.cs
- _PooledStream.cs
- ContextStaticAttribute.cs
- MulticastIPAddressInformationCollection.cs
- SafeSystemMetrics.cs
- ListViewDeletedEventArgs.cs
- RawTextInputReport.cs
- SQLDateTimeStorage.cs
- DbDataAdapter.cs
- MatrixTransform3D.cs
- followingsibling.cs
- DispatcherEventArgs.cs
- ListBindableAttribute.cs
- DataBindingList.cs
- CodeComment.cs
- QueryAsyncResult.cs
- WorkflowServiceInstance.cs
- SplitterCancelEvent.cs
- TextRangeAdaptor.cs
- TextRunCacheImp.cs
- TypeDescriptorContext.cs
- HttpsTransportBindingElement.cs
- PackagingUtilities.cs
- MessageHeaderException.cs
- InputDevice.cs
- DesignerActionItem.cs
- BindingMemberInfo.cs
- ProtectedConfiguration.cs
- TransportContext.cs
- GiveFeedbackEvent.cs
- DataListItemCollection.cs
- ProviderConnectionPoint.cs
- DbCommandTree.cs
- Path.cs
- RouteData.cs
- UTF8Encoding.cs
- Error.cs
- SendMessageChannelCache.cs
- WindowsListViewGroupSubsetLink.cs
- EventPropertyMap.cs
- FacetValueContainer.cs
- ListBoxChrome.cs
- ClassicBorderDecorator.cs
- ContentValidator.cs
- CellParaClient.cs
- OrderedDictionaryStateHelper.cs
- CommonXSendMessage.cs
- ContentTextAutomationPeer.cs
- Helpers.cs
- ChangeNode.cs
- TdsValueSetter.cs
- PerformanceCounterPermissionAttribute.cs
- Ref.cs
- NetStream.cs
- InvalidStoreProtectionKeyException.cs
- FilterEventArgs.cs
- TextEndOfSegment.cs
- ServiceActivationException.cs
- DbDataAdapter.cs
- DataGridViewColumnStateChangedEventArgs.cs
- TextTreePropertyUndoUnit.cs
- AbstractSvcMapFileLoader.cs
- PageHandlerFactory.cs
- EntityViewContainer.cs
- ListControl.cs
- RuntimeResourceSet.cs
- PolicyConversionContext.cs
- Privilege.cs
- SelectionEditingBehavior.cs
- EncodingDataItem.cs
- DataObject.cs
- SystemInfo.cs
- ParentUndoUnit.cs
- LinqDataSourceHelper.cs
- SQLUtility.cs
- TdsParserSafeHandles.cs
- DateTimeOffsetStorage.cs
- PasswordDeriveBytes.cs
- PixelShader.cs
- MdiWindowListStrip.cs
- ToolStripDropDownButton.cs
- SequentialWorkflowHeaderFooter.cs
- CollectionView.cs
- PersonalizationStateQuery.cs
- MarkupCompilePass1.cs
- TrailingSpaceComparer.cs