Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Security / Policy / GAC.cs / 1305376 / 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)] public sealed class GacInstalled : EvidenceBase, IIdentityPermissionFactory { public GacInstalled() { } public IPermission CreateIdentityPermission( Evidence evidence ) { return new GacIdentityPermission(); } public override bool Equals(Object o) { return o is GacInstalled; } public override int GetHashCode() { return 0; } public override EvidenceBase Clone() { return new GacInstalled(); } public Object Copy() { return Clone(); } internal SecurityElement ToXml() { SecurityElement elem = new SecurityElement( this.GetType().FullName ); elem.AddAttribute( "version", "1" ); return elem; } 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)] public sealed class GacInstalled : EvidenceBase, IIdentityPermissionFactory { public GacInstalled() { } public IPermission CreateIdentityPermission( Evidence evidence ) { return new GacIdentityPermission(); } public override bool Equals(Object o) { return o is GacInstalled; } public override int GetHashCode() { return 0; } public override EvidenceBase Clone() { return new GacInstalled(); } public Object Copy() { return Clone(); } internal SecurityElement ToXml() { SecurityElement elem = new SecurityElement( this.GetType().FullName ); elem.AddAttribute( "version", "1" ); return elem; } 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
- GlyphShapingProperties.cs
- HuffCodec.cs
- ReadOnlyDataSource.cs
- milexports.cs
- ObjectTag.cs
- SwitchExpression.cs
- CallId.cs
- BuildProvider.cs
- HtmlShimManager.cs
- DataGrid.cs
- AssemblyNameProxy.cs
- WorkflowStateRollbackService.cs
- FtpCachePolicyElement.cs
- datacache.cs
- JumpTask.cs
- ReceiveMessageContent.cs
- ReaderWriterLock.cs
- SqlMethodAttribute.cs
- FixedSOMImage.cs
- LoadItemsEventArgs.cs
- HttpHeaderCollection.cs
- ItemChangedEventArgs.cs
- DetailsViewDeleteEventArgs.cs
- DateTimeOffset.cs
- BindingMAnagerBase.cs
- PageAdapter.cs
- DiscoveryDefaults.cs
- PartManifestEntry.cs
- IODescriptionAttribute.cs
- CellParagraph.cs
- Exception.cs
- HttpListenerException.cs
- FormsAuthenticationUserCollection.cs
- AsymmetricSignatureDeformatter.cs
- XmlLanguageConverter.cs
- CmsInterop.cs
- EventLogReader.cs
- SourceFileBuildProvider.cs
- DateTimeValueSerializer.cs
- DbProviderFactoriesConfigurationHandler.cs
- ForeignKeyFactory.cs
- UserControl.cs
- Helpers.cs
- WindowsListViewGroup.cs
- PhysicalFontFamily.cs
- ValidatorCollection.cs
- Helper.cs
- XmlObjectSerializerWriteContext.cs
- MarginCollapsingState.cs
- ConstNode.cs
- FrameworkPropertyMetadata.cs
- EncryptedKey.cs
- VectorKeyFrameCollection.cs
- GacUtil.cs
- CursorEditor.cs
- RenderingBiasValidation.cs
- PropertyKey.cs
- CodeDelegateCreateExpression.cs
- CatalogZone.cs
- MetadataFile.cs
- CssClassPropertyAttribute.cs
- DBConcurrencyException.cs
- SHA1Managed.cs
- TreeSet.cs
- CookielessHelper.cs
- TextBox.cs
- PathSegmentCollection.cs
- DecoderFallback.cs
- BufferBuilder.cs
- VirtualizingPanel.cs
- basevalidator.cs
- MethodBuilder.cs
- Opcode.cs
- BindToObject.cs
- CreateSequenceResponse.cs
- TransactedReceiveScope.cs
- WithStatement.cs
- XsltSettings.cs
- LiteralTextContainerControlBuilder.cs
- BaseCAMarshaler.cs
- CodeTypeDeclarationCollection.cs
- WebHttpSecurityModeHelper.cs
- RegexReplacement.cs
- XmlFormatWriterGenerator.cs
- NativeMethods.cs
- LightweightCodeGenerator.cs
- SerializationInfo.cs
- AlternateView.cs
- WebPartsSection.cs
- NetworkAddressChange.cs
- COSERVERINFO.cs
- XamlSerializer.cs
- StylusTip.cs
- EntityViewGenerator.cs
- ArrayTypeMismatchException.cs
- RMPermissions.cs
- CodeEntryPointMethod.cs
- handlecollector.cs
- PolicyManager.cs
- StaticTextPointer.cs