Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Configuration / Assemblies / AssemblyHash.cs / 1305376 / AssemblyHash.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*============================================================
**
** File: AssemblyHash
**
**
** Purpose:
**
**
===========================================================*/
namespace System.Configuration.Assemblies {
using System;
[Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
[Obsolete("The AssemblyHash class has been deprecated. http://go.microsoft.com/fwlink/?linkid=14202")]
public struct AssemblyHash : ICloneable
{
private AssemblyHashAlgorithm _Algorithm;
private byte[] _Value;
[Obsolete("The AssemblyHash class has been deprecated. http://go.microsoft.com/fwlink/?linkid=14202")]
public static readonly AssemblyHash Empty = new AssemblyHash(AssemblyHashAlgorithm.None, null);
[Obsolete("The AssemblyHash class has been deprecated. http://go.microsoft.com/fwlink/?linkid=14202")]
public AssemblyHash(byte[] value) {
_Algorithm = AssemblyHashAlgorithm.SHA1;
_Value = null;
if (value != null) {
int length = value.Length;
_Value = new byte[length];
Array.Copy(value, _Value, length);
}
}
[Obsolete("The AssemblyHash class has been deprecated. http://go.microsoft.com/fwlink/?linkid=14202")]
public AssemblyHash(AssemblyHashAlgorithm algorithm, byte[] value) {
_Algorithm = algorithm;
_Value = null;
if (value != null) {
int length = value.Length;
_Value = new byte[length];
Array.Copy(value, _Value, length);
}
}
// Hash is made up of a byte array and a value from a class of supported
// algorithm types.
[Obsolete("The AssemblyHash class has been deprecated. http://go.microsoft.com/fwlink/?linkid=14202")]
public AssemblyHashAlgorithm Algorithm {
get { return _Algorithm; }
set { _Algorithm = value; }
}
[Obsolete("The AssemblyHash class has been deprecated. http://go.microsoft.com/fwlink/?linkid=14202")]
public byte[] GetValue() {
return _Value;
}
[Obsolete("The AssemblyHash class has been deprecated. http://go.microsoft.com/fwlink/?linkid=14202")]
public void SetValue(byte[] value) {
_Value = value;
}
[Obsolete("The AssemblyHash class has been deprecated. http://go.microsoft.com/fwlink/?linkid=14202")]
public Object Clone() {
return new AssemblyHash(_Algorithm, _Value);
}
}
}
// 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
- QilTypeChecker.cs
- Vector3DCollectionConverter.cs
- _DomainName.cs
- connectionpool.cs
- PageStatePersister.cs
- ServerIdentity.cs
- ToolStripContentPanel.cs
- EntityConnection.cs
- ManipulationDelta.cs
- ServiceModelExtensionElement.cs
- _Connection.cs
- VirtualPath.cs
- BuildResult.cs
- FieldBuilder.cs
- ShimAsPublicXamlType.cs
- SkewTransform.cs
- ArrayElementGridEntry.cs
- ReachPrintTicketSerializer.cs
- TreeNodeStyleCollection.cs
- AssertUtility.cs
- SchemaAttDef.cs
- _DomainName.cs
- AnnotationStore.cs
- ArraySegment.cs
- TdsValueSetter.cs
- CqlBlock.cs
- BindingMAnagerBase.cs
- TreeNode.cs
- QilBinary.cs
- WindowsClaimSet.cs
- Transform3DGroup.cs
- Vars.cs
- x509utils.cs
- StrokeCollection2.cs
- TrackingAnnotationCollection.cs
- XmlLanguageConverter.cs
- ActionFrame.cs
- ConditionalDesigner.cs
- DataGridViewComboBoxEditingControl.cs
- ApplicationManager.cs
- DataGridViewTextBoxEditingControl.cs
- ObjectPersistData.cs
- ControlBuilderAttribute.cs
- Internal.cs
- UdpDiscoveryMessageFilter.cs
- BamlStream.cs
- ExpressionEditor.cs
- CharAnimationBase.cs
- StorageInfo.cs
- ConstrainedDataObject.cs
- GraphicsState.cs
- TypeConverterAttribute.cs
- MaterialCollection.cs
- CodeTypeOfExpression.cs
- EngineSite.cs
- CodeTypeReferenceCollection.cs
- DataKeyArray.cs
- TransformedBitmap.cs
- WorkflowOperationBehavior.cs
- ContextProperty.cs
- coordinatorfactory.cs
- ConfigXmlElement.cs
- QilFunction.cs
- ManagementQuery.cs
- PointAnimationUsingPath.cs
- AssociativeAggregationOperator.cs
- TextRenderer.cs
- HostProtectionPermission.cs
- FrameworkContentElementAutomationPeer.cs
- ViewKeyConstraint.cs
- ExtensionWindow.cs
- DynamicActivityTypeDescriptor.cs
- InvalidPrinterException.cs
- BmpBitmapDecoder.cs
- MultiSelector.cs
- CacheSection.cs
- PeerApplicationLaunchInfo.cs
- StyleSheetDesigner.cs
- SplineQuaternionKeyFrame.cs
- WindowsRegion.cs
- ToolStripPanelCell.cs
- InvalidAsynchronousStateException.cs
- DynamicDocumentPaginator.cs
- BrowserCapabilitiesCodeGenerator.cs
- RepeaterItem.cs
- Int32CollectionValueSerializer.cs
- ListViewGroup.cs
- XmlIncludeAttribute.cs
- SafeFileMappingHandle.cs
- EpmSyndicationContentDeSerializer.cs
- PropVariant.cs
- SQLResource.cs
- QuerySubExprEliminator.cs
- MULTI_QI.cs
- Fonts.cs
- UrlPropertyAttribute.cs
- XmlSchemaSequence.cs
- XmlQueryCardinality.cs
- KeySplineConverter.cs
- SchemaImporterExtension.cs