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
- BaseParaClient.cs
- _RequestCacheProtocol.cs
- Visual3D.cs
- ResourcePool.cs
- StateWorkerRequest.cs
- SvcMapFileLoader.cs
- StringToken.cs
- SimpleLine.cs
- ConnectionOrientedTransportElement.cs
- CacheForPrimitiveTypes.cs
- TextParaLineResult.cs
- RuntimeCompatibilityAttribute.cs
- TypedCompletedAsyncResult.cs
- StylusPointProperties.cs
- RemoteWebConfigurationHost.cs
- HtmlDocument.cs
- DataControlImageButton.cs
- XmlLinkedNode.cs
- GridViewSelectEventArgs.cs
- RawStylusInputCustomDataList.cs
- ThicknessAnimation.cs
- ObjectAssociationEndMapping.cs
- DataViewListener.cs
- ToolStripContainer.cs
- GZipStream.cs
- TdsParser.cs
- ResolveDuplexCD1AsyncResult.cs
- XmlDocumentSerializer.cs
- TemplateColumn.cs
- TextParagraphProperties.cs
- SafeCryptoHandles.cs
- MetadataArtifactLoaderComposite.cs
- File.cs
- InteropExecutor.cs
- ContainerUtilities.cs
- XmlSchemaObject.cs
- ConcatQueryOperator.cs
- WebServiceFaultDesigner.cs
- AggregateNode.cs
- WebPartConnectionsEventArgs.cs
- FixedSOMTableCell.cs
- WebPartVerbCollection.cs
- _DigestClient.cs
- CapabilitiesAssignment.cs
- DocumentXmlWriter.cs
- StreamMarshaler.cs
- UIPropertyMetadata.cs
- XamlTreeBuilderBamlRecordWriter.cs
- ReflectionTypeLoadException.cs
- CompiledQueryCacheEntry.cs
- MetadataArtifactLoaderCompositeResource.cs
- DataViewManagerListItemTypeDescriptor.cs
- ScriptBehaviorDescriptor.cs
- DriveInfo.cs
- PeerCustomResolverBindingElement.cs
- TranslateTransform.cs
- SortQueryOperator.cs
- RootBuilder.cs
- SamlAdvice.cs
- MasterPage.cs
- CalendarDataBindingHandler.cs
- OciHandle.cs
- StorageAssociationTypeMapping.cs
- ColorContext.cs
- Html32TextWriter.cs
- CqlParser.cs
- DataBoundControlHelper.cs
- XdrBuilder.cs
- FunctionDetailsReader.cs
- RemotingSurrogateSelector.cs
- ArrayHelper.cs
- AppliedDeviceFiltersEditor.cs
- Int32RectValueSerializer.cs
- StringArrayConverter.cs
- Translator.cs
- CFStream.cs
- ManagedIStream.cs
- TransformProviderWrapper.cs
- DataFormats.cs
- CalendarDay.cs
- ConfigurationStrings.cs
- XhtmlBasicPageAdapter.cs
- SafeNativeMemoryHandle.cs
- TextTreeInsertElementUndoUnit.cs
- MaterialGroup.cs
- StylusButton.cs
- ContextQuery.cs
- TerminatorSinks.cs
- InstanceKeyCompleteException.cs
- WhitespaceRuleLookup.cs
- TextProviderWrapper.cs
- RestHandlerFactory.cs
- ManageRequest.cs
- Grant.cs
- ScriptDescriptor.cs
- XmlReflectionImporter.cs
- ThreadStartException.cs
- FontDialog.cs
- EditCommandColumn.cs
- ProofTokenCryptoHandle.cs