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
- RSAPKCS1SignatureDeformatter.cs
- TraceHandlerErrorFormatter.cs
- ContentDesigner.cs
- HostTimeoutsElement.cs
- ClonableStack.cs
- WsatAdminException.cs
- SymbolType.cs
- XhtmlConformanceSection.cs
- XmlSchemaValidationException.cs
- NetworkAddressChange.cs
- ParameterElement.cs
- configsystem.cs
- DiscreteKeyFrames.cs
- LayoutSettings.cs
- WindowsIdentity.cs
- BuildProvidersCompiler.cs
- AuthenticatedStream.cs
- BinaryObjectInfo.cs
- SessionStateItemCollection.cs
- Util.cs
- Trace.cs
- ChainOfResponsibility.cs
- AdPostCacheSubstitution.cs
- _AutoWebProxyScriptWrapper.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- mactripleDES.cs
- OSFeature.cs
- OleAutBinder.cs
- TrackBar.cs
- CellTreeNodeVisitors.cs
- LateBoundChannelParameterCollection.cs
- HttpFileCollection.cs
- FloaterParaClient.cs
- WindowsTooltip.cs
- ExpressionWriter.cs
- MenuItemCollection.cs
- DesignerActionUIStateChangeEventArgs.cs
- SelectionGlyphBase.cs
- XmlCharCheckingWriter.cs
- ImmutableObjectAttribute.cs
- XmlSignatureProperties.cs
- LicenseException.cs
- VisualProxy.cs
- MailSettingsSection.cs
- RegexTypeEditor.cs
- TextEditorLists.cs
- DetailsViewDeletedEventArgs.cs
- SpecialNameAttribute.cs
- PreloadedPackages.cs
- SupportingTokenProviderSpecification.cs
- ADMembershipUser.cs
- FloatSumAggregationOperator.cs
- TraceSource.cs
- WebBodyFormatMessageProperty.cs
- XPathDescendantIterator.cs
- Comparer.cs
- VectorCollection.cs
- PageContent.cs
- FixedDSBuilder.cs
- InheritanceAttribute.cs
- CodeGeneratorAttribute.cs
- ExpandSegmentCollection.cs
- TypeExtensions.cs
- XsdDuration.cs
- InitializationEventAttribute.cs
- HMAC.cs
- VisualTarget.cs
- IndentTextWriter.cs
- LocationReferenceEnvironment.cs
- NavigationFailedEventArgs.cs
- BamlResourceDeserializer.cs
- TextBoxBase.cs
- PersonalizationDictionary.cs
- CheckableControlBaseAdapter.cs
- OleDbConnectionInternal.cs
- Match.cs
- RegisteredArrayDeclaration.cs
- JsonQNameDataContract.cs
- DropShadowBitmapEffect.cs
- XmlSchemaInfo.cs
- MessageSmuggler.cs
- LogLogRecordHeader.cs
- PerspectiveCamera.cs
- SafeProcessHandle.cs
- TypeForwardedToAttribute.cs
- ChildChangedEventArgs.cs
- PresentationSource.cs
- GlyphInfoList.cs
- COM2EnumConverter.cs
- ProjectionCamera.cs
- TransformedBitmap.cs
- DBSqlParserColumnCollection.cs
- SessionState.cs
- DataGridViewCellConverter.cs
- TimeEnumHelper.cs
- CaseStatement.cs
- FormViewDeletedEventArgs.cs
- MenuBase.cs
- Transactions.cs
- ChannelDispatcherBase.cs