Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SchemaObjectWriter.cs
- SynchronizedDispatch.cs
- XmlReturnWriter.cs
- StyleXamlParser.cs
- SafeHandle.cs
- ContextBase.cs
- updateconfighost.cs
- CLRBindingWorker.cs
- FixedPageStructure.cs
- EventRouteFactory.cs
- HelpProvider.cs
- SqlLiftWhereClauses.cs
- StrokeNodeOperations.cs
- BaseAddressElementCollection.cs
- RichTextBoxConstants.cs
- DataColumn.cs
- CodeMemberEvent.cs
- DependencyProperty.cs
- SafeReadContext.cs
- StylusCaptureWithinProperty.cs
- XmlObjectSerializerWriteContextComplex.cs
- CodeCastExpression.cs
- DSASignatureFormatter.cs
- InvalidateEvent.cs
- CheckBoxBaseAdapter.cs
- UnsafeNativeMethods.cs
- ClientFormsIdentity.cs
- ThreadStartException.cs
- TableLayoutSettings.cs
- Path.cs
- SecurityAccessDeniedException.cs
- InheritanceRules.cs
- GACMembershipCondition.cs
- BasicHttpSecurity.cs
- PersonalizableTypeEntry.cs
- ObjectSpanRewriter.cs
- NumericPagerField.cs
- X509Utils.cs
- XmlUnspecifiedAttribute.cs
- ProtocolElement.cs
- EditorZone.cs
- XmlHierarchicalDataSourceView.cs
- NavigatingCancelEventArgs.cs
- FileChangesMonitor.cs
- WinEventWrap.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- SchemaNamespaceManager.cs
- loginstatus.cs
- SaveFileDialogDesigner.cs
- MissingManifestResourceException.cs
- DBAsyncResult.cs
- Focus.cs
- ellipse.cs
- ProxyAssemblyNotLoadedException.cs
- UserControlBuildProvider.cs
- WmpBitmapEncoder.cs
- ExecutionContext.cs
- DataObjectMethodAttribute.cs
- ViewPort3D.cs
- NativeObjectSecurity.cs
- XmlSchemaValidator.cs
- XmlSubtreeReader.cs
- ActivityMarkupSerializer.cs
- wmiutil.cs
- ReferencedAssembly.cs
- FlowStep.cs
- MessageAction.cs
- XmlDocumentSerializer.cs
- PixelFormats.cs
- ContractMapping.cs
- Converter.cs
- Assert.cs
- RecognizerStateChangedEventArgs.cs
- LiteralControl.cs
- FrameworkObject.cs
- SqlUtils.cs
- AsyncOperation.cs
- safesecurityhelperavalon.cs
- UnsafeNativeMethods.cs
- FactoryGenerator.cs
- GenericsInstances.cs
- InsufficientMemoryException.cs
- SerializableAttribute.cs
- SiteMapNodeItemEventArgs.cs
- RequestQueryParser.cs
- DataTableClearEvent.cs
- WindowsRegion.cs
- DataServiceQueryProvider.cs
- CodeAttachEventStatement.cs
- ProxyAssemblyNotLoadedException.cs
- SQLDateTimeStorage.cs
- XPathNavigator.cs
- Rule.cs
- RowCache.cs
- RC2.cs
- WebAdminConfigurationHelper.cs
- ObfuscationAttribute.cs
- RowCache.cs
- DataGridViewCellCancelEventArgs.cs
- HatchBrush.cs