Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- PersonalizationStateInfo.cs
- SQLSingle.cs
- LightweightEntityWrapper.cs
- CodeSubDirectoriesCollection.cs
- Sql8ExpressionRewriter.cs
- TextBox.cs
- Attributes.cs
- JsonWriterDelegator.cs
- OleDbReferenceCollection.cs
- Site.cs
- SqlXmlStorage.cs
- ResumeStoryboard.cs
- SelectionRangeConverter.cs
- ConfigurationStrings.cs
- WebPartTracker.cs
- PropertyInfoSet.cs
- InputScopeConverter.cs
- IHttpResponseInternal.cs
- SqlException.cs
- AsnEncodedData.cs
- UIElementCollection.cs
- FileLevelControlBuilderAttribute.cs
- SizeChangedInfo.cs
- WebBrowserProgressChangedEventHandler.cs
- TextDpi.cs
- WebConfigurationHostFileChange.cs
- MultiBindingExpression.cs
- ProtocolElementCollection.cs
- PrintController.cs
- VisualStyleInformation.cs
- RenderDataDrawingContext.cs
- FatalException.cs
- Byte.cs
- MailAddressCollection.cs
- FileChangesMonitor.cs
- FormsAuthenticationTicket.cs
- Content.cs
- shaperfactoryquerycachekey.cs
- ExtensibleClassFactory.cs
- XamlFigureLengthSerializer.cs
- Guid.cs
- ElementInit.cs
- DataObjectMethodAttribute.cs
- Menu.cs
- ProfileService.cs
- MouseButtonEventArgs.cs
- RequestCachingSection.cs
- RuntimeConfigurationRecord.cs
- ResetableIterator.cs
- JournalEntryStack.cs
- RTLAwareMessageBox.cs
- SymbolPair.cs
- InfoCardRSACryptoProvider.cs
- Constants.cs
- GridItemPattern.cs
- RemoteCryptoDecryptRequest.cs
- InvokeBase.cs
- FastEncoderWindow.cs
- HostAdapter.cs
- ListParaClient.cs
- Rfc2898DeriveBytes.cs
- RightNameExpirationInfoPair.cs
- UnsafeNativeMethods.cs
- DBBindings.cs
- DefaultValueTypeConverter.cs
- StructuralCache.cs
- ChangePassword.cs
- SqlError.cs
- DataShape.cs
- ItemsPanelTemplate.cs
- SafeRegistryHandle.cs
- TemplatePartAttribute.cs
- DataContract.cs
- TableDetailsRow.cs
- LicenseException.cs
- _SslStream.cs
- TreeNode.cs
- AccessedThroughPropertyAttribute.cs
- StylusEditingBehavior.cs
- TextContainer.cs
- AutoResizedEvent.cs
- RadioButtonStandardAdapter.cs
- IndentedWriter.cs
- LookupTables.cs
- AnnotationService.cs
- ResourceManagerWrapper.cs
- ConnectionsZone.cs
- DefinitionUpdate.cs
- BuildProviderInstallComponent.cs
- XmlSchemaSequence.cs
- ParameterCollectionEditor.cs
- MenuAutomationPeer.cs
- EndpointAddressMessageFilterTable.cs
- ObservableDictionary.cs
- MultiAsyncResult.cs
- ResourceSetExpression.cs
- CodeTypeParameterCollection.cs
- StrongNameUtility.cs
- SQLDateTimeStorage.cs
- OpenFileDialog.cs