Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- QuaternionAnimationBase.cs
- XmlCDATASection.cs
- StorageEntityContainerMapping.cs
- XmlDictionaryReader.cs
- MessageDesigner.cs
- EdmScalarPropertyAttribute.cs
- Point3DCollection.cs
- WebReferenceOptions.cs
- AudienceUriMode.cs
- DataGridRowDetailsEventArgs.cs
- SequenceDesigner.xaml.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- SQLInt32.cs
- AssemblyNameUtility.cs
- FilterableAttribute.cs
- SingleBodyParameterMessageFormatter.cs
- RelatedImageListAttribute.cs
- InputQueue.cs
- HostProtectionPermission.cs
- WmlListAdapter.cs
- DispatcherTimer.cs
- HtmlTernaryTree.cs
- RewritingProcessor.cs
- WorkflowLayouts.cs
- Or.cs
- NominalTypeEliminator.cs
- ObsoleteAttribute.cs
- EditorZoneBase.cs
- CqlLexerHelpers.cs
- TogglePattern.cs
- CompilerLocalReference.cs
- QuaternionValueSerializer.cs
- RecognitionResult.cs
- ObfuscationAttribute.cs
- Line.cs
- Pens.cs
- RequestCacheEntry.cs
- EdgeProfileValidation.cs
- Compiler.cs
- RemoteTokenFactory.cs
- SpellerHighlightLayer.cs
- UInt16.cs
- ObjectDataSourceStatusEventArgs.cs
- StatusBarDrawItemEvent.cs
- RotateTransform3D.cs
- EntityClientCacheKey.cs
- DefaultSection.cs
- KeyTimeConverter.cs
- HttpDictionary.cs
- CodeFieldReferenceExpression.cs
- DesignRelation.cs
- Trace.cs
- Mapping.cs
- HeaderFilter.cs
- TypographyProperties.cs
- SpeechEvent.cs
- Rect.cs
- ProfileSettings.cs
- StatusBarPanel.cs
- OdbcReferenceCollection.cs
- DataGridBoolColumn.cs
- PageBuildProvider.cs
- UIElementParaClient.cs
- FormParameter.cs
- Size3D.cs
- XmlSchema.cs
- TextBox.cs
- TdsParserStaticMethods.cs
- WebPartManagerInternals.cs
- BitConverter.cs
- QueryGenerator.cs
- State.cs
- X509CertificateRecipientClientCredential.cs
- FieldAccessException.cs
- AppModelKnownContentFactory.cs
- DisableDpiAwarenessAttribute.cs
- AvtEvent.cs
- FrameworkContentElement.cs
- OutKeywords.cs
- SoapEnvelopeProcessingElement.cs
- TableItemPatternIdentifiers.cs
- ServiceRoute.cs
- DeclaredTypeElementCollection.cs
- NonClientArea.cs
- ToolStripSeparatorRenderEventArgs.cs
- PropertyConverter.cs
- DataExpression.cs
- IndentedWriter.cs
- TcpConnectionPoolSettingsElement.cs
- OneOfTypeConst.cs
- ToolStripPanelRow.cs
- Opcode.cs
- WebSysDisplayNameAttribute.cs
- InArgument.cs
- DataServiceExpressionVisitor.cs
- StrongNameIdentityPermission.cs
- InfoCardHelper.cs
- GraphicsState.cs
- BuiltInPermissionSets.cs
- Lazy.cs