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
- SchemaType.cs
- AttributeCollection.cs
- ColorAnimationBase.cs
- HttpsChannelListener.cs
- ComEventsSink.cs
- HttpCachePolicy.cs
- ChangeTracker.cs
- ButtonBase.cs
- DataGridViewCellParsingEventArgs.cs
- ListDictionaryInternal.cs
- CharAnimationBase.cs
- BasePattern.cs
- Mapping.cs
- dbdatarecord.cs
- ValueTable.cs
- ByteFacetDescriptionElement.cs
- ClientBuildManagerCallback.cs
- safelink.cs
- ToolStripArrowRenderEventArgs.cs
- CompilerParameters.cs
- WorkflowPersistenceContext.cs
- DataGridViewCellValueEventArgs.cs
- HMACMD5.cs
- InstanceData.cs
- ConstraintCollection.cs
- MetadataHelper.cs
- BasicHttpSecurityElement.cs
- DbConnectionStringCommon.cs
- PathTooLongException.cs
- SerializationInfoEnumerator.cs
- RowParagraph.cs
- OrderedDictionaryStateHelper.cs
- _WebProxyDataBuilder.cs
- RichTextBoxConstants.cs
- Int32CollectionValueSerializer.cs
- Speller.cs
- WebReference.cs
- GB18030Encoding.cs
- PackageRelationship.cs
- HitTestParameters.cs
- ActiveXHelper.cs
- WebPartDescription.cs
- MissingMethodException.cs
- DataDesignUtil.cs
- HttpContextServiceHost.cs
- DependentTransaction.cs
- AnimationException.cs
- PluggableProtocol.cs
- CallbackDebugBehavior.cs
- EmptyStringExpandableObjectConverter.cs
- OleDbConnection.cs
- PagesSection.cs
- HtmlTableCell.cs
- MenuItemCollectionEditorDialog.cs
- CodeIterationStatement.cs
- WindowHideOrCloseTracker.cs
- RetrieveVirtualItemEventArgs.cs
- NativeCppClassAttribute.cs
- DataGridViewAdvancedBorderStyle.cs
- DocumentGridPage.cs
- FormCollection.cs
- Schema.cs
- ErrorRuntimeConfig.cs
- TagPrefixInfo.cs
- Internal.cs
- XMLDiffLoader.cs
- CookielessHelper.cs
- EdgeModeValidation.cs
- TableLayoutSettings.cs
- MobileControlDesigner.cs
- WindowsAuthenticationModule.cs
- EditBehavior.cs
- RangeValuePattern.cs
- HtmlForm.cs
- MetadataFile.cs
- DataGridRow.cs
- FixedSOMSemanticBox.cs
- IncrementalReadDecoders.cs
- List.cs
- InvariantComparer.cs
- CompilerState.cs
- DocumentScope.cs
- PermissionSet.cs
- PasswordPropertyTextAttribute.cs
- LogicalExpr.cs
- InstanceNotReadyException.cs
- ReflectTypeDescriptionProvider.cs
- GPRECT.cs
- ContentIterators.cs
- PropertyDescriptorGridEntry.cs
- ModifierKeysValueSerializer.cs
- Vector3DCollection.cs
- AllMembershipCondition.cs
- SqlConnectionPoolProviderInfo.cs
- XmlSiteMapProvider.cs
- AspCompat.cs
- DelegatingMessage.cs
- RequestCachePolicyConverter.cs
- ListBindingConverter.cs
- StringWriter.cs