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
- PrimitiveSchema.cs
- TextRunProperties.cs
- precedingquery.cs
- BuildProvider.cs
- EntityDesignerUtils.cs
- GeneralTransformCollection.cs
- Substitution.cs
- ToolConsole.cs
- MessageContractMemberAttribute.cs
- ValidationRuleCollection.cs
- SqlClientWrapperSmiStream.cs
- InputManager.cs
- RoutedUICommand.cs
- Brushes.cs
- MenuTracker.cs
- SafeFileHandle.cs
- Cursor.cs
- FieldTemplateUserControl.cs
- ExpressionWriter.cs
- SiteMapProvider.cs
- FixedSOMFixedBlock.cs
- WindowPattern.cs
- CreateUserErrorEventArgs.cs
- BaseCodeDomTreeGenerator.cs
- filewebrequest.cs
- UseAttributeSetsAction.cs
- AssemblyAttributesGoHere.cs
- Color.cs
- ListViewItemEventArgs.cs
- PropertyChangedEventArgs.cs
- LogSwitch.cs
- WindowsStartMenu.cs
- InstancePersistence.cs
- CryptoApi.cs
- SettingsProperty.cs
- EnumValAlphaComparer.cs
- BitmapFrame.cs
- SqlProviderServices.cs
- KeyTime.cs
- HandlerBase.cs
- GeneralTransform.cs
- ServiceOperationParameter.cs
- MethodToken.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- EllipseGeometry.cs
- ExtensionSimplifierMarkupObject.cs
- ViewCellRelation.cs
- PrePostDescendentsWalker.cs
- CalloutQueueItem.cs
- DataRelationPropertyDescriptor.cs
- DataRelationCollection.cs
- RelationalExpressions.cs
- HtmlInputHidden.cs
- BamlRecords.cs
- DockAndAnchorLayout.cs
- OleDbDataAdapter.cs
- UnsafeNativeMethods.cs
- LoginName.cs
- RectAnimationBase.cs
- AssemblyBuilder.cs
- CrossAppDomainChannel.cs
- datacache.cs
- D3DImage.cs
- ImageMapEventArgs.cs
- RelatedImageListAttribute.cs
- RewritingProcessor.cs
- SplitContainer.cs
- VisualTreeUtils.cs
- SqlFlattener.cs
- ImageClickEventArgs.cs
- CurrencyWrapper.cs
- MultiSelectRootGridEntry.cs
- NewItemsContextMenuStrip.cs
- PageBuildProvider.cs
- IteratorFilter.cs
- TransformedBitmap.cs
- FilteredDataSetHelper.cs
- NativeMethods.cs
- TextServicesLoader.cs
- SafeRegistryKey.cs
- ServiceParser.cs
- Renderer.cs
- MenuItem.cs
- ToolTipAutomationPeer.cs
- HiddenField.cs
- ElementHost.cs
- HostSecurityManager.cs
- TransactedBatchContext.cs
- LightweightEntityWrapper.cs
- TextProperties.cs
- FlowDocument.cs
- JournalNavigationScope.cs
- FrameworkContentElement.cs
- COM2PictureConverter.cs
- SizeConverter.cs
- Deflater.cs
- FocusTracker.cs
- XmlSchemaExporter.cs
- TextFormatterImp.cs
- Attributes.cs