Code:
/ DotNET / DotNET / 8.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
- Base64Encoder.cs
- ReadOnlyHierarchicalDataSourceView.cs
- DataBoundControlActionList.cs
- StringInfo.cs
- ControlEvent.cs
- ImageAutomationPeer.cs
- Attributes.cs
- TranslateTransform3D.cs
- FontConverter.cs
- WindowsTreeView.cs
- JavascriptCallbackBehaviorAttribute.cs
- XsdCachingReader.cs
- RegisteredArrayDeclaration.cs
- RemotingConfigParser.cs
- DirectoryObjectSecurity.cs
- ToolStripSplitStackLayout.cs
- ObjectConverter.cs
- Console.cs
- StringSource.cs
- KeyBinding.cs
- QueueSurrogate.cs
- DistributedTransactionPermission.cs
- ThreadAttributes.cs
- FlowDocumentPaginator.cs
- SamlAssertion.cs
- XmlRootAttribute.cs
- ObjectManager.cs
- QueryExpr.cs
- HttpRequest.cs
- SelectionItemProviderWrapper.cs
- XmlReaderDelegator.cs
- Parser.cs
- GroupStyle.cs
- ClientScriptItemCollection.cs
- XmlAnyElementAttributes.cs
- Brush.cs
- Mappings.cs
- EdmRelationshipRoleAttribute.cs
- ExpressionPrinter.cs
- ListBoxAutomationPeer.cs
- ToolboxComponentsCreatingEventArgs.cs
- InternalBufferOverflowException.cs
- SpellerInterop.cs
- DataGridViewAutoSizeModeEventArgs.cs
- DateTimeConverter2.cs
- ReferentialConstraint.cs
- FileChangesMonitor.cs
- XmlCollation.cs
- Delay.cs
- InternalConfigEventArgs.cs
- AssemblyAttributesGoHere.cs
- WebPartMovingEventArgs.cs
- UnsafeNativeMethods.cs
- DataServiceKeyAttribute.cs
- Vector3DCollectionValueSerializer.cs
- TextTreeExtractElementUndoUnit.cs
- PersonalizationProviderCollection.cs
- LoginUtil.cs
- TcpConnectionPool.cs
- MappingModelBuildProvider.cs
- AccessibleObject.cs
- ChannelFactoryRefCache.cs
- printdlgexmarshaler.cs
- CompositeActivityCodeGenerator.cs
- SqlDeflator.cs
- NativeWrapper.cs
- IODescriptionAttribute.cs
- XmlSignificantWhitespace.cs
- CodeCommentStatement.cs
- DecoderNLS.cs
- StreamDocument.cs
- DataContract.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- SignerInfo.cs
- UnsafeNativeMethods.cs
- WebPartEditorCancelVerb.cs
- WebPartZoneBase.cs
- MetadataArtifactLoader.cs
- WorkflowDispatchContext.cs
- SizeF.cs
- GridViewUpdateEventArgs.cs
- OleDbConnectionFactory.cs
- SecUtil.cs
- IEnumerable.cs
- TypeElement.cs
- TextServicesManager.cs
- IisTraceWebEventProvider.cs
- CryptoStream.cs
- XmlDeclaration.cs
- ConfigXmlElement.cs
- PasswordRecovery.cs
- RemotingSurrogateSelector.cs
- DesignTimeTemplateParser.cs
- LogFlushAsyncResult.cs
- NotImplementedException.cs
- List.cs
- ACE.cs
- ChainOfDependencies.cs
- PartialTrustVisibleAssembly.cs
- WebHttpEndpoint.cs