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
- LinkedList.cs
- WebPartHelpVerb.cs
- ObjectView.cs
- PluralizationService.cs
- SimpleHandlerBuildProvider.cs
- RichTextBoxAutomationPeer.cs
- UpdatePanelTrigger.cs
- ListenerUnsafeNativeMethods.cs
- MarkedHighlightComponent.cs
- WebConfigurationHost.cs
- NavigationService.cs
- EmissiveMaterial.cs
- TargetControlTypeCache.cs
- NetworkAddressChange.cs
- ZoomPercentageConverter.cs
- XmlValidatingReader.cs
- ChannelManagerBase.cs
- DocumentViewerConstants.cs
- FormsAuthenticationUserCollection.cs
- FlowDocumentScrollViewer.cs
- TiffBitmapEncoder.cs
- DataMember.cs
- RuntimeHelpers.cs
- PopOutPanel.cs
- RequestCacheManager.cs
- followingquery.cs
- MemoryMappedFileSecurity.cs
- HtmlLink.cs
- FtpCachePolicyElement.cs
- XsltLoader.cs
- SystemPens.cs
- PageAsyncTask.cs
- InvariantComparer.cs
- InlinedAggregationOperator.cs
- XsdBuilder.cs
- UnmanagedMarshal.cs
- BinaryCommonClasses.cs
- DesignerTransactionCloseEvent.cs
- ClassHandlersStore.cs
- SkewTransform.cs
- GeneralTransform2DTo3DTo2D.cs
- PrimitiveRenderer.cs
- AccessibleObject.cs
- WebPartsPersonalizationAuthorization.cs
- RSAPKCS1SignatureDeformatter.cs
- SigningDialog.cs
- ProfileGroupSettingsCollection.cs
- BooleanConverter.cs
- DependencyObject.cs
- TypeDependencyAttribute.cs
- DivideByZeroException.cs
- KeyValueInternalCollection.cs
- BufferedGraphicsManager.cs
- XmlSerializationWriter.cs
- StandardBindingImporter.cs
- BinaryFormatterWriter.cs
- XPathEmptyIterator.cs
- SoapAttributeOverrides.cs
- ObjectIDGenerator.cs
- AccessibilityApplicationManager.cs
- FamilyCollection.cs
- SqlTrackingQuery.cs
- SharedUtils.cs
- AutomationProperty.cs
- PackagePartCollection.cs
- ProtocolsConfigurationHandler.cs
- ImageKeyConverter.cs
- XmlUnspecifiedAttribute.cs
- WebPartsPersonalization.cs
- StyleBamlTreeBuilder.cs
- DataSourceGeneratorException.cs
- MemoryStream.cs
- ReplyAdapterChannelListener.cs
- DragEventArgs.cs
- ImportedPolicyConversionContext.cs
- TrustLevel.cs
- SimpleExpression.cs
- DefaultPrintController.cs
- Contracts.cs
- LookupNode.cs
- TemplateBuilder.cs
- NullableBoolConverter.cs
- ServiceOperation.cs
- DataObjectEventArgs.cs
- OuterGlowBitmapEffect.cs
- ResourceDisplayNameAttribute.cs
- SoundPlayer.cs
- GroupBox.cs
- TimeZoneInfo.cs
- DescendantBaseQuery.cs
- AdCreatedEventArgs.cs
- MemberExpression.cs
- TextInfo.cs
- DependencyObjectType.cs
- BrowserInteropHelper.cs
- DynamicMethod.cs
- DbConnectionPoolIdentity.cs
- validation.cs
- XsltLoader.cs
- RolePrincipal.cs