Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- Literal.cs
- ObjectParameter.cs
- Splitter.cs
- PackUriHelper.cs
- XmlTextEncoder.cs
- TypeInfo.cs
- NameScopePropertyAttribute.cs
- SingletonChannelAcceptor.cs
- CryptoHelper.cs
- ProtocolElement.cs
- XmlSchemaFacet.cs
- ControlEvent.cs
- TextDocumentView.cs
- ObjectStateEntry.cs
- FrameworkElementFactory.cs
- CustomAssemblyResolver.cs
- XsltSettings.cs
- Assert.cs
- ToolStripRenderer.cs
- ResourceSet.cs
- CommonObjectSecurity.cs
- Rfc2898DeriveBytes.cs
- ConnectionManagementSection.cs
- X509Chain.cs
- PointAnimation.cs
- CompilerTypeWithParams.cs
- DataGridViewBand.cs
- CombinedTcpChannel.cs
- TrackingServices.cs
- Queue.cs
- TextLineBreak.cs
- ToolStripRendererSwitcher.cs
- WebPartCloseVerb.cs
- BamlTreeNode.cs
- EntitySetBase.cs
- PreProcessor.cs
- ErrorHandlingReceiver.cs
- odbcmetadatacollectionnames.cs
- FeatureAttribute.cs
- StatusBar.cs
- DataControlField.cs
- GcHandle.cs
- WindowsIdentity.cs
- GridViewCellAutomationPeer.cs
- ProcessHost.cs
- BrowserCapabilitiesCompiler.cs
- StringDictionaryEditor.cs
- BinaryNode.cs
- OleDbCommand.cs
- DataControlImageButton.cs
- DataGridViewTopLeftHeaderCell.cs
- EntityException.cs
- StyleCollection.cs
- SpecialFolderEnumConverter.cs
- PackageRelationshipCollection.cs
- CallbackValidator.cs
- PingReply.cs
- XPathNodeHelper.cs
- ControlIdConverter.cs
- SrgsOneOf.cs
- AutoResizedEvent.cs
- Constraint.cs
- BaseCollection.cs
- TaskFileService.cs
- EmptyImpersonationContext.cs
- ByteStorage.cs
- FunctionDescription.cs
- WebPageTraceListener.cs
- EntityAdapter.cs
- QilValidationVisitor.cs
- TextParaLineResult.cs
- RenderDataDrawingContext.cs
- CheckableControlBaseAdapter.cs
- COMException.cs
- ColorMap.cs
- CodeRemoveEventStatement.cs
- ConversionContext.cs
- ExpandedProjectionNode.cs
- ProgressiveCrcCalculatingStream.cs
- ProfileGroupSettings.cs
- SvcMapFileSerializer.cs
- PersonalizableAttribute.cs
- DataGridViewLayoutData.cs
- SqlDataReaderSmi.cs
- QueryableDataSource.cs
- PathFigureCollection.cs
- TypedReference.cs
- ImageIndexConverter.cs
- DeadLetterQueue.cs
- DuplicateWaitObjectException.cs
- ModelTreeManager.cs
- VariableExpressionConverter.cs
- SqlDataSourceDesigner.cs
- GradientStopCollection.cs
- ToolStripDropTargetManager.cs
- XamlNamespaceHelper.cs
- Application.cs
- NavigateEvent.cs
- DrawingImage.cs
- CollectionBuilder.cs