Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CoreSwitches.cs
- TimerElapsedEvenArgs.cs
- KeyTimeConverter.cs
- embossbitmapeffect.cs
- WebServiceResponse.cs
- ConfigurationCollectionAttribute.cs
- BaseAppDomainProtocolHandler.cs
- ColumnWidthChangingEvent.cs
- Emitter.cs
- ScriptingSectionGroup.cs
- InkCanvas.cs
- IriParsingElement.cs
- ParameterModifier.cs
- ElementHostAutomationPeer.cs
- SQLBinary.cs
- LiteralDesigner.cs
- BitmapMetadataBlob.cs
- OracleRowUpdatedEventArgs.cs
- OracleTransaction.cs
- RegexCompilationInfo.cs
- CompoundFileStorageReference.cs
- WaitingCursor.cs
- ColorEditor.cs
- ThemeableAttribute.cs
- ControlBuilderAttribute.cs
- PropertyPathWorker.cs
- StreamInfo.cs
- UriParserTemplates.cs
- SerializationTrace.cs
- AuthStoreRoleProvider.cs
- CodeCommentStatementCollection.cs
- HttpHandlersSection.cs
- StorageFunctionMapping.cs
- GuidelineCollection.cs
- ProviderCollection.cs
- CutCopyPasteHelper.cs
- XPathAncestorQuery.cs
- ADMembershipUser.cs
- DecoderExceptionFallback.cs
- UnsafeNativeMethodsCLR.cs
- CapabilitiesRule.cs
- Internal.cs
- MemoryMappedViewAccessor.cs
- FormsIdentity.cs
- ScriptIgnoreAttribute.cs
- CapabilitiesPattern.cs
- DataGridViewRowCollection.cs
- RowCache.cs
- OleDbException.cs
- PersonalizableAttribute.cs
- CachedFontFamily.cs
- DataColumnSelectionConverter.cs
- UrlPropertyAttribute.cs
- PropertyMap.cs
- TrackingServices.cs
- ResourceDictionary.cs
- DrawingContextDrawingContextWalker.cs
- RoutedPropertyChangedEventArgs.cs
- SingleAnimationUsingKeyFrames.cs
- TypeConverterHelper.cs
- DecoderBestFitFallback.cs
- PointConverter.cs
- AuthenticationException.cs
- XPathDocument.cs
- Substitution.cs
- Profiler.cs
- RadioButtonList.cs
- CodeTypeOfExpression.cs
- SoapElementAttribute.cs
- TextPointer.cs
- UiaCoreApi.cs
- EncryptedKeyHashIdentifierClause.cs
- XmlSiteMapProvider.cs
- TdsEnums.cs
- XmlIterators.cs
- SchemaTypeEmitter.cs
- OleDbErrorCollection.cs
- ProtectedConfigurationSection.cs
- XmlUtil.cs
- StackSpiller.Bindings.cs
- ContentPlaceHolder.cs
- InstancePersistenceCommand.cs
- ButtonChrome.cs
- BufferManager.cs
- WindowsListViewItemStartMenu.cs
- BitmapCache.cs
- EditingMode.cs
- AddressingVersion.cs
- NoResizeHandleGlyph.cs
- CorrelationScope.cs
- WpfGeneratedKnownProperties.cs
- Vector3DValueSerializer.cs
- CornerRadius.cs
- UrlAuthorizationModule.cs
- CustomTypeDescriptor.cs
- ISessionStateStore.cs
- NullPackagingPolicy.cs
- FontWeightConverter.cs
- ManifestSignedXml.cs
- BitmapImage.cs