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
- FixedLineResult.cs
- Visitor.cs
- ClaimSet.cs
- Math.cs
- WebResponse.cs
- PtsHelper.cs
- XmlDataContract.cs
- ScrollProviderWrapper.cs
- SR.cs
- WindowsContainer.cs
- EdmTypeAttribute.cs
- DataRowChangeEvent.cs
- WebPartHeaderCloseVerb.cs
- DetailsViewPageEventArgs.cs
- Operand.cs
- VirtualPath.cs
- Util.cs
- TreeViewAutomationPeer.cs
- MulticastIPAddressInformationCollection.cs
- TCPListener.cs
- ObjectManager.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- SoapInteropTypes.cs
- StyleCollection.cs
- PropertyGridEditorPart.cs
- SQLBinaryStorage.cs
- DbProviderManifest.cs
- FeedUtils.cs
- XmlElementAttribute.cs
- EditableLabelControl.cs
- SetStoryboardSpeedRatio.cs
- XmlAttributeAttribute.cs
- UrlParameterWriter.cs
- TextServicesHost.cs
- XmlAnyElementAttributes.cs
- SingleResultAttribute.cs
- QuaternionAnimationBase.cs
- DocumentXmlWriter.cs
- DataGridPageChangedEventArgs.cs
- LogReserveAndAppendState.cs
- HttpWebRequestElement.cs
- Metadata.cs
- FormsAuthenticationUserCollection.cs
- HttpConfigurationSystem.cs
- TypedAsyncResult.cs
- StateManagedCollection.cs
- CodeAssignStatement.cs
- DocumentSequenceHighlightLayer.cs
- SqlDataSourceView.cs
- XPathAncestorIterator.cs
- XXXOnTypeBuilderInstantiation.cs
- FullTextBreakpoint.cs
- SignedInfo.cs
- AsyncOperation.cs
- HelloOperationCD1AsyncResult.cs
- WinInetCache.cs
- MailAddressCollection.cs
- CompilerInfo.cs
- ZoomingMessageFilter.cs
- NamedPipeTransportSecurityElement.cs
- SqlDataSourceStatusEventArgs.cs
- FileRegion.cs
- Int32AnimationBase.cs
- ProcessModule.cs
- CompiledRegexRunner.cs
- AlternateViewCollection.cs
- ColorKeyFrameCollection.cs
- StickyNoteHelper.cs
- OutputCacheSettingsSection.cs
- RawStylusActions.cs
- SchemaCollectionPreprocessor.cs
- MessageFault.cs
- ObjectAssociationEndMapping.cs
- PeerNameRegistration.cs
- DigestTraceRecordHelper.cs
- SqlProviderServices.cs
- EntityCommandCompilationException.cs
- WaitHandle.cs
- SchemaReference.cs
- QueryExpression.cs
- BoundPropertyEntry.cs
- AnnotationMap.cs
- StaticResourceExtension.cs
- CapabilitiesSection.cs
- RuleSettingsCollection.cs
- Buffer.cs
- OrderedDictionaryStateHelper.cs
- DataBoundLiteralControl.cs
- mediapermission.cs
- ImageListDesigner.cs
- Cursors.cs
- ThousandthOfEmRealPoints.cs
- CodeMethodReturnStatement.cs
- ListViewItem.cs
- CodeNamespaceCollection.cs
- DesignerHierarchicalDataSourceView.cs
- XmlParserContext.cs
- InputMethodStateTypeInfo.cs
- SaveFileDialog.cs
- ProtectedConfigurationProviderCollection.cs