Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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(); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PackageDigitalSignature.cs
- BaseDataBoundControlDesigner.cs
- XhtmlTextWriter.cs
- WebRequestModuleElementCollection.cs
- QueryResponse.cs
- StyleXamlTreeBuilder.cs
- CreateRefExpr.cs
- NGCPageContentSerializerAsync.cs
- IOException.cs
- FormsAuthenticationTicket.cs
- InitializingNewItemEventArgs.cs
- MobileControlDesigner.cs
- Set.cs
- DebugView.cs
- MdImport.cs
- TreeView.cs
- OutgoingWebResponseContext.cs
- _NestedMultipleAsyncResult.cs
- CultureInfo.cs
- X500Name.cs
- SerializationException.cs
- JulianCalendar.cs
- ListViewContainer.cs
- DataGridViewSortCompareEventArgs.cs
- DecodeHelper.cs
- RoutedEvent.cs
- SchemaImporterExtensionElementCollection.cs
- ActionMismatchAddressingException.cs
- GridViewDeleteEventArgs.cs
- MobileRedirect.cs
- AvTraceDetails.cs
- XmlToDatasetMap.cs
- ErrorEventArgs.cs
- SkipStoryboardToFill.cs
- exports.cs
- IssuanceLicense.cs
- baseshape.cs
- XPathNodePointer.cs
- ComponentChangedEvent.cs
- LineUtil.cs
- EditBehavior.cs
- ImpersonationContext.cs
- DecoderFallbackWithFailureFlag.cs
- ThreadAttributes.cs
- SigningCredentials.cs
- HtmlProps.cs
- CssTextWriter.cs
- CatalogZone.cs
- RSACryptoServiceProvider.cs
- RegularExpressionValidator.cs
- ListViewDesigner.cs
- versioninfo.cs
- EditingCommands.cs
- DependencyObjectCodeDomSerializer.cs
- _LazyAsyncResult.cs
- Calendar.cs
- WSSecurityOneDotZeroSendSecurityHeader.cs
- HostSecurityManager.cs
- SystemColors.cs
- DataGridHyperlinkColumn.cs
- CodeComment.cs
- BamlRecordWriter.cs
- InstalledVoice.cs
- RunInstallerAttribute.cs
- DependencyObject.cs
- XmlDataDocument.cs
- SqlComparer.cs
- ValueQuery.cs
- XmlQualifiedNameTest.cs
- ParallelDesigner.cs
- WebPartsSection.cs
- AnnotationResourceCollection.cs
- StandardBindingImporter.cs
- ZipIOExtraFieldZip64Element.cs
- DbBuffer.cs
- FileCodeGroup.cs
- TextRange.cs
- ClientData.cs
- DbConnectionStringCommon.cs
- SynchronizedDispatch.cs
- ProviderCollection.cs
- RuleSetReference.cs
- Bitmap.cs
- ChunkedMemoryStream.cs
- QilDataSource.cs
- UIElementHelper.cs
- EditorAttributeInfo.cs
- ObjectRef.cs
- ButtonChrome.cs
- TextFormatterContext.cs
- LinkLabel.cs
- SqlFunctionAttribute.cs
- ConfigXmlComment.cs
- BasicExpandProvider.cs
- LineUtil.cs
- DecoratedNameAttribute.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- UniformGrid.cs
- ItemCheckEvent.cs
- NullableDoubleMinMaxAggregationOperator.cs