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
- XmlSerializerFactory.cs
- DataSetMappper.cs
- ProcessModuleDesigner.cs
- SettingsPropertyNotFoundException.cs
- ReferentialConstraintRoleElement.cs
- CheckBoxRenderer.cs
- EntityDataSourceUtil.cs
- QuarticEase.cs
- PassportPrincipal.cs
- WindowsFormsSectionHandler.cs
- X509Certificate2Collection.cs
- SubMenuStyleCollection.cs
- TextHidden.cs
- CompilerResults.cs
- ImplicitInputBrush.cs
- SamlAuthorizationDecisionClaimResource.cs
- ellipse.cs
- HttpRequestWrapper.cs
- DocumentViewer.cs
- DefaultParameterValueAttribute.cs
- ResXResourceSet.cs
- AsyncPostBackTrigger.cs
- WebPartManager.cs
- WindowsAuthenticationEventArgs.cs
- SmiContext.cs
- EntityDataSourceWrapper.cs
- shaperfactoryquerycacheentry.cs
- PrimaryKeyTypeConverter.cs
- DynamicObject.cs
- AmbientLight.cs
- Image.cs
- DefaultAuthorizationContext.cs
- EnumerableRowCollectionExtensions.cs
- HashCodeCombiner.cs
- sortedlist.cs
- AssemblyInfo.cs
- Range.cs
- CompiledELinqQueryState.cs
- ElementAtQueryOperator.cs
- UrlMapping.cs
- MetadataPropertyvalue.cs
- CurrentChangedEventManager.cs
- DbRetry.cs
- CollectionChangeEventArgs.cs
- RuleConditionDialog.cs
- Version.cs
- AvtEvent.cs
- BuildProvider.cs
- IndividualDeviceConfig.cs
- KeySpline.cs
- TabItemAutomationPeer.cs
- RC2.cs
- Event.cs
- SqlMetaData.cs
- HostedBindingBehavior.cs
- ValidatorCollection.cs
- PrivilegedConfigurationManager.cs
- UIElementParagraph.cs
- ExtensibleClassFactory.cs
- DateTimeFormatInfo.cs
- WebControl.cs
- WebReferencesBuildProvider.cs
- DynamicValueConverter.cs
- PropertyEntry.cs
- ExtendedPropertyInfo.cs
- SystemIcmpV6Statistics.cs
- AutomationEventArgs.cs
- QilUnary.cs
- PostBackOptions.cs
- WindowCollection.cs
- BasicViewGenerator.cs
- CapabilitiesState.cs
- SHA256.cs
- ResourceWriter.cs
- odbcmetadatacollectionnames.cs
- ProxyWebPart.cs
- TransformedBitmap.cs
- MenuCommands.cs
- FunctionDescription.cs
- ObjectConverter.cs
- Utility.cs
- SqlLiftIndependentRowExpressions.cs
- ToolTipAutomationPeer.cs
- TreeView.cs
- HTMLTextWriter.cs
- NumberSubstitution.cs
- OneWayElement.cs
- AstNode.cs
- SmiEventSink_Default.cs
- RuntimeVariableList.cs
- StringUtil.cs
- IISMapPath.cs
- DesignerContextDescriptor.cs
- EndOfStreamException.cs
- WebPartConnectionsCancelVerb.cs
- DescriptionAttribute.cs
- COM2Properties.cs
- HashRepartitionStream.cs
- IPPacketInformation.cs
- ProcessThread.cs