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
- Hashtable.cs
- SqlTypeSystemProvider.cs
- UntypedNullExpression.cs
- CapabilitiesState.cs
- StringReader.cs
- JsonFormatReaderGenerator.cs
- Environment.cs
- JpegBitmapDecoder.cs
- QueryConverter.cs
- DesignTimeVisibleAttribute.cs
- StreamHelper.cs
- Model3D.cs
- xdrvalidator.cs
- BinaryMethodMessage.cs
- TraceLog.cs
- NativeMethodsCLR.cs
- SetStateDesigner.cs
- TemplateModeChangedEventArgs.cs
- SqlSelectClauseBuilder.cs
- DefaultPrintController.cs
- SubclassTypeValidator.cs
- StringCollection.cs
- ListViewContainer.cs
- CharacterBufferReference.cs
- QueryRewriter.cs
- MergePropertyDescriptor.cs
- DynamicActivityXamlReader.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- CodePropertyReferenceExpression.cs
- HTMLTagNameToTypeMapper.cs
- Accessors.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- ToolZoneDesigner.cs
- ClientRoleProvider.cs
- ServiceAppDomainAssociationProvider.cs
- AtlasWeb.Designer.cs
- MemoryPressure.cs
- IteratorAsyncResult.cs
- PropertyPath.cs
- ExpandCollapsePattern.cs
- FontNameConverter.cs
- TypefaceMap.cs
- WorkerRequest.cs
- SqlServer2KCompatibilityCheck.cs
- ProxySimple.cs
- SimpleMailWebEventProvider.cs
- XmlObjectSerializerWriteContextComplex.cs
- DispatcherHooks.cs
- TimeManager.cs
- Visual.cs
- TrackBarRenderer.cs
- IntellisenseTextBox.cs
- MailAddressCollection.cs
- DoubleCollectionConverter.cs
- WebPartCancelEventArgs.cs
- DesignerTransaction.cs
- TextServicesLoader.cs
- FileDataSourceCache.cs
- Light.cs
- DefaultSerializationProviderAttribute.cs
- ErrorFormatterPage.cs
- TypeConverterValueSerializer.cs
- NetSectionGroup.cs
- DeferrableContent.cs
- CustomAttributeBuilder.cs
- WebPartVerb.cs
- LayoutSettings.cs
- ColorConverter.cs
- InvokePattern.cs
- ConvertEvent.cs
- DataStreams.cs
- FileDataSourceCache.cs
- SystemDiagnosticsSection.cs
- DrawingAttributeSerializer.cs
- SelectionProviderWrapper.cs
- BaseTypeViewSchema.cs
- XmlCompatibilityReader.cs
- SpeechRecognitionEngine.cs
- IssuedTokenParametersEndpointAddressElement.cs
- CloudCollection.cs
- While.cs
- NamedPipeAppDomainProtocolHandler.cs
- CodeDOMUtility.cs
- CodeGotoStatement.cs
- DataGridViewButtonColumn.cs
- PinnedBufferMemoryStream.cs
- Brush.cs
- PreservationFileWriter.cs
- ScriptControl.cs
- CriticalFinalizerObject.cs
- ObfuscateAssemblyAttribute.cs
- DummyDataSource.cs
- IdentifierElement.cs
- DataGridViewRowCancelEventArgs.cs
- GridSplitterAutomationPeer.cs
- FindCriteriaCD1.cs
- StandardOleMarshalObject.cs
- WindowInteractionStateTracker.cs
- PtsPage.cs
- ApplicationSettingsBase.cs