Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SrgsOneOf.cs
- HttpConfigurationSystem.cs
- CodeExpressionCollection.cs
- WebPartCloseVerb.cs
- SafeNativeMethodsOther.cs
- BufferedStream.cs
- UrlMappingsModule.cs
- XmlTextReaderImplHelpers.cs
- BufferedWebEventProvider.cs
- UiaCoreApi.cs
- XmlSchemaAnyAttribute.cs
- WindowsSlider.cs
- StateRuntime.cs
- XsltArgumentList.cs
- CharUnicodeInfo.cs
- SelectionItemPattern.cs
- ToolStripItem.cs
- AutoResizedEvent.cs
- SecurityTokenRequirement.cs
- ToolStripRenderer.cs
- DataList.cs
- LinqDataSourceHelper.cs
- ApplicationDirectoryMembershipCondition.cs
- TrustManager.cs
- RegistrationServices.cs
- StorageRoot.cs
- CustomAssemblyResolver.cs
- AnimatedTypeHelpers.cs
- Win32.cs
- XmlSerializableServices.cs
- ParameterBuilder.cs
- XDeferredAxisSource.cs
- DesignSurfaceCollection.cs
- CustomAttributeBuilder.cs
- ProcessModelInfo.cs
- QueryTask.cs
- MessageQueueEnumerator.cs
- ClientRuntimeConfig.cs
- NGCSerializationManager.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- HttpListenerException.cs
- PropertyPathWorker.cs
- RewritingSimplifier.cs
- UnsafeMethods.cs
- XmlEnumAttribute.cs
- AppModelKnownContentFactory.cs
- RequestQueue.cs
- CapacityStreamGeometryContext.cs
- SerializerProvider.cs
- TrustManagerPromptUI.cs
- DataBindingList.cs
- CodeCompiler.cs
- UriTemplateLiteralQueryValue.cs
- ResourceExpressionBuilder.cs
- ColumnMapTranslator.cs
- Int32CAMarshaler.cs
- TrackBar.cs
- CompilerResults.cs
- ThemeableAttribute.cs
- HotSpotCollection.cs
- DecodeHelper.cs
- AttributeCollection.cs
- ProofTokenCryptoHandle.cs
- XmlTextReader.cs
- Button.cs
- WsdlParser.cs
- XmlDocumentType.cs
- HostedHttpContext.cs
- DbDataRecord.cs
- pingexception.cs
- SingleKeyFrameCollection.cs
- SoapObjectInfo.cs
- SynchronizedKeyedCollection.cs
- UiaCoreApi.cs
- SyndicationSerializer.cs
- ReceiveContext.cs
- HtmlInputHidden.cs
- XmlExpressionDumper.cs
- ButtonAutomationPeer.cs
- ListParaClient.cs
- PowerEase.cs
- DataGridColumnHeadersPresenter.cs
- SaveFileDialog.cs
- PagedDataSource.cs
- ComNativeDescriptor.cs
- Constants.cs
- BaseUriHelper.cs
- InputProviderSite.cs
- iisPickupDirectory.cs
- AssemblyBuilderData.cs
- WmlPhoneCallAdapter.cs
- DataObjectEventArgs.cs
- AdPostCacheSubstitution.cs
- DependencyPropertyKind.cs
- InputProcessorProfilesLoader.cs
- XamlSerializationHelper.cs
- graph.cs
- TextPenaltyModule.cs
- TypeTypeConverter.cs
- PlainXmlDeserializer.cs