Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GlobalDataBindingHandler.cs
- GorillaCodec.cs
- MultipartIdentifier.cs
- ColumnWidthChangedEvent.cs
- PersonalizablePropertyEntry.cs
- MetricEntry.cs
- HiddenField.cs
- Int32RectValueSerializer.cs
- SafeCryptoHandles.cs
- Html32TextWriter.cs
- LeafCellTreeNode.cs
- DesignTimeParseData.cs
- RepeaterCommandEventArgs.cs
- _ListenerRequestStream.cs
- CookieProtection.cs
- LeaseManager.cs
- Thread.cs
- CollectionViewGroupInternal.cs
- WebScriptEndpointElement.cs
- ArcSegment.cs
- InternalConfigHost.cs
- SystemInfo.cs
- TypedTableBase.cs
- AssociationTypeEmitter.cs
- SmtpNegotiateAuthenticationModule.cs
- DataGridToolTip.cs
- MenuItemCollectionEditorDialog.cs
- SafeThemeHandle.cs
- SrgsElementList.cs
- SettingsPropertyCollection.cs
- XmlUrlEditor.cs
- EntityContainerEntitySet.cs
- TraceInternal.cs
- DependencyObjectCodeDomSerializer.cs
- SplineQuaternionKeyFrame.cs
- TextParagraphView.cs
- DataSourceControl.cs
- DataSourceControl.cs
- SponsorHelper.cs
- DataGridView.cs
- TaskHelper.cs
- CompilationUnit.cs
- ChannelListenerBase.cs
- KeyInstance.cs
- ContextStaticAttribute.cs
- EdmComplexPropertyAttribute.cs
- RuntimeCompatibilityAttribute.cs
- OracleEncoding.cs
- Pipe.cs
- BulletedList.cs
- ResourcePermissionBaseEntry.cs
- FileSystemWatcher.cs
- PersistenceTypeAttribute.cs
- DeflateInput.cs
- OverrideMode.cs
- DescendantQuery.cs
- MessageHeaders.cs
- QilXmlReader.cs
- HitTestParameters.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- _DisconnectOverlappedAsyncResult.cs
- SiteMapDataSource.cs
- webclient.cs
- SearchForVirtualItemEventArgs.cs
- CorrelationTokenInvalidatedHandler.cs
- CollectionEditorDialog.cs
- EntitySqlQueryState.cs
- MulticastDelegate.cs
- DefaultMergeHelper.cs
- UnmanagedHandle.cs
- DataGridViewCellStyleEditor.cs
- ConnectionStringSettings.cs
- TextEffect.cs
- EventLogRecord.cs
- DataRelation.cs
- ButtonBase.cs
- MapPathBasedVirtualPathProvider.cs
- WebPartConnectionsCancelEventArgs.cs
- KeyValueInternalCollection.cs
- TreeNodeStyleCollection.cs
- ProtocolsConfigurationHandler.cs
- SystemKeyConverter.cs
- AutoCompleteStringCollection.cs
- OptimisticConcurrencyException.cs
- StreamSecurityUpgradeProvider.cs
- DetailsViewRowCollection.cs
- ConfigXmlCDataSection.cs
- FontSource.cs
- NominalTypeEliminator.cs
- TreePrinter.cs
- PenThreadPool.cs
- HtmlInputText.cs
- HttpCachePolicy.cs
- ExpressionBuilder.cs
- XmlDictionaryReader.cs
- HttpHostedTransportConfiguration.cs
- XmlSchemaCompilationSettings.cs
- TraceRecord.cs
- X509ChainElement.cs
- BrowserCapabilitiesFactory35.cs