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
- Unit.cs
- ConvertersCollection.cs
- BufferedStream.cs
- UrlEncodedParameterWriter.cs
- StringDictionaryWithComparer.cs
- ItemChangedEventArgs.cs
- MLangCodePageEncoding.cs
- SelectorAutomationPeer.cs
- HttpException.cs
- rsa.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- DropShadowBitmapEffect.cs
- TransactionBridgeSection.cs
- HtmlPageAdapter.cs
- DataGridViewMethods.cs
- ToolTipAutomationPeer.cs
- QilLiteral.cs
- InlinedAggregationOperatorEnumerator.cs
- SystemGatewayIPAddressInformation.cs
- CommandLibraryHelper.cs
- SerializationObjectManager.cs
- HttpStreamXmlDictionaryReader.cs
- DataGridViewColumnCollection.cs
- LabelTarget.cs
- HttpServerVarsCollection.cs
- WindowsListBox.cs
- ListenerElementsCollection.cs
- GeometryDrawing.cs
- ContentValidator.cs
- MemberDescriptor.cs
- PasswordBox.cs
- CacheDependency.cs
- StrokeNodeOperations.cs
- XmlUnspecifiedAttribute.cs
- ActivityDesignerResources.cs
- GenerateDerivedKeyRequest.cs
- RichTextBoxAutomationPeer.cs
- IIS7UserPrincipal.cs
- PageThemeParser.cs
- IIS7WorkerRequest.cs
- RuntimeEnvironment.cs
- StrokeNodeEnumerator.cs
- TraceSource.cs
- PropertyConverter.cs
- VirtualDirectoryMappingCollection.cs
- VariableAction.cs
- AdCreatedEventArgs.cs
- TcpServerChannel.cs
- PagedDataSource.cs
- PerformanceCountersElement.cs
- FastPropertyAccessor.cs
- ContextMenuStrip.cs
- HttpResponseInternalBase.cs
- SignatureHelper.cs
- AvTraceFormat.cs
- SqlDataSourceSelectingEventArgs.cs
- ToolBar.cs
- Instrumentation.cs
- WindowsListViewItemCheckBox.cs
- DataService.cs
- ScrollBarRenderer.cs
- StylusPointCollection.cs
- Matrix3DStack.cs
- TextBoxView.cs
- Visual3D.cs
- MediaElement.cs
- UIAgentCrashedException.cs
- CharacterHit.cs
- CrossContextChannel.cs
- _BasicClient.cs
- JsonXmlDataContract.cs
- SerialPort.cs
- FormViewDeleteEventArgs.cs
- TextRange.cs
- AssemblyCollection.cs
- DataGridState.cs
- CorrelationValidator.cs
- Pair.cs
- util.cs
- NumberFormatInfo.cs
- ColumnTypeConverter.cs
- PageBuildProvider.cs
- SymmetricKeyWrap.cs
- PackageRelationshipSelector.cs
- AjaxFrameworkAssemblyAttribute.cs
- IndexingContentUnit.cs
- XhtmlBasicValidatorAdapter.cs
- HttpListenerRequest.cs
- MailHeaderInfo.cs
- GeneratedContractType.cs
- DataRowChangeEvent.cs
- DefaultAsyncDataDispatcher.cs
- EncodingTable.cs
- DetailsViewDeleteEventArgs.cs
- ReliableChannelBinder.cs
- ActivityDesignerLayoutSerializers.cs
- KeyNotFoundException.cs
- querybuilder.cs
- SQLGuid.cs
- DataGridViewCellFormattingEventArgs.cs