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
- XDeferredAxisSource.cs
- InternalMappingException.cs
- PolicyManager.cs
- InputScope.cs
- CommonDialog.cs
- ProjectionPlanCompiler.cs
- PkcsMisc.cs
- GridViewDeleteEventArgs.cs
- LinkButton.cs
- TdsRecordBufferSetter.cs
- StorageRoot.cs
- FreezableOperations.cs
- ListBindableAttribute.cs
- RadialGradientBrush.cs
- IDictionary.cs
- TypeExtensionConverter.cs
- ListViewItem.cs
- SchemaImporter.cs
- ToolStripStatusLabel.cs
- HandlerBase.cs
- DataSpaceManager.cs
- IsolatedStorageFilePermission.cs
- SamlDoNotCacheCondition.cs
- ScriptResourceHandler.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SizeIndependentAnimationStorage.cs
- MethodCallExpression.cs
- XPathNode.cs
- BevelBitmapEffect.cs
- PromptStyle.cs
- WebPart.cs
- Module.cs
- Expression.cs
- SourceElementsCollection.cs
- HeaderUtility.cs
- localization.cs
- WinFormsUtils.cs
- MimeMapping.cs
- DocumentAutomationPeer.cs
- Inflater.cs
- BindingMAnagerBase.cs
- SingleConverter.cs
- ByteKeyFrameCollection.cs
- BitmapCodecInfo.cs
- xdrvalidator.cs
- LassoSelectionBehavior.cs
- XamlWrappingReader.cs
- XmlDataSource.cs
- ConfigXmlReader.cs
- StagingAreaInputItem.cs
- HttpProcessUtility.cs
- NodeInfo.cs
- SqlAliaser.cs
- Parallel.cs
- BufferModeSettings.cs
- TextRangeAdaptor.cs
- ValidationHelpers.cs
- WebBrowserUriTypeConverter.cs
- DefaultEventAttribute.cs
- DataTablePropertyDescriptor.cs
- WorkflowServiceBehavior.cs
- ButtonBaseAdapter.cs
- RenderCapability.cs
- ParseChildrenAsPropertiesAttribute.cs
- EUCJPEncoding.cs
- oledbconnectionstring.cs
- XmlRawWriter.cs
- UserControlAutomationPeer.cs
- BasicHttpSecurityElement.cs
- FrameworkPropertyMetadata.cs
- SingleConverter.cs
- DataRowChangeEvent.cs
- AutomationProperty.cs
- X509LogoTypeExtension.cs
- UpdatePanelTrigger.cs
- TextRangeAdaptor.cs
- AsyncWaitHandle.cs
- ButtonField.cs
- SqlGatherProducedAliases.cs
- ScriptingJsonSerializationSection.cs
- ArraySubsetEnumerator.cs
- NullableIntSumAggregationOperator.cs
- Stroke.cs
- Binding.cs
- MemoryFailPoint.cs
- StateRuntime.cs
- followingquery.cs
- XslTransform.cs
- MulticastOption.cs
- EventDescriptor.cs
- SeekableReadStream.cs
- SplayTreeNode.cs
- SamlSecurityTokenAuthenticator.cs
- DbConnectionPoolGroup.cs
- PrincipalPermission.cs
- WebSysDefaultValueAttribute.cs
- ResponseStream.cs
- ToolStripMenuItemDesigner.cs
- HashSetEqualityComparer.cs
- ParserStack.cs