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
- HistoryEventArgs.cs
- BrushMappingModeValidation.cs
- XpsViewerException.cs
- TiffBitmapEncoder.cs
- EventDescriptor.cs
- ProviderSettings.cs
- QuaternionAnimation.cs
- KeyGesture.cs
- ConnectionProviderAttribute.cs
- QuarticEase.cs
- ToolStripSplitStackLayout.cs
- IssuanceLicense.cs
- ResourceSetExpression.cs
- DeploymentExceptionMapper.cs
- NamespaceInfo.cs
- ISO2022Encoding.cs
- ParameterBuilder.cs
- ForwardPositionQuery.cs
- XmlSchemaExporter.cs
- DataGridViewHeaderCell.cs
- FormsAuthenticationModule.cs
- WebBrowserPermission.cs
- SmtpReplyReader.cs
- MeasurementDCInfo.cs
- TemplateKey.cs
- base64Transforms.cs
- Empty.cs
- CircleEase.cs
- PointAnimationBase.cs
- ListView.cs
- FileRecordSequenceCompletedAsyncResult.cs
- InstanceNameConverter.cs
- AuthenticationManager.cs
- ElementProxy.cs
- Focus.cs
- SqlFactory.cs
- ArgumentValidation.cs
- SimpleLine.cs
- ReadOnlyObservableCollection.cs
- EdgeProfileValidation.cs
- GcSettings.cs
- _CacheStreams.cs
- TabControl.cs
- SystemIPv4InterfaceProperties.cs
- FormParameter.cs
- SpecularMaterial.cs
- SectionUpdates.cs
- SslStream.cs
- RecordsAffectedEventArgs.cs
- XmlSchemaValidationException.cs
- CodeTypeReference.cs
- ListBindableAttribute.cs
- webeventbuffer.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- DataGridViewDataErrorEventArgs.cs
- dsa.cs
- ExpressionsCollectionEditor.cs
- SelectionUIHandler.cs
- SqlDataSourceCommandEventArgs.cs
- SHA384.cs
- WebPermission.cs
- Camera.cs
- ConfigurationManagerHelper.cs
- LayoutTable.cs
- GridProviderWrapper.cs
- TypeContext.cs
- Clock.cs
- IncomingWebResponseContext.cs
- HttpCacheVaryByContentEncodings.cs
- SelectionRange.cs
- NameValuePermission.cs
- SpeechRecognitionEngine.cs
- BuildDependencySet.cs
- WpfPayload.cs
- ContentTextAutomationPeer.cs
- SecurityTokenProviderContainer.cs
- TextBlock.cs
- SafeBitVector32.cs
- WindowsHyperlink.cs
- _SSPIWrapper.cs
- PassportAuthenticationModule.cs
- SystemException.cs
- SQlBooleanStorage.cs
- UrlUtility.cs
- DataGridViewAutoSizeModeEventArgs.cs
- BaseInfoTable.cs
- Funcletizer.cs
- DelayedRegex.cs
- BitmapEffectGroup.cs
- ConfigXmlSignificantWhitespace.cs
- SqlOuterApplyReducer.cs
- ResourcePart.cs
- ProtocolsConfigurationHandler.cs
- UseLicense.cs
- FromReply.cs
- MethodToken.cs
- VisualBrush.cs
- ZipIOExtraFieldZip64Element.cs
- TextRangeEditTables.cs
- RowsCopiedEventArgs.cs