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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SignerInfo.cs
- DataRecordObjectView.cs
- MergeFailedEvent.cs
- PathParser.cs
- XmlQualifiedNameTest.cs
- ISAPIApplicationHost.cs
- ScrollItemProviderWrapper.cs
- ConsoleKeyInfo.cs
- XmlnsCompatibleWithAttribute.cs
- DataGridCellInfo.cs
- TextTreeDeleteContentUndoUnit.cs
- ListItemCollection.cs
- ControlValuePropertyAttribute.cs
- XmlDictionary.cs
- VisualTarget.cs
- TimeSpan.cs
- TagNameToTypeMapper.cs
- StreamGeometry.cs
- DiffuseMaterial.cs
- SupportingTokenProviderSpecification.cs
- LogConverter.cs
- NonVisualControlAttribute.cs
- ConditionalAttribute.cs
- ChannelServices.cs
- ConfigurationLocation.cs
- NativeMethods.cs
- ClientBuildManager.cs
- RuntimeEnvironment.cs
- DatatypeImplementation.cs
- ClientRolePrincipal.cs
- FormatterConverter.cs
- FutureFactory.cs
- TriggerAction.cs
- ScheduleChanges.cs
- EpmAttributeNameBuilder.cs
- PrintPreviewDialog.cs
- CodeDOMProvider.cs
- LoginDesigner.cs
- OnOperation.cs
- AnimatedTypeHelpers.cs
- CLRBindingWorker.cs
- SendKeys.cs
- MulticastNotSupportedException.cs
- DatePickerDateValidationErrorEventArgs.cs
- NotifyParentPropertyAttribute.cs
- ClipboardProcessor.cs
- DataGridViewCellStyleChangedEventArgs.cs
- TraceRecord.cs
- EncryptedXml.cs
- ThreadNeutralSemaphore.cs
- ApplicationCommands.cs
- Marshal.cs
- IsolatedStorageFileStream.cs
- FormatterServices.cs
- DataTable.cs
- DataGridState.cs
- WeakReferenceKey.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- SelectionService.cs
- WorkflowTransactionService.cs
- MaskedTextBoxDesigner.cs
- PropertyInformation.cs
- RepeatBehavior.cs
- WindowsToolbar.cs
- SelectedGridItemChangedEvent.cs
- FrameworkElement.cs
- OutOfMemoryException.cs
- HMACSHA384.cs
- BaseCodePageEncoding.cs
- StructureChangedEventArgs.cs
- QilTargetType.cs
- DocumentEventArgs.cs
- DbConnectionFactory.cs
- RegistryKey.cs
- _WinHttpWebProxyDataBuilder.cs
- Parser.cs
- PreviewKeyDownEventArgs.cs
- TargetParameterCountException.cs
- BitmapVisualManager.cs
- TypeBrowser.xaml.cs
- ResourceBinder.cs
- DataSvcMapFile.cs
- SecurityContext.cs
- EventSinkHelperWriter.cs
- RangeBaseAutomationPeer.cs
- DataGridColumnReorderingEventArgs.cs
- SequenceNumber.cs
- IIS7WorkerRequest.cs
- RoleService.cs
- TreeViewItemAutomationPeer.cs
- Condition.cs
- XmlResolver.cs
- CardSpaceSelector.cs
- MostlySingletonList.cs
- DataServices.cs
- ClockController.cs
- DbConnectionPoolCounters.cs
- CompoundFileIOPermission.cs
- ValueTypeFixupInfo.cs
- MenuItem.cs