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
- TemplatedAdorner.cs
- StylesEditorDialog.cs
- PlainXmlDeserializer.cs
- HttpMethodAttribute.cs
- CodeNamespace.cs
- Msec.cs
- HideDisabledControlAdapter.cs
- ExtensionQuery.cs
- Column.cs
- MenuItem.cs
- ChannelEndpointElementCollection.cs
- ConfigurationFileMap.cs
- SchemaImporter.cs
- TextPattern.cs
- FromRequest.cs
- SocketAddress.cs
- SmtpClient.cs
- DecoderBestFitFallback.cs
- KeyedHashAlgorithm.cs
- DateTime.cs
- mansign.cs
- ConstNode.cs
- TerminatorSinks.cs
- EventSchemaTraceListener.cs
- ToolStripContextMenu.cs
- DataKeyCollection.cs
- PartialCachingAttribute.cs
- Encoder.cs
- XPathNodeList.cs
- MimeTypePropertyAttribute.cs
- DateTimeConstantAttribute.cs
- StringInfo.cs
- WebProxyScriptElement.cs
- Stroke2.cs
- CorrelationValidator.cs
- AuthenticatedStream.cs
- EntryIndex.cs
- MaskedTextProvider.cs
- ExtensibleSyndicationObject.cs
- OperatorExpressions.cs
- safemediahandle.cs
- PublisherMembershipCondition.cs
- SwitchLevelAttribute.cs
- DataGridViewDataConnection.cs
- TextClipboardData.cs
- MsdtcClusterUtils.cs
- ListCollectionView.cs
- Variable.cs
- RemotingHelper.cs
- TextMetrics.cs
- BindStream.cs
- IsolatedStorageException.cs
- DeferredElementTreeState.cs
- securitycriticaldataformultiplegetandset.cs
- Soap12ProtocolImporter.cs
- LinqDataSourceEditData.cs
- MouseActionConverter.cs
- Shape.cs
- ObjectViewQueryResultData.cs
- AlternationConverter.cs
- InvokeCompletedEventArgs.cs
- MailBnfHelper.cs
- SerializationStore.cs
- AffineTransform3D.cs
- DispatcherOperation.cs
- PersonalizationEntry.cs
- PenThread.cs
- OpCellTreeNode.cs
- TitleStyle.cs
- EntityStoreSchemaGenerator.cs
- ImmutableObjectAttribute.cs
- WebPart.cs
- PermissionSetEnumerator.cs
- WMIGenerator.cs
- ScalarConstant.cs
- ApplicationBuildProvider.cs
- DragDeltaEventArgs.cs
- SynchronizedInputProviderWrapper.cs
- SqlBuffer.cs
- EndOfStreamException.cs
- Point3DCollection.cs
- AssociationTypeEmitter.cs
- TableStyle.cs
- XPathNavigatorKeyComparer.cs
- ProtocolsSection.cs
- XslAst.cs
- ActivityBuilderHelper.cs
- TemplateComponentConnector.cs
- CompositeActivityTypeDescriptorProvider.cs
- ErrorTableItemStyle.cs
- OperationAbortedException.cs
- CacheDependency.cs
- GroupJoinQueryOperator.cs
- ConsumerConnectionPointCollection.cs
- ToolStripTemplateNode.cs
- DisplayNameAttribute.cs
- FormatException.cs
- RootBuilder.cs
- DataObjectAttribute.cs
- SessionKeyExpiredException.cs