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
- GeneralTransform3DTo2DTo3D.cs
- HandoffBehavior.cs
- Storyboard.cs
- ObjectDataSourceMethodEventArgs.cs
- RangeValidator.cs
- ExpressionBuilderCollection.cs
- InternalPermissions.cs
- ScriptResourceInfo.cs
- HtmlToClrEventProxy.cs
- RegexCaptureCollection.cs
- OutputCacheProfileCollection.cs
- XsdDataContractImporter.cs
- TemplateControl.cs
- UpdatePanel.cs
- CFStream.cs
- IdentityModelStringsVersion1.cs
- DesignerDataSchemaClass.cs
- SafeFileMapViewHandle.cs
- SqlNamer.cs
- BypassElementCollection.cs
- RayMeshGeometry3DHitTestResult.cs
- OutputScopeManager.cs
- Type.cs
- Point3DAnimationUsingKeyFrames.cs
- HtmlLinkAdapter.cs
- EntitySqlQueryState.cs
- ControlValuePropertyAttribute.cs
- DataSet.cs
- VirtualPathUtility.cs
- FontFamily.cs
- SafeSecurityHelper.cs
- Route.cs
- DataGridViewCellLinkedList.cs
- GenericTypeParameterConverter.cs
- HuffCodec.cs
- PropertySourceInfo.cs
- PageThemeBuildProvider.cs
- Point3D.cs
- BinHexDecoder.cs
- CryptoStream.cs
- GenericEnumConverter.cs
- SchemaNotation.cs
- CommandHelpers.cs
- UnicodeEncoding.cs
- CheckableControlBaseAdapter.cs
- AssociationProvider.cs
- GenericWebPart.cs
- SmiContext.cs
- SqlHelper.cs
- MailMessageEventArgs.cs
- GC.cs
- DummyDataSource.cs
- oledbmetadatacolumnnames.cs
- JumpPath.cs
- DBCommandBuilder.cs
- AuthorizationSection.cs
- __Filters.cs
- HttpTransportSecurity.cs
- PseudoWebRequest.cs
- HuffModule.cs
- FormViewPagerRow.cs
- PropertyStore.cs
- DataPagerCommandEventArgs.cs
- TraceSwitch.cs
- SimpleType.cs
- CharacterHit.cs
- PassportPrincipal.cs
- AccessDataSourceDesigner.cs
- ErrorTableItemStyle.cs
- SQLDateTimeStorage.cs
- CompModSwitches.cs
- XomlCompilerError.cs
- IISUnsafeMethods.cs
- PropertyNames.cs
- BitmapEffectInputConnector.cs
- CellTreeNodeVisitors.cs
- StringArrayConverter.cs
- CollectionsUtil.cs
- PersistenceException.cs
- LocalFileSettingsProvider.cs
- Lease.cs
- Serializer.cs
- Merger.cs
- GridView.cs
- QueryExpr.cs
- DiagnosticStrings.cs
- FixedFlowMap.cs
- MetafileHeaderWmf.cs
- ProcessModelSection.cs
- SqlRewriteScalarSubqueries.cs
- UnsafeNativeMethods.cs
- SerialStream.cs
- DataBinding.cs
- SqlProviderManifest.cs
- CompiledRegexRunner.cs
- JsonWriter.cs
- FormViewDeletedEventArgs.cs
- SvcMapFileLoader.cs
- GeometryModel3D.cs
- CompatibleIComparer.cs