Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / securitycriticaldataformultiplegetandset.cs / 1305600 / 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
- TreeNodeConverter.cs
- TimersDescriptionAttribute.cs
- Composition.cs
- CodeExpressionStatement.cs
- HttpCapabilitiesEvaluator.cs
- SimpleExpression.cs
- ControlOperationInvoker.cs
- WmlCalendarAdapter.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- AppSecurityManager.cs
- ValidationHelpers.cs
- ValuePattern.cs
- XmlArrayItemAttribute.cs
- ResolveNameEventArgs.cs
- ActivationServices.cs
- Timer.cs
- SamlAssertion.cs
- Stackframe.cs
- StorageBasedPackageProperties.cs
- PrincipalPermissionMode.cs
- MarkedHighlightComponent.cs
- HttpRawResponse.cs
- SupportsPreviewControlAttribute.cs
- ThicknessConverter.cs
- CompiledRegexRunnerFactory.cs
- WebBrowserBase.cs
- RuleInfoComparer.cs
- BasicDesignerLoader.cs
- BinaryFormatterWriter.cs
- Pair.cs
- SerializerProvider.cs
- Soap.cs
- TypeUsage.cs
- NativeMethods.cs
- SHA1Managed.cs
- DataServiceProviderWrapper.cs
- storagemappingitemcollection.viewdictionary.cs
- LocatorBase.cs
- SchemaObjectWriter.cs
- DataSpaceManager.cs
- PropertyCollection.cs
- AutomationEventArgs.cs
- BooleanAnimationBase.cs
- AsyncResult.cs
- XpsException.cs
- ToolStripProgressBar.cs
- StorageSetMapping.cs
- ImageSource.cs
- Exception.cs
- ProviderCollection.cs
- ProcessingInstructionAction.cs
- SendMailErrorEventArgs.cs
- VirtualDirectoryMapping.cs
- InternalsVisibleToAttribute.cs
- SQLInt16Storage.cs
- MultipartContentParser.cs
- FrameworkPropertyMetadata.cs
- GridLengthConverter.cs
- ActivityTypeCodeDomSerializer.cs
- MetabaseSettings.cs
- AsymmetricKeyExchangeFormatter.cs
- DataGridViewComboBoxEditingControl.cs
- SQLRoleProvider.cs
- BidOverLoads.cs
- RoleManagerEventArgs.cs
- Rectangle.cs
- InvariantComparer.cs
- ToolboxItemWrapper.cs
- SystemInformation.cs
- DataBoundControlParameterTarget.cs
- UserUseLicenseDictionaryLoader.cs
- TextSchema.cs
- UInt16Storage.cs
- CollectionBuilder.cs
- InsufficientMemoryException.cs
- XsltLibrary.cs
- FilterableAttribute.cs
- MessageLogTraceRecord.cs
- BaseParagraph.cs
- OdbcPermission.cs
- StorageComplexTypeMapping.cs
- AppDomainUnloadedException.cs
- CursorInteropHelper.cs
- DesignerTextBoxAdapter.cs
- OptimalTextSource.cs
- X509SecurityToken.cs
- XmlNamedNodeMap.cs
- SqlBuffer.cs
- OleDbDataAdapter.cs
- CategoryEditor.cs
- RtfControlWordInfo.cs
- EditableRegion.cs
- StyleBamlRecordReader.cs
- ButtonBaseAdapter.cs
- PreloadedPackages.cs
- HtmlTextViewAdapter.cs
- mactripleDES.cs
- HierarchicalDataBoundControlAdapter.cs
- DefaultPropertyAttribute.cs
- SafeSecurityHandles.cs