Code:
/ 4.0 / 4.0 / 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. // ==++== // // 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
- Profiler.cs
- BitVector32.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- ConnectionProviderAttribute.cs
- ToolboxControl.cs
- CodeAttributeDeclaration.cs
- ContainerFilterService.cs
- BuildDependencySet.cs
- DataBoundControlParameterTarget.cs
- ProfileGroupSettingsCollection.cs
- ZoneLinkButton.cs
- PointConverter.cs
- BamlBinaryWriter.cs
- IteratorDescriptor.cs
- XmlSchemaValidator.cs
- QilXmlWriter.cs
- CaseStatement.cs
- ParserExtension.cs
- XmlUTF8TextReader.cs
- UInt16.cs
- PageAsyncTaskManager.cs
- Simplifier.cs
- MasterPageCodeDomTreeGenerator.cs
- GenericUriParser.cs
- DbgCompiler.cs
- ZoneButton.cs
- JsonWriterDelegator.cs
- Dynamic.cs
- MsmqVerifier.cs
- HtmlInputRadioButton.cs
- DetailsViewPageEventArgs.cs
- RegexCapture.cs
- ThreadAbortException.cs
- DataGridViewTopRowAccessibleObject.cs
- LockedActivityGlyph.cs
- AttachedPropertyMethodSelector.cs
- WmpBitmapEncoder.cs
- TreeNodeEventArgs.cs
- SecurityTokenValidationException.cs
- ToolStripItemEventArgs.cs
- DrawItemEvent.cs
- NameValueCollection.cs
- OpCellTreeNode.cs
- HeaderUtility.cs
- WebPartDisplayModeCollection.cs
- UnmanagedBitmapWrapper.cs
- EnumerableCollectionView.cs
- Closure.cs
- WindowInteractionStateTracker.cs
- StatusBar.cs
- CLSCompliantAttribute.cs
- MediaTimeline.cs
- IndexedString.cs
- XmlReflectionMember.cs
- MatrixUtil.cs
- DateTimeUtil.cs
- AxisAngleRotation3D.cs
- ApplicationException.cs
- AssertFilter.cs
- AlphabeticalEnumConverter.cs
- SafeLocalMemHandle.cs
- FieldBuilder.cs
- BindingCompleteEventArgs.cs
- ResourceDescriptionAttribute.cs
- WebPartDisplayModeCancelEventArgs.cs
- UInt16Converter.cs
- HTTPRemotingHandler.cs
- ZoneMembershipCondition.cs
- RMPublishingDialog.cs
- GorillaCodec.cs
- ResourcePool.cs
- MissingFieldException.cs
- CompoundFileReference.cs
- xmlglyphRunInfo.cs
- ImmutablePropertyDescriptorGridEntry.cs
- LingerOption.cs
- Rotation3D.cs
- SystemNetworkInterface.cs
- IpcClientManager.cs
- HtmlShimManager.cs
- DbMetaDataCollectionNames.cs
- DocumentReference.cs
- LinqMaximalSubtreeNominator.cs
- HtmlPageAdapter.cs
- TrackBarRenderer.cs
- OleDbCommandBuilder.cs
- Events.cs
- MailBnfHelper.cs
- PrincipalPermission.cs
- DBParameter.cs
- Paragraph.cs
- SudsWriter.cs
- ReflectPropertyDescriptor.cs
- InheritedPropertyDescriptor.cs
- AppDomainShutdownMonitor.cs
- TextDecorationCollection.cs
- PrintPreviewControl.cs
- RunInstallerAttribute.cs
- XPathQilFactory.cs
- HMACRIPEMD160.cs