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
- coordinatorscratchpad.cs
- WorkerRequest.cs
- PriorityQueue.cs
- _SingleItemRequestCache.cs
- TracingConnectionListener.cs
- ParentQuery.cs
- SHA1CryptoServiceProvider.cs
- SqlMethods.cs
- EntityWrapperFactory.cs
- PingOptions.cs
- BigInt.cs
- CodeSubDirectoriesCollection.cs
- XmlWrappingWriter.cs
- PeerTransportCredentialType.cs
- TextRangeAdaptor.cs
- XslTransform.cs
- TabPanel.cs
- NullEntityWrapper.cs
- Adorner.cs
- DetailsViewPageEventArgs.cs
- TitleStyle.cs
- KeyToListMap.cs
- BoolLiteral.cs
- DesignerDataStoredProcedure.cs
- ArrayMergeHelper.cs
- SQLDateTimeStorage.cs
- PatternMatcher.cs
- RuntimeHandles.cs
- GatewayDefinition.cs
- CodeDefaultValueExpression.cs
- RectConverter.cs
- DelegatedStream.cs
- TraceContextRecord.cs
- DataFieldCollectionEditor.cs
- AliasGenerator.cs
- InternalTypeHelper.cs
- PrivateFontCollection.cs
- PropagatorResult.cs
- SHA384.cs
- SecurityDocument.cs
- XmlILIndex.cs
- MetadataLocation.cs
- Stacktrace.cs
- SynchronizationScope.cs
- MatrixConverter.cs
- FlowDocumentView.cs
- PKCS1MaskGenerationMethod.cs
- CultureInfoConverter.cs
- LongMinMaxAggregationOperator.cs
- VisemeEventArgs.cs
- XamlInt32CollectionSerializer.cs
- StringArrayConverter.cs
- ScaleTransform3D.cs
- AlgoModule.cs
- EventLogEntryCollection.cs
- FileUtil.cs
- MouseGestureConverter.cs
- ToolStripRenderEventArgs.cs
- AvTraceFormat.cs
- Panel.cs
- AssemblyInfo.cs
- RSAOAEPKeyExchangeDeformatter.cs
- MetadataCollection.cs
- StructuralObject.cs
- CustomLineCap.cs
- XmlAnyAttributeAttribute.cs
- StateItem.cs
- Parser.cs
- SrgsToken.cs
- DateRangeEvent.cs
- FixedSOMLineCollection.cs
- DataFormats.cs
- SettingsPropertyCollection.cs
- TextEditorCopyPaste.cs
- LinqToSqlWrapper.cs
- XsltFunctions.cs
- HtmlMeta.cs
- OdbcEnvironment.cs
- ManagementQuery.cs
- Bezier.cs
- CompoundFileStreamReference.cs
- BindingCompleteEventArgs.cs
- XmlDocument.cs
- StateMachine.cs
- CollectionBase.cs
- EntityContainerRelationshipSet.cs
- SecurityHelper.cs
- OlePropertyStructs.cs
- BigInt.cs
- EntityProviderFactory.cs
- PeerObject.cs
- TextStore.cs
- TypeTypeConverter.cs
- MenuItemCollectionEditor.cs
- UriWriter.cs
- AmbiguousMatchException.cs
- TraceContextEventArgs.cs
- TextAutomationPeer.cs
- FunctionQuery.cs
- SqlServer2KCompatibilityCheck.cs