Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / clr / src / BCL / System / Configuration / Assemblies / AssemblyHash.cs / 1 / 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.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AttributeCallbackBuilder.cs
- HyperLinkField.cs
- SystemIcmpV4Statistics.cs
- DbDataAdapter.cs
- RoutedUICommand.cs
- SessionIDManager.cs
- EDesignUtil.cs
- WSDualHttpBindingCollectionElement.cs
- LaxModeSecurityHeaderElementInferenceEngine.cs
- SynchronizedDispatch.cs
- ToolStripItemTextRenderEventArgs.cs
- SafeRightsManagementQueryHandle.cs
- AnimationTimeline.cs
- QueryTask.cs
- PlainXmlSerializer.cs
- sitestring.cs
- StackSpiller.Temps.cs
- Bidi.cs
- TTSEvent.cs
- XmlDocument.cs
- documentation.cs
- OdbcTransaction.cs
- ResolveCriteria.cs
- FreeFormPanel.cs
- StreamGeometryContext.cs
- SimplePropertyEntry.cs
- CompilerGlobalScopeAttribute.cs
- ReachSerializationUtils.cs
- CommandID.cs
- SqlRowUpdatedEvent.cs
- TypographyProperties.cs
- Storyboard.cs
- HierarchicalDataBoundControl.cs
- DesignerActionMethodItem.cs
- StatusBarPanel.cs
- RIPEMD160Managed.cs
- SchemaCollectionPreprocessor.cs
- ListViewGroupItemCollection.cs
- DataObjectAttribute.cs
- ObjectAnimationUsingKeyFrames.cs
- AffineTransform3D.cs
- SignatureConfirmationElement.cs
- FaultFormatter.cs
- ConnectionPoint.cs
- UdpDiscoveryMessageFilter.cs
- DelayLoadType.cs
- SortAction.cs
- XmlQuerySequence.cs
- PropertyIdentifier.cs
- Point3DCollectionValueSerializer.cs
- StaticExtensionConverter.cs
- BasicExpressionVisitor.cs
- DbProviderFactory.cs
- HitTestWithPointDrawingContextWalker.cs
- ViewCellRelation.cs
- ViewStateException.cs
- TableAdapterManagerNameHandler.cs
- CachedFontFamily.cs
- DrawingContextDrawingContextWalker.cs
- TcpStreams.cs
- CommonXSendMessage.cs
- ServiceChannelFactory.cs
- ColorMatrix.cs
- ColorBlend.cs
- QueueProcessor.cs
- WindowsScroll.cs
- latinshape.cs
- ProxyAttribute.cs
- HandlerWithFactory.cs
- Compiler.cs
- StyleCollection.cs
- CFStream.cs
- PathData.cs
- GreenMethods.cs
- MethodExpression.cs
- TcpSocketManager.cs
- Currency.cs
- BasicExpressionVisitor.cs
- SyndicationItemFormatter.cs
- UnicodeEncoding.cs
- HostSecurityManager.cs
- DescendentsWalker.cs
- ChangesetResponse.cs
- DefaultValueTypeConverter.cs
- InteropAutomationProvider.cs
- DesignerRegion.cs
- XmlSchemaAnyAttribute.cs
- DurableTimerExtension.cs
- OutputCacheProfile.cs
- RecordBuilder.cs
- DesignerGenericWebPart.cs
- SqlGenericUtil.cs
- DebugViewWriter.cs
- DetailsViewDeletedEventArgs.cs
- PasswordTextNavigator.cs
- KeyInterop.cs
- HashJoinQueryOperatorEnumerator.cs
- Int16Storage.cs
- OdbcInfoMessageEvent.cs
- MimeTypePropertyAttribute.cs