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
- Root.cs
- MinimizableAttributeTypeConverter.cs
- Calendar.cs
- ListViewGroupConverter.cs
- SHA256Managed.cs
- coordinatorfactory.cs
- TrustManagerPromptUI.cs
- NetworkInformationException.cs
- initElementDictionary.cs
- AnimationClockResource.cs
- SettingsProperty.cs
- UriPrefixTable.cs
- GridViewEditEventArgs.cs
- LinqDataSourceValidationException.cs
- PropertyChangedEventArgs.cs
- CodeDirectionExpression.cs
- ArrayWithOffset.cs
- LinkedResource.cs
- XmlNodeWriter.cs
- ControlParameter.cs
- Ray3DHitTestResult.cs
- DataPager.cs
- SerializationHelper.cs
- SortAction.cs
- MdiWindowListItemConverter.cs
- UpDownBase.cs
- ImageMap.cs
- ClientFormsAuthenticationCredentials.cs
- SmiEventSink.cs
- XmlAttribute.cs
- Hex.cs
- DataControlPagerLinkButton.cs
- Rule.cs
- WaitHandle.cs
- XmlCodeExporter.cs
- AspCompat.cs
- CookieParameter.cs
- InkCanvasSelectionAdorner.cs
- CopyCodeAction.cs
- ServiceHttpModule.cs
- SoundPlayerAction.cs
- Visitors.cs
- Calendar.cs
- Decoder.cs
- MetadataSource.cs
- PropertyCollection.cs
- Pen.cs
- SizeValueSerializer.cs
- HttpCacheParams.cs
- HttpApplicationFactory.cs
- TransformCollection.cs
- DragDeltaEventArgs.cs
- EntityStoreSchemaFilterEntry.cs
- MimeTypeAttribute.cs
- HoistedLocals.cs
- BaseWebProxyFinder.cs
- RequestQueryProcessor.cs
- VarInfo.cs
- VirtualPath.cs
- EmbeddedMailObjectsCollection.cs
- BitmapEffectGroup.cs
- webeventbuffer.cs
- PeerCustomResolverElement.cs
- WorkflowDefinitionDispenser.cs
- ConstNode.cs
- AtomParser.cs
- GenericEnumerator.cs
- StreamReader.cs
- PropertyChangedEventArgs.cs
- SwitchLevelAttribute.cs
- MatcherBuilder.cs
- Parallel.cs
- BufferBuilder.cs
- Proxy.cs
- PrinterResolution.cs
- HebrewNumber.cs
- ComplexTypeEmitter.cs
- CodeTypeReferenceCollection.cs
- PromptStyle.cs
- ToolBarPanel.cs
- ObjRef.cs
- StorageMappingFragment.cs
- Margins.cs
- ConfigurationStrings.cs
- DbProviderSpecificTypePropertyAttribute.cs
- OutputCacheProviderCollection.cs
- TextAction.cs
- CharKeyFrameCollection.cs
- QilGenerator.cs
- DynamicValidatorEventArgs.cs
- MailMessage.cs
- SortKey.cs
- webbrowsersite.cs
- DataServiceProviderWrapper.cs
- SkewTransform.cs
- WindowsAltTab.cs
- FileDataSourceCache.cs
- PenCursorManager.cs
- OutputCacheModule.cs
- BatchWriter.cs