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
- LicenseContext.cs
- BamlCollectionHolder.cs
- RichTextBoxConstants.cs
- CellCreator.cs
- SystemIPInterfaceStatistics.cs
- DoubleAnimationUsingKeyFrames.cs
- ComponentTray.cs
- ProfileGroupSettingsCollection.cs
- ZipIOBlockManager.cs
- PropertyDescriptor.cs
- ControlCachePolicy.cs
- RoutedEventArgs.cs
- CodeTypeOfExpression.cs
- SerialStream.cs
- TaiwanCalendar.cs
- ItemDragEvent.cs
- RawMouseInputReport.cs
- StreamGeometry.cs
- QueueProcessor.cs
- SqlClientFactory.cs
- PowerStatus.cs
- BrowserCapabilitiesFactoryBase.cs
- XsltLoader.cs
- SQLDouble.cs
- DataProtection.cs
- SplineQuaternionKeyFrame.cs
- Transactions.cs
- SQLByteStorage.cs
- ContextMenuAutomationPeer.cs
- XmlBinaryReader.cs
- DbDataReader.cs
- SecurityDocument.cs
- ToolStripSplitStackLayout.cs
- Effect.cs
- typedescriptorpermission.cs
- PropertyChangedEventArgs.cs
- GridViewSelectEventArgs.cs
- PixelFormatConverter.cs
- TrackingStringDictionary.cs
- DataObjectFieldAttribute.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- safex509handles.cs
- XmlJsonWriter.cs
- ComponentManagerBroker.cs
- RemoteHelper.cs
- Logging.cs
- Rect3DConverter.cs
- ResourcePermissionBaseEntry.cs
- ServiceChannelManager.cs
- AmbientProperties.cs
- Splitter.cs
- InfiniteIntConverter.cs
- DataRecordObjectView.cs
- PrintControllerWithStatusDialog.cs
- PlanCompilerUtil.cs
- PartialList.cs
- XmlToDatasetMap.cs
- OneWayChannelListener.cs
- HttpClientCertificate.cs
- Region.cs
- HttpCookie.cs
- ScriptControlDescriptor.cs
- SqlProcedureAttribute.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- DeploymentExceptionMapper.cs
- RtfControlWordInfo.cs
- Boolean.cs
- BufferCache.cs
- Camera.cs
- PrePostDescendentsWalker.cs
- Span.cs
- DataKeyCollection.cs
- SettingsSection.cs
- DataPagerField.cs
- DeferredElementTreeState.cs
- StoreAnnotationsMap.cs
- HttpProcessUtility.cs
- SqlFlattener.cs
- NavigationHelper.cs
- PageThemeParser.cs
- SHA512Managed.cs
- LinearGradientBrush.cs
- StringPropertyBuilder.cs
- MenuEventArgs.cs
- UriTemplateQueryValue.cs
- ImageFormat.cs
- SerializationObjectManager.cs
- RepeatBehavior.cs
- SchemaImporterExtensionsSection.cs
- GroupBoxAutomationPeer.cs
- SponsorHelper.cs
- XmlSchemaAttribute.cs
- TypeLibConverter.cs
- WizardSideBarListControlItem.cs
- FileVersion.cs
- ResizeBehavior.cs
- MonthCalendar.cs
- PropertyPathConverter.cs
- ResourceSet.cs
- Int32CAMarshaler.cs