Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ErrorsHelper.cs
- ProfileParameter.cs
- ThrowHelper.cs
- Scene3D.cs
- InOutArgument.cs
- SingleObjectCollection.cs
- GorillaCodec.cs
- TransformFinalBlockRequest.cs
- Base64Stream.cs
- DataPagerCommandEventArgs.cs
- SQLGuidStorage.cs
- HttpRequestTraceRecord.cs
- DragStartedEventArgs.cs
- VisualStates.cs
- PrintDialogException.cs
- SapiInterop.cs
- ReadOnlyMetadataCollection.cs
- OledbConnectionStringbuilder.cs
- ActivationServices.cs
- XPathDescendantIterator.cs
- SafeCloseHandleCritical.cs
- FormView.cs
- IsolatedStorage.cs
- PenLineCapValidation.cs
- SpeechEvent.cs
- XmlSchemaGroupRef.cs
- AppendHelper.cs
- LayoutUtils.cs
- DetailsViewDesigner.cs
- QueryAsyncResult.cs
- QueuePathDialog.cs
- ChildChangedEventArgs.cs
- designeractionlistschangedeventargs.cs
- DrawingCollection.cs
- TaskHelper.cs
- ContextMenu.cs
- XmlUtf8RawTextWriter.cs
- _FtpDataStream.cs
- TypeTypeConverter.cs
- Int32Converter.cs
- Adorner.cs
- ObjectDataSourceEventArgs.cs
- PathData.cs
- XPathMessageFilterElement.cs
- ValueChangedEventManager.cs
- RangeValidator.cs
- UntypedNullExpression.cs
- DataStorage.cs
- GradientStop.cs
- SerializableTypeCodeDomSerializer.cs
- SchemaImporterExtensionsSection.cs
- SecurityUtils.cs
- SqlFlattener.cs
- TempEnvironment.cs
- SapiGrammar.cs
- DataTable.cs
- UrlMappingsSection.cs
- StringStorage.cs
- CatalogZoneAutoFormat.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- SoapException.cs
- WorkflowInstance.cs
- SafeReadContext.cs
- CodeDomSerializerBase.cs
- MessageSecurityProtocolFactory.cs
- BasicExpressionVisitor.cs
- PageBuildProvider.cs
- Logging.cs
- StreamWriter.cs
- BinaryConverter.cs
- CodeFieldReferenceExpression.cs
- TimeoutTimer.cs
- TextContainerHelper.cs
- IList.cs
- RIPEMD160Managed.cs
- TransactionContextValidator.cs
- FixedSOMLineRanges.cs
- ModelTreeManager.cs
- ColorConverter.cs
- ClientProxyGenerator.cs
- WindowsSlider.cs
- Main.cs
- DiscardableAttribute.cs
- WinEventHandler.cs
- TriggerActionCollection.cs
- DataListItemCollection.cs
- CheckableControlBaseAdapter.cs
- ThemeableAttribute.cs
- DataColumnMapping.cs
- CounterSet.cs
- ScrollBar.cs
- COM2ComponentEditor.cs
- UIAgentMonitor.cs
- DataGridItemEventArgs.cs
- DbConnectionPoolGroup.cs
- UseAttributeSetsAction.cs
- RefreshEventArgs.cs
- FontSource.cs
- CreateUserWizard.cs
- RegisteredHiddenField.cs