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
- WpfSharedXamlSchemaContext.cs
- CookieProtection.cs
- SiteMapNode.cs
- CorePropertiesFilter.cs
- DocumentXmlWriter.cs
- ArglessEventHandlerProxy.cs
- OrderByBuilder.cs
- SqlFactory.cs
- WebEvents.cs
- ObjectPersistData.cs
- SessionEndedEventArgs.cs
- DeadCharTextComposition.cs
- ConstraintCollection.cs
- ClientSponsor.cs
- MSAAWinEventWrap.cs
- PackageDigitalSignatureManager.cs
- HttpContextServiceHost.cs
- StaticSiteMapProvider.cs
- OdbcUtils.cs
- Mutex.cs
- CrossContextChannel.cs
- ProfileServiceManager.cs
- TdsValueSetter.cs
- ValueType.cs
- HtmlSelect.cs
- TrailingSpaceComparer.cs
- InfoCardUIAgent.cs
- ScalarRestriction.cs
- HiddenField.cs
- ImageAttributes.cs
- ApplicationManager.cs
- WebBrowserEvent.cs
- SqlDataSource.cs
- ipaddressinformationcollection.cs
- DbTypeMap.cs
- MetaForeignKeyColumn.cs
- SchemaCollectionCompiler.cs
- SqlRemoveConstantOrderBy.cs
- SoapProtocolImporter.cs
- PixelShader.cs
- GrammarBuilder.cs
- Interlocked.cs
- DNS.cs
- HMACSHA256.cs
- XPathAncestorQuery.cs
- StructuralType.cs
- WhitespaceRuleReader.cs
- SynchronizedReadOnlyCollection.cs
- NumericExpr.cs
- RadioButtonStandardAdapter.cs
- MetafileEditor.cs
- BuildProvider.cs
- FontDifferentiator.cs
- ISAPIWorkerRequest.cs
- PathStreamGeometryContext.cs
- HtmlInputSubmit.cs
- IndependentAnimationStorage.cs
- VisualBasicSettingsHandler.cs
- MemberProjectedSlot.cs
- ClientApiGenerator.cs
- DataBoundControlAdapter.cs
- Menu.cs
- MobilePage.cs
- CachedTypeface.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- TransactionBridgeSection.cs
- Matrix.cs
- MDIWindowDialog.cs
- ContextStack.cs
- DataGridDesigner.cs
- FontEmbeddingManager.cs
- UdpReplyToBehavior.cs
- RequestTimeoutManager.cs
- CodeTypeReferenceSerializer.cs
- Module.cs
- LoginCancelEventArgs.cs
- Domain.cs
- TypeConstant.cs
- NullableDecimalMinMaxAggregationOperator.cs
- regiisutil.cs
- NameScopePropertyAttribute.cs
- XmlAutoDetectWriter.cs
- DebugView.cs
- FragmentQueryProcessor.cs
- PageTheme.cs
- BitmapCodecInfoInternal.cs
- dsa.cs
- DropTarget.cs
- EdmRelationshipRoleAttribute.cs
- SqlVersion.cs
- returneventsaver.cs
- RequestCachingSection.cs
- InternalBufferOverflowException.cs
- WinInet.cs
- AdornerPresentationContext.cs
- SqlDataRecord.cs
- XhtmlBasicFormAdapter.cs
- NumericPagerField.cs
- CompressionTracing.cs
- DictionaryContent.cs