Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- MaskedTextBoxTextEditor.cs
- BaseAutoFormat.cs
- LookupBindingPropertiesAttribute.cs
- CodeStatementCollection.cs
- ViewSimplifier.cs
- SrgsRulesCollection.cs
- PackWebRequest.cs
- TextEditorThreadLocalStore.cs
- SelectionHighlightInfo.cs
- WindowsListViewSubItem.cs
- IdentityReference.cs
- MarkerProperties.cs
- LambdaCompiler.Statements.cs
- Zone.cs
- XmlQuerySequence.cs
- DbDataRecord.cs
- XmlAggregates.cs
- Util.cs
- dbenumerator.cs
- CacheSection.cs
- EventEntry.cs
- ErrorRuntimeConfig.cs
- PatternMatchRules.cs
- XslTransformFileEditor.cs
- PeerResolverMode.cs
- WebBrowserUriTypeConverter.cs
- TextBox.cs
- DNS.cs
- newinstructionaction.cs
- Vector3DIndependentAnimationStorage.cs
- InvokeMemberBinder.cs
- ServiceOperationInfoTypeConverter.cs
- AdapterUtil.cs
- Scripts.cs
- APCustomTypeDescriptor.cs
- TreeViewEvent.cs
- RadioButtonStandardAdapter.cs
- ObjRef.cs
- XslAst.cs
- AudioDeviceOut.cs
- DataContractJsonSerializer.cs
- RichTextBoxDesigner.cs
- XmlFileEditor.cs
- XslTransform.cs
- CodeSubDirectoriesCollection.cs
- ConstraintConverter.cs
- ExceptionUtil.cs
- EntityContainerEmitter.cs
- initElementDictionary.cs
- UserControlAutomationPeer.cs
- DateTimeConstantAttribute.cs
- StreamSecurityUpgradeInitiator.cs
- ConsoleCancelEventArgs.cs
- ErrorRuntimeConfig.cs
- SystemKeyConverter.cs
- activationcontext.cs
- PermissionSetEnumerator.cs
- KeyBinding.cs
- ColumnResizeAdorner.cs
- ImportCatalogPart.cs
- StringToken.cs
- VisualBasicExpressionConverter.cs
- EncryptedXml.cs
- PasswordPropertyTextAttribute.cs
- MenuScrollingVisibilityConverter.cs
- XPathSelectionIterator.cs
- IPAddressCollection.cs
- URLIdentityPermission.cs
- DashStyle.cs
- BuildProvidersCompiler.cs
- BidirectionalDictionary.cs
- ResizeGrip.cs
- CodeDirectoryCompiler.cs
- NullableDoubleMinMaxAggregationOperator.cs
- BrowserTree.cs
- DataSourceComponent.cs
- TypeConverter.cs
- ModelTreeEnumerator.cs
- SqlConnectionPoolProviderInfo.cs
- ButtonField.cs
- DataServiceExpressionVisitor.cs
- figurelength.cs
- DelayDesigner.cs
- PerformanceCountersElement.cs
- WebDisplayNameAttribute.cs
- TripleDES.cs
- FilteredAttributeCollection.cs
- DefaultObjectMappingItemCollection.cs
- TransactionInterop.cs
- OracleEncoding.cs
- SessionState.cs
- OracleConnectionString.cs
- AnimationClock.cs
- XmlSchemaChoice.cs
- SignatureToken.cs
- X509Certificate2.cs
- PointKeyFrameCollection.cs
- PeerInputChannelListener.cs
- GlobalizationAssembly.cs
- DataGridViewBand.cs