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
- XmlDownloadManager.cs
- PointCollectionValueSerializer.cs
- PageFunction.cs
- NullToBooleanConverter.cs
- CollectionsUtil.cs
- RawTextInputReport.cs
- MessageQueueException.cs
- EventLogQuery.cs
- safePerfProviderHandle.cs
- XmlAttributeProperties.cs
- PaginationProgressEventArgs.cs
- XamlFilter.cs
- BuilderPropertyEntry.cs
- XPathArrayIterator.cs
- CodeMemberField.cs
- JpegBitmapDecoder.cs
- ApplicationSecurityInfo.cs
- DoubleCollectionValueSerializer.cs
- SqlGenericUtil.cs
- DataPagerFieldItem.cs
- DbConnectionFactory.cs
- XmlUtf8RawTextWriter.cs
- SiteMapNodeItemEventArgs.cs
- GeometryModel3D.cs
- InfoCardService.cs
- EventLogInternal.cs
- AnnouncementEndpoint.cs
- MergeFailedEvent.cs
- SimpleTypeResolver.cs
- FloaterBaseParaClient.cs
- SqlClientFactory.cs
- QueryStoreStatusRequest.cs
- OdbcCommand.cs
- serverconfig.cs
- StructuredProperty.cs
- MenuDesigner.cs
- SerializationSectionGroup.cs
- localization.cs
- CommonGetThemePartSize.cs
- DataControlReference.cs
- PtsContext.cs
- TagPrefixAttribute.cs
- RealProxy.cs
- IsolationInterop.cs
- AddInAttribute.cs
- Assembly.cs
- ReadOnlyDataSource.cs
- X509AudioLogo.cs
- Int16Storage.cs
- Color.cs
- MetadataCollection.cs
- DocumentViewerHelper.cs
- AlignmentXValidation.cs
- TraceContextEventArgs.cs
- AmbientLight.cs
- FlowDocumentFormatter.cs
- DescendantOverDescendantQuery.cs
- OdbcParameterCollection.cs
- OptionalMessageQuery.cs
- GorillaCodec.cs
- oledbmetadatacollectionnames.cs
- WebPartVerbCollection.cs
- EntityProviderServices.cs
- _FtpControlStream.cs
- SettingsSavedEventArgs.cs
- ZipFileInfoCollection.cs
- SmtpMail.cs
- Freezable.cs
- CodeIdentifiers.cs
- EditorPartChrome.cs
- TextPatternIdentifiers.cs
- StyleXamlTreeBuilder.cs
- CodePageUtils.cs
- Brushes.cs
- ResourceCodeDomSerializer.cs
- Point4DValueSerializer.cs
- MatrixConverter.cs
- MergeLocalizationDirectives.cs
- TextBoxDesigner.cs
- Roles.cs
- Input.cs
- ServiceOperationListItem.cs
- ActiveXContainer.cs
- ClientTargetCollection.cs
- safemediahandle.cs
- ModuleConfigurationInfo.cs
- CodeDirectoryCompiler.cs
- IntegrationExceptionEventArgs.cs
- HtmlInputFile.cs
- WorkflowInstanceAbortedRecord.cs
- ControlType.cs
- DependentList.cs
- HttpRequestCacheValidator.cs
- PageContentAsyncResult.cs
- AppModelKnownContentFactory.cs
- WebHttpDispatchOperationSelectorData.cs
- DataListItemEventArgs.cs
- XmlTextWriter.cs
- safex509handles.cs
- XPathNodeInfoAtom.cs