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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InvalidDataException.cs
- RadioButtonRenderer.cs
- CapabilitiesPattern.cs
- DesignBindingPicker.cs
- CqlBlock.cs
- XmlWriterDelegator.cs
- CuspData.cs
- SqlMethodAttribute.cs
- ImageMap.cs
- ModelItemImpl.cs
- ErrorCodes.cs
- PtsPage.cs
- DataPagerFieldItem.cs
- WrappedOptions.cs
- ThreadStateException.cs
- MessageQueuePermissionAttribute.cs
- XmlCodeExporter.cs
- SqlFunctions.cs
- _Semaphore.cs
- CheckBox.cs
- DataSourceCacheDurationConverter.cs
- PathSegmentCollection.cs
- ProviderCommandInfoUtils.cs
- BrowserCapabilitiesCompiler.cs
- CodeStatementCollection.cs
- WebCategoryAttribute.cs
- HebrewNumber.cs
- Roles.cs
- Bitmap.cs
- AbstractSvcMapFileLoader.cs
- XslAstAnalyzer.cs
- configsystem.cs
- CodeDirectiveCollection.cs
- BinaryObjectWriter.cs
- BuildDependencySet.cs
- Freezable.cs
- ObjectSelectorEditor.cs
- RoleManagerSection.cs
- SqlIdentifier.cs
- FrameworkPropertyMetadata.cs
- CacheHelper.cs
- WindowsStatic.cs
- Crc32.cs
- Action.cs
- WindowExtensionMethods.cs
- WindowsListViewScroll.cs
- DiscoveryMessageSequenceCD1.cs
- XmlSchemaImport.cs
- FileInfo.cs
- DynamicDocumentPaginator.cs
- Membership.cs
- Int64KeyFrameCollection.cs
- Gdiplus.cs
- FocusChangedEventArgs.cs
- ThemeDictionaryExtension.cs
- EnterpriseServicesHelper.cs
- StrokeRenderer.cs
- SqlTypeConverter.cs
- LineServicesCallbacks.cs
- HtmlDocument.cs
- Bezier.cs
- HierarchicalDataSourceDesigner.cs
- sqlnorm.cs
- XmlDomTextWriter.cs
- TrackingExtract.cs
- UnsafeNativeMethods.cs
- cookiecollection.cs
- CellNormalizer.cs
- PopupRoot.cs
- DocumentApplicationDocumentViewer.cs
- StandardOleMarshalObject.cs
- MD5CryptoServiceProvider.cs
- SqlPersonalizationProvider.cs
- ActivityBindForm.Designer.cs
- SelectManyQueryOperator.cs
- DataTemplate.cs
- GraphicsContext.cs
- RoleProviderPrincipal.cs
- DataSourceHelper.cs
- ActivityCollectionMarkupSerializer.cs
- SemanticResultKey.cs
- CursorInteropHelper.cs
- SerializationHelper.cs
- LocalizabilityAttribute.cs
- SingleSelectRootGridEntry.cs
- BrowserCapabilitiesFactoryBase.cs
- FileLogRecordEnumerator.cs
- StylusButton.cs
- XmlNamedNodeMap.cs
- ImageCodecInfoPrivate.cs
- XmlCharCheckingReader.cs
- GroupBox.cs
- ImageInfo.cs
- ActivityScheduledRecord.cs
- InstanceLockTracking.cs
- DbProviderFactories.cs
- Unit.cs
- KeyValueSerializer.cs
- ProgressBarBrushConverter.cs
- EmptyImpersonationContext.cs