Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / 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 : 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.
//----------------------------------------------------------------------------
//
//
// 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
- FillBehavior.cs
- ListSourceHelper.cs
- HyperLinkColumn.cs
- ScrollEvent.cs
- UnsafeNativeMethodsMilCoreApi.cs
- EngineSiteSapi.cs
- OdbcEnvironment.cs
- NameGenerator.cs
- HttpServerVarsCollection.cs
- UdpSocket.cs
- HttpContextServiceHost.cs
- PreviewPrintController.cs
- MimeTypeAttribute.cs
- TemplateField.cs
- x509store.cs
- Validator.cs
- TcpChannelListener.cs
- XmlDataImplementation.cs
- SweepDirectionValidation.cs
- TcpConnectionPoolSettingsElement.cs
- PageContentAsyncResult.cs
- XmlSchemaSimpleTypeUnion.cs
- IDReferencePropertyAttribute.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ImplicitInputBrush.cs
- PrintDocument.cs
- ClientSettingsSection.cs
- XmlFormatWriterGenerator.cs
- SqlProviderServices.cs
- AbstractExpressions.cs
- figurelength.cs
- CroppedBitmap.cs
- ProcessingInstructionAction.cs
- CopyCodeAction.cs
- ScrollBar.cs
- OleDbErrorCollection.cs
- ParameterReplacerVisitor.cs
- GridViewUpdatedEventArgs.cs
- ObjectDataSourceEventArgs.cs
- AutoGeneratedFieldProperties.cs
- PolyBezierSegment.cs
- CapabilitiesState.cs
- DbConnectionStringCommon.cs
- Highlights.cs
- DataServiceQuery.cs
- ContextQuery.cs
- TextEndOfLine.cs
- X509Extension.cs
- BitmapEffectGeneralTransform.cs
- ConfigXmlElement.cs
- webeventbuffer.cs
- Socket.cs
- DetailsViewRowCollection.cs
- ValidationErrorCollection.cs
- ChangesetResponse.cs
- InvokeBase.cs
- MethodCallConverter.cs
- GridToolTip.cs
- RuntimeVariableList.cs
- DesignerActionUIStateChangeEventArgs.cs
- EventlogProvider.cs
- CodeComment.cs
- ParameterToken.cs
- ObjRef.cs
- CustomBindingCollectionElement.cs
- SkipQueryOptionExpression.cs
- OdbcConnectionStringbuilder.cs
- ToolBarPanel.cs
- IOException.cs
- EditorZoneBase.cs
- CssStyleCollection.cs
- RSAPKCS1SignatureFormatter.cs
- ShapeTypeface.cs
- PropertyInfo.cs
- GradientStop.cs
- Vector.cs
- HttpCachePolicy.cs
- ProviderUtil.cs
- NumberFunctions.cs
- XPathAncestorQuery.cs
- KerberosSecurityTokenAuthenticator.cs
- DurableDispatcherAddressingFault.cs
- DesignerForm.cs
- NameTable.cs
- DeadCharTextComposition.cs
- NameObjectCollectionBase.cs
- AssemblyCollection.cs
- ExpressionBuilder.cs
- JoinGraph.cs
- DoubleAverageAggregationOperator.cs
- ReversePositionQuery.cs
- PropertyPushdownHelper.cs
- MeshGeometry3D.cs
- ApplicationException.cs
- DayRenderEvent.cs
- PixelShader.cs
- Registry.cs
- CurrentChangingEventManager.cs
- FormattedText.cs
- IxmlLineInfo.cs