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
- Compiler.cs
- PrimaryKeyTypeConverter.cs
- StringDictionary.cs
- CodeMemberMethod.cs
- LogFlushAsyncResult.cs
- ToolStripDropDownMenu.cs
- CompressEmulationStream.cs
- DateTime.cs
- DateTimeConstantAttribute.cs
- _NativeSSPI.cs
- OpenFileDialog.cs
- Int32Rect.cs
- TerminatorSinks.cs
- TreeViewItemAutomationPeer.cs
- EntityContainerAssociationSetEnd.cs
- PerspectiveCamera.cs
- DataAdapter.cs
- SetStoryboardSpeedRatio.cs
- TrueReadOnlyCollection.cs
- WebConfigManager.cs
- MethodSet.cs
- ComponentCodeDomSerializer.cs
- MobileTextWriter.cs
- DoubleLinkListEnumerator.cs
- ListControl.cs
- CatalogPartCollection.cs
- WebHttpSecurityModeHelper.cs
- KeyedCollection.cs
- SafeUserTokenHandle.cs
- Point4DValueSerializer.cs
- SchemaImporterExtensionElement.cs
- UpdatePanelTriggerCollection.cs
- BaseCodePageEncoding.cs
- Automation.cs
- TransformConverter.cs
- HtmlTitle.cs
- PathStreamGeometryContext.cs
- ImplicitInputBrush.cs
- SystemIPGlobalProperties.cs
- DesignerHierarchicalDataSourceView.cs
- CatalogPartCollection.cs
- RenderContext.cs
- CodeStatement.cs
- ActivityFunc.cs
- QuadraticBezierSegment.cs
- HandoffBehavior.cs
- ButtonBaseAdapter.cs
- PeerContact.cs
- SerializeAbsoluteContext.cs
- FontEmbeddingManager.cs
- MeasureData.cs
- AuthenticationService.cs
- ListViewGroupConverter.cs
- followingquery.cs
- XmlNodeComparer.cs
- HTTPAPI_VERSION.cs
- cookieexception.cs
- BasicDesignerLoader.cs
- UpdateTracker.cs
- InputMethodStateChangeEventArgs.cs
- NativeWindow.cs
- RelationshipConverter.cs
- ToolbarAUtomationPeer.cs
- ZipIOCentralDirectoryBlock.cs
- ResourceManager.cs
- TabControlToolboxItem.cs
- CodeFieldReferenceExpression.cs
- DefaultCommandConverter.cs
- ThousandthOfEmRealPoints.cs
- ALinqExpressionVisitor.cs
- GPRECTF.cs
- _NtlmClient.cs
- ReflectPropertyDescriptor.cs
- UnmanagedMarshal.cs
- SchemaCollectionPreprocessor.cs
- SQLStringStorage.cs
- WebPartMenu.cs
- TraceHelpers.cs
- AssemblyAssociatedContentFileAttribute.cs
- OracleNumber.cs
- _SecureChannel.cs
- ObjectQueryExecutionPlan.cs
- VersionPair.cs
- ClientSettingsSection.cs
- DesignerProperties.cs
- ReadOnlyKeyedCollection.cs
- RegisteredHiddenField.cs
- DefaultMergeHelper.cs
- StorageScalarPropertyMapping.cs
- DocumentApplicationDocumentViewer.cs
- WindowsImpersonationContext.cs
- WmfPlaceableFileHeader.cs
- RouteUrlExpressionBuilder.cs
- LicenseException.cs
- TemplatedMailWebEventProvider.cs
- SiteMapNodeItem.cs
- PersistenceTypeAttribute.cs
- RtfFormatStack.cs
- ContainsRowNumberChecker.cs
- TreeNodeBinding.cs