Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- OleStrCAMarshaler.cs
- File.cs
- PropertyValueEditor.cs
- Internal.cs
- PersianCalendar.cs
- TabRenderer.cs
- ColorTransformHelper.cs
- DataSpaceManager.cs
- ContentPropertyAttribute.cs
- _FtpDataStream.cs
- ImageInfo.cs
- IApplicationTrustManager.cs
- MachinePropertyVariants.cs
- Helpers.cs
- PerfCounters.cs
- URLIdentityPermission.cs
- UserControl.cs
- GraphicsPathIterator.cs
- SqlNamer.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- RangeValuePatternIdentifiers.cs
- ComponentResourceKeyConverter.cs
- ThrowHelper.cs
- RetrieveVirtualItemEventArgs.cs
- ThousandthOfEmRealDoubles.cs
- cache.cs
- DynamicRouteExpression.cs
- StackSpiller.cs
- ColorDialog.cs
- InfoCardRSACryptoProvider.cs
- Restrictions.cs
- DataSysAttribute.cs
- ExpressionTextBox.xaml.cs
- XamlFilter.cs
- ExecutionContext.cs
- SyntaxCheck.cs
- BufferModesCollection.cs
- CryptoConfig.cs
- SizeAnimationUsingKeyFrames.cs
- TextBox.cs
- StylusPlugInCollection.cs
- RadialGradientBrush.cs
- ProxyManager.cs
- _TLSstream.cs
- EdmConstants.cs
- DataGridViewRowEventArgs.cs
- ControlPropertyNameConverter.cs
- ObjectViewListener.cs
- PartEditor.cs
- MetaModel.cs
- FactoryId.cs
- SupportsEventValidationAttribute.cs
- Rule.cs
- _SingleItemRequestCache.cs
- DocumentViewerAutomationPeer.cs
- ScrollBar.cs
- PixelFormat.cs
- MutexSecurity.cs
- MasterPageCodeDomTreeGenerator.cs
- thaishape.cs
- IisTraceListener.cs
- FacetValues.cs
- Lasso.cs
- ScriptDescriptor.cs
- DocumentGridContextMenu.cs
- DocumentPageTextView.cs
- Int32CollectionValueSerializer.cs
- ProxyFragment.cs
- SHA1Managed.cs
- TypedElement.cs
- NetTcpSecurity.cs
- WebPageTraceListener.cs
- Rect.cs
- XmlDataCollection.cs
- ConfigXmlReader.cs
- ParameterRetriever.cs
- HttpResponse.cs
- BufferedStream2.cs
- Mapping.cs
- SafeBitVector32.cs
- XhtmlBasicListAdapter.cs
- LogExtentCollection.cs
- DataException.cs
- FormViewModeEventArgs.cs
- EmbeddedMailObjectsCollection.cs
- TextEndOfLine.cs
- GuidelineCollection.cs
- VerificationAttribute.cs
- StateRuntime.cs
- AxHost.cs
- Matrix3DValueSerializer.cs
- TextElementEnumerator.cs
- StringStorage.cs
- Component.cs
- WindowsButton.cs
- ConfigurationConverterBase.cs
- DescendantOverDescendantQuery.cs
- designeractionlistschangedeventargs.cs
- TextServicesDisplayAttribute.cs
- BamlLocalizerErrorNotifyEventArgs.cs