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
- _ScatterGatherBuffers.cs
- ClientSideQueueItem.cs
- PinnedBufferMemoryStream.cs
- NeedSkipTokenVisitor.cs
- OleDbFactory.cs
- PocoEntityKeyStrategy.cs
- BufferModeSettings.cs
- RectValueSerializer.cs
- OdbcParameterCollection.cs
- DataGridColumnStyleMappingNameEditor.cs
- _UriSyntax.cs
- ParseHttpDate.cs
- AutomationProperties.cs
- SyndicationSerializer.cs
- AccessDataSourceWizardForm.cs
- LogLogRecordEnumerator.cs
- LicenseProviderAttribute.cs
- Soap.cs
- ParameterEditorUserControl.cs
- ScrollItemPatternIdentifiers.cs
- wgx_render.cs
- HtmlHead.cs
- VersionPair.cs
- TimeoutValidationAttribute.cs
- SettingsPropertyValueCollection.cs
- PropertyInfoSet.cs
- Brush.cs
- DelegatedStream.cs
- DataObjectPastingEventArgs.cs
- GraphicsContainer.cs
- FutureFactory.cs
- ParseHttpDate.cs
- SqlError.cs
- ExtensionElement.cs
- TimeSpanStorage.cs
- DataGridViewCellEventArgs.cs
- Trustee.cs
- FigureParagraph.cs
- RoleManagerModule.cs
- PrintDialog.cs
- Configuration.cs
- HierarchicalDataBoundControlAdapter.cs
- GeometryGroup.cs
- ExtensibleClassFactory.cs
- ProxyOperationRuntime.cs
- XmlSerializableWriter.cs
- CodeSubDirectoriesCollection.cs
- BuildProviderCollection.cs
- Update.cs
- SortKey.cs
- AutoCompleteStringCollection.cs
- TransformDescriptor.cs
- WSFederationHttpBinding.cs
- WmpBitmapDecoder.cs
- MenuItem.cs
- ContainerControl.cs
- QilBinary.cs
- AssociationTypeEmitter.cs
- PropertyToken.cs
- ExitEventArgs.cs
- OverflowException.cs
- OneOf.cs
- IODescriptionAttribute.cs
- WebServiceErrorEvent.cs
- DataGridViewCellStyleChangedEventArgs.cs
- ColorMap.cs
- DataSourceConverter.cs
- ModuleConfigurationInfo.cs
- RotateTransform.cs
- AuthenticateEventArgs.cs
- SimpleHandlerFactory.cs
- XmlSchemaInclude.cs
- Baml2006ReaderSettings.cs
- ComplusTypeValidator.cs
- CompositeFontInfo.cs
- wmiprovider.cs
- WebPartEditorOkVerb.cs
- DataTableCollection.cs
- KnownColorTable.cs
- UserControlAutomationPeer.cs
- SortQueryOperator.cs
- CalendarTable.cs
- LogEntrySerializationException.cs
- UndoEngine.cs
- BlobPersonalizationState.cs
- LineServicesRun.cs
- EventLogEntryCollection.cs
- TextEditorParagraphs.cs
- XmlLanguageConverter.cs
- SourceElementsCollection.cs
- SqlCacheDependencyDatabaseCollection.cs
- GridViewActionList.cs
- MsmqHostedTransportManager.cs
- ExecutionContext.cs
- AudioFileOut.cs
- Type.cs
- BitmapDecoder.cs
- CryptoConfig.cs
- HistoryEventArgs.cs
- ErrorsHelper.cs