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
- AssemblyBuilder.cs
- QueueSurrogate.cs
- DoWorkEventArgs.cs
- MoveSizeWinEventHandler.cs
- BamlLocalizableResourceKey.cs
- XPathScanner.cs
- Timer.cs
- WebBrowserUriTypeConverter.cs
- SQLConvert.cs
- PartitionerStatic.cs
- WpfWebRequestHelper.cs
- CommonProperties.cs
- CaseInsensitiveOrdinalStringComparer.cs
- Label.cs
- SessionStateContainer.cs
- ParallelRangeManager.cs
- MultipleViewPattern.cs
- CompressedStack.cs
- HttpRawResponse.cs
- LinkDesigner.cs
- GridItemCollection.cs
- DocumentXmlWriter.cs
- BlobPersonalizationState.cs
- MinimizableAttributeTypeConverter.cs
- RoleGroup.cs
- SqlResolver.cs
- ValidationService.cs
- ExternalException.cs
- NegotiationTokenAuthenticator.cs
- SchemaType.cs
- DocumentSchemaValidator.cs
- IsolatedStorageException.cs
- Internal.cs
- WorkflowRuntimeServiceElementCollection.cs
- PinnedBufferMemoryStream.cs
- RequestCachePolicy.cs
- StylusTip.cs
- QueryOptionExpression.cs
- EpmSyndicationContentSerializer.cs
- DbXmlEnabledProviderManifest.cs
- TypeSemantics.cs
- ReferenceEqualityComparer.cs
- FontDialog.cs
- XpsFontSerializationService.cs
- TemplateBindingExpression.cs
- MatrixCamera.cs
- NavigationExpr.cs
- XslException.cs
- Image.cs
- ComPlusServiceHost.cs
- CancelEventArgs.cs
- CopyNamespacesAction.cs
- HMACSHA256.cs
- ComponentSerializationService.cs
- CodeTypeConstructor.cs
- NativeMethods.cs
- PriorityChain.cs
- BaseParser.cs
- WpfPayload.cs
- MdiWindowListItemConverter.cs
- LabelAutomationPeer.cs
- DynamicILGenerator.cs
- ComponentCollection.cs
- Attributes.cs
- ImpersonationContext.cs
- DesignerActionListCollection.cs
- TextRunCache.cs
- ObjectList.cs
- ZipIOExtraFieldPaddingElement.cs
- UnmanagedMemoryStreamWrapper.cs
- CodeDomSerializerBase.cs
- OdbcFactory.cs
- _SpnDictionary.cs
- GeometryHitTestParameters.cs
- TableCell.cs
- CompilationSection.cs
- ListDictionary.cs
- DrawingBrush.cs
- TreeNodeBindingCollection.cs
- CFStream.cs
- InternalDuplexChannelListener.cs
- SortFieldComparer.cs
- HierarchicalDataBoundControlAdapter.cs
- HostedNamedPipeTransportManager.cs
- FocusTracker.cs
- DesignerCategoryAttribute.cs
- TreeNodeCollection.cs
- BrowserCapabilitiesFactoryBase.cs
- PenContexts.cs
- WebPartActionVerb.cs
- GACMembershipCondition.cs
- GeneralTransform3D.cs
- ValidationResult.cs
- _IPv6Address.cs
- ColorKeyFrameCollection.cs
- MenuRenderer.cs
- WorkflowControlEndpoint.cs
- NegotiateStream.cs
- BaseInfoTable.cs
- ScrollableControl.cs