Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TranslateTransform3D.cs
- ParenthesizePropertyNameAttribute.cs
- GAC.cs
- ToolboxItemFilterAttribute.cs
- SoapSchemaMember.cs
- PingReply.cs
- JournalEntry.cs
- PropertyChangingEventArgs.cs
- NavigationProperty.cs
- OutputCacheProfile.cs
- LinkedResource.cs
- DragSelectionMessageFilter.cs
- EditorOptionAttribute.cs
- IdentitySection.cs
- ParameterBinding.cs
- Base64Decoder.cs
- SingleStorage.cs
- DecimalAnimationUsingKeyFrames.cs
- ZipIORawDataFileBlock.cs
- DesignerMetadata.cs
- TreeNodeEventArgs.cs
- StyleCollection.cs
- ControlParameter.cs
- GridViewColumnCollectionChangedEventArgs.cs
- TextPointerBase.cs
- SmuggledIUnknown.cs
- ActivityCollectionMarkupSerializer.cs
- ListViewSelectEventArgs.cs
- WindowsMenu.cs
- ListManagerBindingsCollection.cs
- ListItemCollection.cs
- DBNull.cs
- EntityConnection.cs
- CqlParser.cs
- DriveNotFoundException.cs
- ToolStripScrollButton.cs
- ProtectedProviderSettings.cs
- ListViewTableCell.cs
- TypedElement.cs
- WS2007FederationHttpBindingElement.cs
- FreezableCollection.cs
- TextHidden.cs
- DoubleConverter.cs
- diagnosticsswitches.cs
- ExclusiveTcpListener.cs
- FormViewPagerRow.cs
- PropertyConverter.cs
- SqlDataSourceView.cs
- Monitor.cs
- IPGlobalProperties.cs
- ButtonColumn.cs
- BinHexDecoder.cs
- connectionpool.cs
- SchemaImporter.cs
- UserNameSecurityTokenAuthenticator.cs
- TextViewBase.cs
- JoinGraph.cs
- MediaPlayer.cs
- DataColumn.cs
- Hashtable.cs
- EmptyReadOnlyDictionaryInternal.cs
- NumberFunctions.cs
- ProxyWebPartConnectionCollection.cs
- SystemParameters.cs
- CatalogPartCollection.cs
- FormClosingEvent.cs
- TdsParserStaticMethods.cs
- VectorAnimationBase.cs
- PointConverter.cs
- IgnoreSectionHandler.cs
- StylusCollection.cs
- HashLookup.cs
- ReflectionUtil.cs
- AppDomainCompilerProxy.cs
- OperandQuery.cs
- DocumentAutomationPeer.cs
- NameValueSectionHandler.cs
- Math.cs
- DataGridColumn.cs
- SimplePropertyEntry.cs
- SmiRequestExecutor.cs
- BamlTreeMap.cs
- CryptoApi.cs
- _AutoWebProxyScriptHelper.cs
- GregorianCalendarHelper.cs
- AppLevelCompilationSectionCache.cs
- DataGridViewLinkCell.cs
- IndexedEnumerable.cs
- ComplexTypeEmitter.cs
- ThumbButtonInfo.cs
- AdornerDecorator.cs
- DataGridViewCheckBoxCell.cs
- ProfileInfo.cs
- SSmlParser.cs
- WindowsIPAddress.cs
- TextMarkerSource.cs
- PerspectiveCamera.cs
- VisualBasicReference.cs
- EdmType.cs
- UserUseLicenseDictionaryLoader.cs