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
- UDPClient.cs
- RuntimeVariableList.cs
- PageCache.cs
- DependencyPropertyDescriptor.cs
- ADMembershipUser.cs
- CollectionsUtil.cs
- DataTemplateKey.cs
- ItemContainerGenerator.cs
- InputProcessorProfilesLoader.cs
- InteropBitmapSource.cs
- TreeNodeBindingDepthConverter.cs
- UnicodeEncoding.cs
- NameScope.cs
- StoreContentChangedEventArgs.cs
- DataPagerFieldCommandEventArgs.cs
- BrowserCapabilitiesFactoryBase.cs
- ResXResourceWriter.cs
- DataControlReferenceCollection.cs
- DesignTimeTemplateParser.cs
- OdbcCommand.cs
- FormView.cs
- SHA256.cs
- X509ClientCertificateAuthentication.cs
- RowUpdatedEventArgs.cs
- FormsAuthenticationUserCollection.cs
- UriExt.cs
- CommonProperties.cs
- ReadOnlyCollection.cs
- UniqueEventHelper.cs
- DataView.cs
- FormViewInsertedEventArgs.cs
- AlignmentXValidation.cs
- QilPatternFactory.cs
- HttpResponseMessageProperty.cs
- Form.cs
- DataGridRow.cs
- JsonFormatGeneratorStatics.cs
- PageStatePersister.cs
- RotateTransform3D.cs
- ForEachDesigner.xaml.cs
- WebPartCollection.cs
- FixedSOMImage.cs
- ContentHostHelper.cs
- TextModifier.cs
- CachedPathData.cs
- ColorConvertedBitmapExtension.cs
- CodeGeneratorOptions.cs
- PassportPrincipal.cs
- MimeTypeMapper.cs
- ListSourceHelper.cs
- SHA1Managed.cs
- TraceInternal.cs
- ConfigurationElementProperty.cs
- CharacterBufferReference.cs
- LeaseManager.cs
- UniqueID.cs
- DependencyProperty.cs
- SqlCommandSet.cs
- LOSFormatter.cs
- SrgsText.cs
- RangeExpression.cs
- Maps.cs
- DocumentSchemaValidator.cs
- XMLDiffLoader.cs
- ControlTemplate.cs
- AttributeData.cs
- WebColorConverter.cs
- DataSourceView.cs
- Buffer.cs
- ReverseQueryOperator.cs
- CfgParser.cs
- FigureParaClient.cs
- FontFamily.cs
- SoapHttpTransportImporter.cs
- ServicePointManager.cs
- UserUseLicenseDictionaryLoader.cs
- GlobalEventManager.cs
- TextSelectionHighlightLayer.cs
- IntSumAggregationOperator.cs
- ConfigurationManager.cs
- EnumDataContract.cs
- CompilationUtil.cs
- CodeExpressionStatement.cs
- FormsAuthenticationTicket.cs
- DescendantBaseQuery.cs
- _DomainName.cs
- ThreadInterruptedException.cs
- RegionData.cs
- DataListCommandEventArgs.cs
- GreaterThanOrEqual.cs
- ExtendedPropertyDescriptor.cs
- DataRelation.cs
- TreeViewItemAutomationPeer.cs
- TokenBasedSetEnumerator.cs
- DescriptionAttribute.cs
- XmlValidatingReaderImpl.cs
- Serializer.cs
- PartitionedStreamMerger.cs
- StateMachineWorkflow.cs
- WmlObjectListAdapter.cs