Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / clr / src / BCL / System / Security / Policy / GAC.cs / 1 / GAC.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // // GacInstalled is an IIdentity representing whether or not an assembly is installed in the Gac // namespace System.Security.Policy { using System.Runtime.Remoting; using System; using System.Security; using System.Security.Util; using System.IO; using System.Collections; using GacIdentityPermission = System.Security.Permissions.GacIdentityPermission; using System.Runtime.CompilerServices; [Serializable] [System.Runtime.InteropServices.ComVisible(true)] sealed public class GacInstalled : IIdentityPermissionFactory, IBuiltInEvidence { public GacInstalled() { } public IPermission CreateIdentityPermission( Evidence evidence ) { return new GacIdentityPermission(); } public override bool Equals(Object o) { if (o is GacInstalled) return true; return false; } public override int GetHashCode() { return 0; } public Object Copy() { return new GacInstalled(); } internal SecurityElement ToXml() { SecurityElement elem = new SecurityElement( this.GetType().FullName ); elem.AddAttribute( "version", "1" ); return elem; } ///int IBuiltInEvidence.OutputToBuffer( char[] buffer, int position, bool verbose ) { buffer[position] = BuiltInEvidenceHelper.idGac; return position + 1; } /// int IBuiltInEvidence.GetRequiredSize(bool verbose) { return 1; } /// int IBuiltInEvidence.InitFromBuffer( char[] buffer, int position ) { return position; } public override String ToString() { return ToXml().ToString(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // // GacInstalled is an IIdentity representing whether or not an assembly is installed in the Gac // namespace System.Security.Policy { using System.Runtime.Remoting; using System; using System.Security; using System.Security.Util; using System.IO; using System.Collections; using GacIdentityPermission = System.Security.Permissions.GacIdentityPermission; using System.Runtime.CompilerServices; [Serializable] [System.Runtime.InteropServices.ComVisible(true)] sealed public class GacInstalled : IIdentityPermissionFactory, IBuiltInEvidence { public GacInstalled() { } public IPermission CreateIdentityPermission( Evidence evidence ) { return new GacIdentityPermission(); } public override bool Equals(Object o) { if (o is GacInstalled) return true; return false; } public override int GetHashCode() { return 0; } public Object Copy() { return new GacInstalled(); } internal SecurityElement ToXml() { SecurityElement elem = new SecurityElement( this.GetType().FullName ); elem.AddAttribute( "version", "1" ); return elem; } /// int IBuiltInEvidence.OutputToBuffer( char[] buffer, int position, bool verbose ) { buffer[position] = BuiltInEvidenceHelper.idGac; return position + 1; } /// int IBuiltInEvidence.GetRequiredSize(bool verbose) { return 1; } /// int IBuiltInEvidence.InitFromBuffer( char[] buffer, int position ) { return position; } public override String ToString() { return ToXml().ToString(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlBaseWriter.cs
- NativeMethods.cs
- __FastResourceComparer.cs
- TaiwanLunisolarCalendar.cs
- MultiView.cs
- CriticalHandle.cs
- BooleanAnimationBase.cs
- BindingExpressionBase.cs
- DataGridViewTopLeftHeaderCell.cs
- SqlUDTStorage.cs
- StringPropertyBuilder.cs
- PeerToPeerException.cs
- XmlIlVisitor.cs
- DataGridPageChangedEventArgs.cs
- _SslState.cs
- FileAuthorizationModule.cs
- SortedSet.cs
- DesignerActionService.cs
- WSFederationHttpSecurityMode.cs
- ProfilePropertyNameValidator.cs
- CategoryGridEntry.cs
- DataGridViewSelectedCellCollection.cs
- TableLayoutStyleCollection.cs
- ISessionStateStore.cs
- DataGridViewIntLinkedList.cs
- UnmanagedMemoryStreamWrapper.cs
- DataMemberAttribute.cs
- ApplicationManager.cs
- CryptoStream.cs
- TcpActivation.cs
- UnaryOperationBinder.cs
- GetMemberBinder.cs
- SecurityCriticalDataForSet.cs
- EdmMember.cs
- SmiEventSink_DeferedProcessing.cs
- OleDbPermission.cs
- TypedDatasetGenerator.cs
- FullTextState.cs
- OleCmdHelper.cs
- Menu.cs
- MutexSecurity.cs
- SequentialWorkflowRootDesigner.cs
- StringReader.cs
- EdmSchemaAttribute.cs
- LinqDataSourceEditData.cs
- ParameterToken.cs
- PopupControlService.cs
- SqlDataSourceSelectingEventArgs.cs
- OdbcUtils.cs
- LocalizabilityAttribute.cs
- ArrayWithOffset.cs
- CopyCodeAction.cs
- Matrix3D.cs
- ManagedIStream.cs
- NavigatorInput.cs
- ResourceDescriptionAttribute.cs
- Contracts.cs
- FrameworkElementFactory.cs
- ConversionContext.cs
- MsmqAuthenticationMode.cs
- ArglessEventHandlerProxy.cs
- EmissiveMaterial.cs
- InvokeMethodActivity.cs
- ObjectHandle.cs
- SystemWebCachingSectionGroup.cs
- UndoManager.cs
- AccessDataSource.cs
- ChangeConflicts.cs
- CaseKeyBox.xaml.cs
- DerivedKeyCachingSecurityTokenSerializer.cs
- TraceSection.cs
- oledbmetadatacollectionnames.cs
- AQNBuilder.cs
- mansign.cs
- CopyAttributesAction.cs
- ClientRolePrincipal.cs
- UIElementParagraph.cs
- DBAsyncResult.cs
- ReservationNotFoundException.cs
- TextElementAutomationPeer.cs
- QuaternionAnimation.cs
- CodeDesigner.cs
- HtmlUtf8RawTextWriter.cs
- X509IssuerSerialKeyIdentifierClause.cs
- XamlSerializationHelper.cs
- MappingException.cs
- MetricEntry.cs
- MaxMessageSizeStream.cs
- TableParaClient.cs
- DoubleStorage.cs
- SHA512.cs
- XamlNamespaceHelper.cs
- TextBreakpoint.cs
- SqlDuplicator.cs
- QueryCursorEventArgs.cs
- WinCategoryAttribute.cs
- PlaceHolder.cs
- ExceptionValidationRule.cs
- BrowsableAttribute.cs
- XmlSchemaException.cs