Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OleDbError.cs
- PropertyBuilder.cs
- FixedHyperLink.cs
- DesignerSerializationOptionsAttribute.cs
- ToolStripSettings.cs
- IxmlLineInfo.cs
- AppSettings.cs
- HeaderedItemsControl.cs
- SamlConditions.cs
- DocumentAutomationPeer.cs
- InputGestureCollection.cs
- WindowsClaimSet.cs
- Vector3DCollectionConverter.cs
- KoreanLunisolarCalendar.cs
- Int32Storage.cs
- GroupQuery.cs
- DataControlButton.cs
- DesignUtil.cs
- PassportAuthenticationEventArgs.cs
- DesignerDataConnection.cs
- Item.cs
- StorageEntityContainerMapping.cs
- HitTestParameters3D.cs
- InsufficientMemoryException.cs
- WebPartManagerInternals.cs
- AppDomain.cs
- FileRecordSequenceHelper.cs
- ComboBox.cs
- relpropertyhelper.cs
- DeclaredTypeElement.cs
- EmptyEnumerable.cs
- RegexGroup.cs
- XmlSchemaRedefine.cs
- TemplateInstanceAttribute.cs
- DataServices.cs
- ChildrenQuery.cs
- UrlMappingCollection.cs
- Item.cs
- DetailsViewRowCollection.cs
- JsonQueryStringConverter.cs
- Rule.cs
- BindingMAnagerBase.cs
- SchemaCollectionPreprocessor.cs
- ProtocolsConfigurationEntry.cs
- DataServiceQuery.cs
- DelegatingConfigHost.cs
- ServiceDeploymentInfo.cs
- ReflectionUtil.cs
- AsymmetricCryptoHandle.cs
- PageMediaSize.cs
- ConfigUtil.cs
- AnnotationResource.cs
- MouseActionConverter.cs
- PathFigure.cs
- GetPageNumberCompletedEventArgs.cs
- XmlSchemaExternal.cs
- CodeNamespaceImport.cs
- WebExceptionStatus.cs
- EncoderParameters.cs
- GenericAuthenticationEventArgs.cs
- CellPartitioner.cs
- ItemsPanelTemplate.cs
- ElementMarkupObject.cs
- DiscoveryClient.cs
- DBConnection.cs
- nulltextcontainer.cs
- DescendentsWalkerBase.cs
- IISMapPath.cs
- ProcessModule.cs
- AsymmetricCryptoHandle.cs
- SystemTcpStatistics.cs
- NullExtension.cs
- WindowsBrush.cs
- RemoteWebConfigurationHostServer.cs
- ParseElementCollection.cs
- DispatcherEventArgs.cs
- ComponentResourceKey.cs
- WindowsIdentity.cs
- XamlToRtfWriter.cs
- RequiredFieldValidator.cs
- XmlSiteMapProvider.cs
- BlobPersonalizationState.cs
- StructuredType.cs
- MsmqInputSessionChannel.cs
- Latin1Encoding.cs
- ButtonRenderer.cs
- MetadataSource.cs
- ControllableStoryboardAction.cs
- Documentation.cs
- AssociationSetEnd.cs
- PersonalizationStateQuery.cs
- ActivityXRefPropertyEditor.cs
- MachineKeyConverter.cs
- oledbmetadatacolumnnames.cs
- SoapConverter.cs
- HttpListenerResponse.cs
- WebPartConnection.cs
- SignatureToken.cs
- OdbcParameterCollection.cs
- PhysicalOps.cs