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
- UIElementHelper.cs
- QuadraticBezierSegment.cs
- DesignerDataTableBase.cs
- Slider.cs
- Package.cs
- DataGridViewElement.cs
- HtmlFormWrapper.cs
- XmlSubtreeReader.cs
- WsrmTraceRecord.cs
- RangeValidator.cs
- GPStream.cs
- ImageCodecInfoPrivate.cs
- SecurityTokenProvider.cs
- Token.cs
- ReadOnlyCollectionBase.cs
- TextElementCollection.cs
- WindowsSlider.cs
- DashStyle.cs
- ListDictionary.cs
- __ConsoleStream.cs
- EntityDataSourceDataSelectionPanel.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- XmlNavigatorFilter.cs
- SQLInt32.cs
- ISCIIEncoding.cs
- FullTextBreakpoint.cs
- SettingsAttributes.cs
- RecognizedAudio.cs
- AspNetSynchronizationContext.cs
- CharConverter.cs
- SolidColorBrush.cs
- PlaceHolder.cs
- shaperfactoryquerycachekey.cs
- DateTimeConstantAttribute.cs
- TreeBuilderBamlTranslator.cs
- StringBuilder.cs
- VirtualPathData.cs
- XPathScanner.cs
- RepeatInfo.cs
- DBCSCodePageEncoding.cs
- SuppressMergeCheckAttribute.cs
- StronglyTypedResourceBuilder.cs
- CompositeControlDesigner.cs
- HwndAppCommandInputProvider.cs
- ScopeElementCollection.cs
- DesignerActionItemCollection.cs
- RootBrowserWindowProxy.cs
- LeftCellWrapper.cs
- ParamArrayAttribute.cs
- rsa.cs
- ApplyHostConfigurationBehavior.cs
- MapPathBasedVirtualPathProvider.cs
- SortDescription.cs
- SecurityElement.cs
- TransformerInfo.cs
- ThreadPoolTaskScheduler.cs
- Dictionary.cs
- InternalEnumValidatorAttribute.cs
- ClipboardData.cs
- HttpGetServerProtocol.cs
- XmlNotation.cs
- QilLiteral.cs
- StrokeDescriptor.cs
- IntSecurity.cs
- SqlWriter.cs
- RefreshPropertiesAttribute.cs
- NullableFloatSumAggregationOperator.cs
- DiscreteKeyFrames.cs
- SafeRightsManagementSessionHandle.cs
- ProtocolsSection.cs
- ThousandthOfEmRealDoubles.cs
- DESCryptoServiceProvider.cs
- TranslateTransform.cs
- Validator.cs
- DataKeyArray.cs
- DataSvcMapFile.cs
- Events.cs
- UnaryExpression.cs
- JumpList.cs
- MetadataArtifactLoaderFile.cs
- XmlSchemaElement.cs
- ContentPresenter.cs
- SqlNamer.cs
- DbgUtil.cs
- TargetException.cs
- SessionMode.cs
- SvcFileManager.cs
- ConstantExpression.cs
- EditorBrowsableAttribute.cs
- FormsAuthenticationConfiguration.cs
- Types.cs
- WebEventTraceProvider.cs
- SqlErrorCollection.cs
- Pkcs7Recipient.cs
- PersonalizationEntry.cs
- ListViewItemSelectionChangedEvent.cs
- PassportAuthenticationEventArgs.cs
- HtmlTitle.cs
- NetTcpBindingCollectionElement.cs
- TraceHelpers.cs