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
- SoapReflectionImporter.cs
- DSACryptoServiceProvider.cs
- VariableAction.cs
- FixedStringLookup.cs
- TagPrefixCollection.cs
- CompoundFileIOPermission.cs
- SystemIPGlobalProperties.cs
- Tablet.cs
- ClientBuildManager.cs
- cookiecollection.cs
- ConstructorExpr.cs
- SplitterEvent.cs
- IdentitySection.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ConvertEvent.cs
- FormsAuthenticationUserCollection.cs
- DBParameter.cs
- HTTPRemotingHandler.cs
- AggregateException.cs
- ValidatingCollection.cs
- GridViewColumnCollection.cs
- UnsafeNativeMethods.cs
- SafeThemeHandle.cs
- AudioFileOut.cs
- UnSafeCharBuffer.cs
- ClockController.cs
- TextModifierScope.cs
- PlatformNotSupportedException.cs
- NCryptSafeHandles.cs
- CompensatableSequenceActivity.cs
- CapabilitiesSection.cs
- BuilderElements.cs
- MemberMemberBinding.cs
- DecodeHelper.cs
- ThrowHelper.cs
- EditorPartChrome.cs
- Stroke.cs
- DesignColumn.cs
- EmptyEnumerable.cs
- HwndMouseInputProvider.cs
- InheritanceContextHelper.cs
- StringFreezingAttribute.cs
- SqlDataSourceSelectingEventArgs.cs
- SoapSchemaImporter.cs
- WebPartExportVerb.cs
- FreezableDefaultValueFactory.cs
- DataDocumentXPathNavigator.cs
- EpmHelper.cs
- VirtualDirectoryMappingCollection.cs
- LayoutTable.cs
- DateTimeFormat.cs
- ToolStripScrollButton.cs
- StaticExtensionConverter.cs
- VariableElement.cs
- DesignerLoader.cs
- DispatchChannelSink.cs
- CellParaClient.cs
- ResourceCategoryAttribute.cs
- BufferAllocator.cs
- SpellerStatusTable.cs
- FrameworkElement.cs
- ListManagerBindingsCollection.cs
- SqlTypeConverter.cs
- VarRemapper.cs
- XmlChildNodes.cs
- MenuEventArgs.cs
- DefaultShape.cs
- EntryIndex.cs
- HttpSysSettings.cs
- CommonRemoteMemoryBlock.cs
- DataViewManagerListItemTypeDescriptor.cs
- DocumentViewerHelper.cs
- TypeUtil.cs
- NameValueCollection.cs
- GenerateScriptTypeAttribute.cs
- ListBoxAutomationPeer.cs
- ConnectionModeReader.cs
- EntityDataSourceContextDisposingEventArgs.cs
- QueryGeneratorBase.cs
- Suspend.cs
- EmptyElement.cs
- SoapSchemaExporter.cs
- GeometryCombineModeValidation.cs
- XmlSchemaDatatype.cs
- HttpStreamXmlDictionaryReader.cs
- HighlightVisual.cs
- InvalidEnumArgumentException.cs
- Symbol.cs
- MsmqIntegrationSecurity.cs
- documentsequencetextcontainer.cs
- QueryContinueDragEvent.cs
- sqlnorm.cs
- DBSqlParserColumn.cs
- WindowsAuthenticationModule.cs
- FileDialog.cs
- MonitoringDescriptionAttribute.cs
- exports.cs
- baseshape.cs
- SQLSingle.cs
- EncryptedKeyIdentifierClause.cs