Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / clr / src / BCL / System / Configuration / Assemblies / AssemblyHash.cs / 1 / 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
- UpdatePanel.cs
- ProviderUtil.cs
- EventPropertyMap.cs
- SeverityFilter.cs
- SetterBase.cs
- LineBreakRecord.cs
- ListItemCollection.cs
- VBIdentifierTrimConverter.cs
- ContextQuery.cs
- InvokeBinder.cs
- WhitespaceReader.cs
- IndependentlyAnimatedPropertyMetadata.cs
- BitmapEncoder.cs
- CodeRegionDirective.cs
- ViewDesigner.cs
- TextParaLineResult.cs
- SortDescriptionCollection.cs
- DES.cs
- DataGridViewTextBoxColumn.cs
- SuppressMergeCheckAttribute.cs
- WebControl.cs
- WorkflowValidationFailedException.cs
- TypeDescriptionProviderAttribute.cs
- SimpleMailWebEventProvider.cs
- MenuAdapter.cs
- ValidationPropertyAttribute.cs
- RayHitTestParameters.cs
- ISFTagAndGuidCache.cs
- ValueTable.cs
- Stopwatch.cs
- FontSourceCollection.cs
- RichTextBoxConstants.cs
- _IPv4Address.cs
- PrimitiveType.cs
- MsmqIntegrationBindingCollectionElement.cs
- TabletDevice.cs
- RTLAwareMessageBox.cs
- WebPartConnectionsEventArgs.cs
- XsdDuration.cs
- SegmentInfo.cs
- GcHandle.cs
- Point4D.cs
- RequestStatusBarUpdateEventArgs.cs
- TextRange.cs
- LinkLabel.cs
- RootContext.cs
- Memoizer.cs
- AssemblyAttributes.cs
- DocumentSequence.cs
- PipeSecurity.cs
- Matrix.cs
- EndOfStreamException.cs
- Permission.cs
- Int32RectValueSerializer.cs
- NetworkCredential.cs
- control.ime.cs
- RtfToken.cs
- TypeUtil.cs
- RtType.cs
- FlagsAttribute.cs
- InfoCardProofToken.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ISO2022Encoding.cs
- AsymmetricSignatureFormatter.cs
- MonitoringDescriptionAttribute.cs
- PrefixQName.cs
- CacheForPrimitiveTypes.cs
- AuthenticationServiceManager.cs
- TextPattern.cs
- ClientApiGenerator.cs
- SymbolMethod.cs
- Rect.cs
- SimpleMailWebEventProvider.cs
- X509UI.cs
- Triangle.cs
- SoapDocumentServiceAttribute.cs
- ViewStateModeByIdAttribute.cs
- oledbmetadatacollectionnames.cs
- ApplicationServiceHelper.cs
- SymDocumentType.cs
- CheckBoxFlatAdapter.cs
- IPEndPointCollection.cs
- EntityWrapper.cs
- XmlDataProvider.cs
- ToolStripPanelSelectionBehavior.cs
- LinkedResource.cs
- SqlCacheDependencyDatabaseCollection.cs
- CodeCastExpression.cs
- FacetChecker.cs
- LinkedResource.cs
- Models.cs
- ProfessionalColors.cs
- ConstructorBuilder.cs
- AccessibleObject.cs
- SymbolPair.cs
- FormViewDesigner.cs
- DivideByZeroException.cs
- ViewBox.cs
- TraceEventCache.cs
- StrongNameUtility.cs