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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebPartConnectionsConfigureVerb.cs
- PlanCompiler.cs
- XmlSchemaSimpleTypeUnion.cs
- ManipulationLogic.cs
- SimpleHandlerFactory.cs
- TypeNameConverter.cs
- XmlSignatureManifest.cs
- WebBrowser.cs
- FixedPageStructure.cs
- ImageIndexConverter.cs
- ClientEventManager.cs
- WindowClosedEventArgs.cs
- RequestQueue.cs
- XmlKeywords.cs
- ErrorWebPart.cs
- SafeFileMappingHandle.cs
- ArcSegment.cs
- FormattedText.cs
- WindowsGraphicsWrapper.cs
- PackWebRequestFactory.cs
- ResourcesBuildProvider.cs
- TrustLevelCollection.cs
- HeaderUtility.cs
- RenderingBiasValidation.cs
- srgsitem.cs
- OperatingSystem.cs
- WebBrowserHelper.cs
- NameValueConfigurationElement.cs
- XmlUTF8TextWriter.cs
- FrameworkTemplate.cs
- ScrollChrome.cs
- PropertyTabAttribute.cs
- ConfigXmlSignificantWhitespace.cs
- TextParaClient.cs
- columnmapfactory.cs
- SelectionHighlightInfo.cs
- DesignSurfaceCollection.cs
- _LazyAsyncResult.cs
- CornerRadiusConverter.cs
- StrokeSerializer.cs
- KeyNotFoundException.cs
- PipeSecurity.cs
- PolyBezierSegment.cs
- GradientStop.cs
- ParameterEditorUserControl.cs
- XhtmlBasicControlAdapter.cs
- TextFragmentEngine.cs
- SerialReceived.cs
- Application.cs
- IChannel.cs
- FullTextState.cs
- KeyGestureValueSerializer.cs
- CommonGetThemePartSize.cs
- ParserStreamGeometryContext.cs
- StatementContext.cs
- Win32.cs
- SmiRequestExecutor.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- DataGridViewRowsRemovedEventArgs.cs
- PkcsUtils.cs
- EntityException.cs
- Calendar.cs
- SEHException.cs
- LabelLiteral.cs
- PersonalizationStateInfoCollection.cs
- PaperSize.cs
- CaseExpr.cs
- MatrixCamera.cs
- PropertyDescriptorCollection.cs
- XmlSchemaResource.cs
- ToolStripControlHost.cs
- XmlAttributeAttribute.cs
- ColorConvertedBitmap.cs
- BitmapEffectOutputConnector.cs
- NonSerializedAttribute.cs
- KeyGesture.cs
- LayoutUtils.cs
- SerializationAttributes.cs
- COM2ComponentEditor.cs
- StorageRoot.cs
- PropertyPushdownHelper.cs
- WorkflowIdleElement.cs
- SqlCacheDependencyDatabase.cs
- CompositeFontFamily.cs
- PageRequestManager.cs
- SuppressMessageAttribute.cs
- RuntimeResourceSet.cs
- StylusPlugin.cs
- ScriptingWebServicesSectionGroup.cs
- EventWaitHandle.cs
- DbParameterHelper.cs
- BitStream.cs
- FormViewCommandEventArgs.cs
- XmlSchemaIdentityConstraint.cs
- Polygon.cs
- UIElement3D.cs
- FormViewModeEventArgs.cs
- IndependentlyAnimatedPropertyMetadata.cs
- GridToolTip.cs
- Int32Collection.cs