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
- FusionWrap.cs
- DataMemberFieldConverter.cs
- SqlUtil.cs
- LogReservationCollection.cs
- XmlComment.cs
- HostedElements.cs
- CodeCompileUnit.cs
- VBIdentifierDesigner.xaml.cs
- ImageIndexConverter.cs
- MultiAsyncResult.cs
- HandleTable.cs
- Operand.cs
- PropertyToken.cs
- RepeaterItemEventArgs.cs
- QuaternionAnimation.cs
- EditingMode.cs
- FileSystemInfo.cs
- DoubleAnimationUsingPath.cs
- DtrList.cs
- AvTraceDetails.cs
- HashHelper.cs
- AlternationConverter.cs
- WaitHandleCannotBeOpenedException.cs
- ConvertTextFrag.cs
- FreezableCollection.cs
- BaseTemplateBuildProvider.cs
- SchemaManager.cs
- Attributes.cs
- BuildDependencySet.cs
- HttpListenerElement.cs
- OrCondition.cs
- RegionData.cs
- ServicesUtilities.cs
- GeneralTransform2DTo3D.cs
- EventSinkHelperWriter.cs
- SafeNativeMethods.cs
- Funcletizer.cs
- cache.cs
- SamlSerializer.cs
- Style.cs
- TlsnegoTokenProvider.cs
- KeyManager.cs
- PerformanceCounterCategory.cs
- BitmapData.cs
- ComponentGlyph.cs
- DateTimeOffset.cs
- TdsParserSessionPool.cs
- StreamGeometry.cs
- RegionData.cs
- codemethodreferenceexpression.cs
- SoapAttributeOverrides.cs
- BamlRecords.cs
- PriorityItem.cs
- PowerModeChangedEventArgs.cs
- XmlExtensionFunction.cs
- EventProviderTraceListener.cs
- DataGridViewTextBoxCell.cs
- ClientUtils.cs
- Effect.cs
- RootBuilder.cs
- ResourceType.cs
- NativeCppClassAttribute.cs
- ReadOnlyAttribute.cs
- TextRenderer.cs
- PropertyMapper.cs
- WorkflowTimerService.cs
- HtmlButton.cs
- Relationship.cs
- objectresult_tresulttype.cs
- DispatcherFrame.cs
- SqlVersion.cs
- ConfigurationProperty.cs
- RemoteArgument.cs
- BindingManagerDataErrorEventArgs.cs
- PartitionResolver.cs
- KeyedHashAlgorithm.cs
- PolicyStatement.cs
- PropertyCondition.cs
- CngAlgorithmGroup.cs
- GeneratedView.cs
- CodeParameterDeclarationExpression.cs
- DataGridViewTextBoxEditingControl.cs
- ValueOfAction.cs
- HexParser.cs
- Attribute.cs
- QueryLifecycle.cs
- WeakHashtable.cs
- OdbcConnection.cs
- TraceProvider.cs
- DataGridViewColumnCollection.cs
- IgnoreFileBuildProvider.cs
- StoreItemCollection.cs
- ExpressionBinding.cs
- ContentValidator.cs
- GeometryModel3D.cs
- SqlMetaData.cs
- DisplayInformation.cs
- OletxVolatileEnlistment.cs
- WindowsScroll.cs
- OptimalTextSource.cs