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
- LogLogRecordHeader.cs
- DesigntimeLicenseContext.cs
- AssociationType.cs
- Track.cs
- FastEncoderWindow.cs
- AlphaSortedEnumConverter.cs
- HttpCacheParams.cs
- ExpandoObject.cs
- GlyphingCache.cs
- HtmlString.cs
- WebPart.cs
- ChangeDirector.cs
- Convert.cs
- XmlIterators.cs
- DrawingVisualDrawingContext.cs
- EncodingTable.cs
- DecimalStorage.cs
- AttributeCollection.cs
- ReadOnlyDictionary.cs
- ConfigurationValues.cs
- ExtractedStateEntry.cs
- DataExpression.cs
- ReadOnlyDictionary.cs
- AssociatedControlConverter.cs
- ForeignKeyConstraint.cs
- XPathExpr.cs
- ComponentEditorForm.cs
- PagesChangedEventArgs.cs
- AutomationPatternInfo.cs
- TypeUnloadedException.cs
- KeyTimeConverter.cs
- JoinTreeNode.cs
- ScriptManager.cs
- ProviderIncompatibleException.cs
- DataTemplateSelector.cs
- Schema.cs
- TraceProvider.cs
- RichTextBoxConstants.cs
- sqlinternaltransaction.cs
- ErrorTableItemStyle.cs
- EncryptedPackage.cs
- BufferedGenericXmlSecurityToken.cs
- X509Utils.cs
- EncoderParameter.cs
- EventRecord.cs
- ToolStripContentPanel.cs
- AccessDataSourceView.cs
- DecoderExceptionFallback.cs
- NamespaceEmitter.cs
- _Connection.cs
- WindowsToolbarItemAsMenuItem.cs
- StructuredType.cs
- VectorConverter.cs
- MSHTMLHost.cs
- SafeRegistryHandle.cs
- HtmlFormParameterWriter.cs
- DiscreteKeyFrames.cs
- CLRBindingWorker.cs
- NonBatchDirectoryCompiler.cs
- DataServiceRequest.cs
- TableRow.cs
- ControlType.cs
- HostProtectionPermission.cs
- WindowsTab.cs
- XmlMembersMapping.cs
- Margins.cs
- XmlILOptimizerVisitor.cs
- ExpressionConverter.cs
- SHA1CryptoServiceProvider.cs
- SqlCacheDependencyDatabaseCollection.cs
- xsdvalidator.cs
- XslVisitor.cs
- MediaScriptCommandRoutedEventArgs.cs
- DoubleIndependentAnimationStorage.cs
- InputBuffer.cs
- PathSegmentCollection.cs
- PeerPresenceInfo.cs
- UIElement.cs
- TickBar.cs
- LinkClickEvent.cs
- RangeValidator.cs
- SqlBulkCopyColumnMappingCollection.cs
- UrlUtility.cs
- DefaultBinder.cs
- BinaryVersion.cs
- NativeMethodsOther.cs
- Fonts.cs
- Proxy.cs
- AutomationPatternInfo.cs
- TypeAccessException.cs
- Int32Rect.cs
- TypeLibraryHelper.cs
- XPathCompileException.cs
- SortedDictionary.cs
- ResourceAssociationSetEnd.cs
- WebPermission.cs
- StorageScalarPropertyMapping.cs
- StringResourceManager.cs
- filewebrequest.cs
- XmlArrayItemAttributes.cs