Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / securitycriticaldataformultiplegetandset.cs / 1305600 / 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
- TextFormatterImp.cs
- embossbitmapeffect.cs
- OutputScopeManager.cs
- Int32Rect.cs
- StreamingContext.cs
- EditorAttributeInfo.cs
- VerticalConnector.xaml.cs
- DispatchChannelSink.cs
- SessionPageStatePersister.cs
- SchemaCreator.cs
- MaskPropertyEditor.cs
- InfocardClientCredentials.cs
- FixedSOMFixedBlock.cs
- EntityDataSourceDesignerHelper.cs
- SingleConverter.cs
- SynchronizedInputProviderWrapper.cs
- XmlExceptionHelper.cs
- TextOutput.cs
- PeerCollaborationPermission.cs
- SafeThemeHandle.cs
- VerificationAttribute.cs
- CommandValueSerializer.cs
- SoapExtensionReflector.cs
- DetailsViewRow.cs
- SmiEventSink_Default.cs
- SingletonChannelAcceptor.cs
- MsmqIntegrationProcessProtocolHandler.cs
- DesignerCommandSet.cs
- AuthenticodeSignatureInformation.cs
- Exceptions.cs
- TemplateLookupAction.cs
- RoamingStoreFileUtility.cs
- ScriptModule.cs
- PixelShader.cs
- ClipboardData.cs
- DataGridViewRowHeaderCell.cs
- SignedPkcs7.cs
- ImpersonateTokenRef.cs
- HtmlInputFile.cs
- MenuTracker.cs
- NegotiateStream.cs
- MSG.cs
- DebugView.cs
- NavigateEvent.cs
- WindowsRebar.cs
- AutoGeneratedFieldProperties.cs
- WinInet.cs
- Domain.cs
- ToggleButtonAutomationPeer.cs
- formatter.cs
- UriParserTemplates.cs
- SspiNegotiationTokenProvider.cs
- ElementProxy.cs
- Accessors.cs
- Base64Encoder.cs
- AdRotator.cs
- MediaTimeline.cs
- WhitespaceRule.cs
- ResourceReader.cs
- StdRegProviderWrapper.cs
- XPathChildIterator.cs
- TreeNodeClickEventArgs.cs
- ValueUnavailableException.cs
- SqlInternalConnectionTds.cs
- HotSpot.cs
- SourceCollection.cs
- PagerSettings.cs
- MultipartContentParser.cs
- NavigationPropertyEmitter.cs
- PowerStatus.cs
- JoinSymbol.cs
- TemplatedMailWebEventProvider.cs
- FileChangeNotifier.cs
- CodeActivityMetadata.cs
- AlgoModule.cs
- NullEntityWrapper.cs
- BaseTreeIterator.cs
- SafeProcessHandle.cs
- HashRepartitionStream.cs
- SecuritySessionSecurityTokenProvider.cs
- TransformPattern.cs
- ConfigurationManagerInternal.cs
- HttpModuleActionCollection.cs
- QuotedPairReader.cs
- GraphicsContainer.cs
- DataViewManagerListItemTypeDescriptor.cs
- HitTestWithGeometryDrawingContextWalker.cs
- FilterableAttribute.cs
- XmlAttribute.cs
- UriSchemeKeyedCollection.cs
- storepermission.cs
- RangeValuePattern.cs
- WebPartConnectionsEventArgs.cs
- _TransmitFileOverlappedAsyncResult.cs
- WebPartAddingEventArgs.cs
- ForwardPositionQuery.cs
- StringSource.cs
- WeakEventManager.cs
- EncoderNLS.cs
- ClientTargetSection.cs