Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 : [....] 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
- ConfigurationValidatorBase.cs
- VBCodeProvider.cs
- NetworkStream.cs
- CallInfo.cs
- WindowsGraphics2.cs
- MediaSystem.cs
- LayeredChannelListener.cs
- DispatcherFrame.cs
- LogLogRecordHeader.cs
- WebScriptMetadataInstanceContextProvider.cs
- ListBoxItem.cs
- SqlMethodCallConverter.cs
- ResourcePool.cs
- NCryptSafeHandles.cs
- QueryComponents.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- WorkflowMarkupSerializerMapping.cs
- ListBindingConverter.cs
- ActivationServices.cs
- ReadOnlyCollection.cs
- coordinator.cs
- MimeParameterWriter.cs
- DataObjectMethodAttribute.cs
- SoundPlayer.cs
- SizeF.cs
- DiscoveryReference.cs
- DeferredReference.cs
- CoTaskMemUnicodeSafeHandle.cs
- ParameterBinding.cs
- SafeEventLogWriteHandle.cs
- ReturnEventArgs.cs
- OutputCacheSettings.cs
- TimestampInformation.cs
- HttpCookie.cs
- MatcherBuilder.cs
- MaxMessageSizeStream.cs
- Mutex.cs
- TextRunProperties.cs
- DrawingContextWalker.cs
- RC2CryptoServiceProvider.cs
- Pair.cs
- VectorAnimationBase.cs
- BinaryCommonClasses.cs
- SelectionEditor.cs
- UrlParameterReader.cs
- TdsEnums.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- SrgsElementList.cs
- Compress.cs
- QilFactory.cs
- recordstatescratchpad.cs
- SelectionProviderWrapper.cs
- SoapTypeAttribute.cs
- TraceSection.cs
- LogRecordSequence.cs
- VarRemapper.cs
- ProxyWebPartConnectionCollection.cs
- TreeNode.cs
- CapabilitiesState.cs
- nulltextcontainer.cs
- UidPropertyAttribute.cs
- ContextStaticAttribute.cs
- _HeaderInfo.cs
- PeerNameRegistration.cs
- FragmentQueryKB.cs
- ParserContext.cs
- HttpListenerRequestTraceRecord.cs
- ComEventsInfo.cs
- LineUtil.cs
- DbConnectionPoolGroupProviderInfo.cs
- ResXDataNode.cs
- StackOverflowException.cs
- SemanticBasicElement.cs
- XmlSchemaSimpleContentRestriction.cs
- ClipboardProcessor.cs
- StorageComplexTypeMapping.cs
- GeneralTransform3DGroup.cs
- DebugTracing.cs
- PathParser.cs
- Triangle.cs
- Column.cs
- HttpListener.cs
- ResXResourceReader.cs
- precedingquery.cs
- ToolStripArrowRenderEventArgs.cs
- LinkArea.cs
- PackageDigitalSignature.cs
- CommentEmitter.cs
- _SSPISessionCache.cs
- HostingEnvironmentException.cs
- IndexedWhereQueryOperator.cs
- XmlCharType.cs
- SplitterCancelEvent.cs
- FileLogRecord.cs
- ParserStreamGeometryContext.cs
- SqlUtil.cs
- CriticalHandle.cs
- MessageQueueCriteria.cs
- SqlNotificationRequest.cs
- ReverseComparer.cs