Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // 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
- NavigationWindow.cs
- TransformerConfigurationWizardBase.cs
- BitmapVisualManager.cs
- D3DImage.cs
- XamlWriter.cs
- ConditionalDesigner.cs
- UmAlQuraCalendar.cs
- EntityParameterCollection.cs
- ExpressionEditorAttribute.cs
- SqlMethodTransformer.cs
- OraclePermission.cs
- FigureParaClient.cs
- CacheRequest.cs
- ListViewGroupConverter.cs
- CustomServiceCredentials.cs
- ProxyFragment.cs
- SafeCertificateContext.cs
- DataGridLinkButton.cs
- ProviderMetadata.cs
- CodeDomLocalizationProvider.cs
- Compiler.cs
- BooleanSwitch.cs
- Exceptions.cs
- HandlerWithFactory.cs
- XmlSchemaObjectTable.cs
- XmlSerializerFactory.cs
- sqlnorm.cs
- HttpClientProtocol.cs
- WindowsFormsHelpers.cs
- XPathNodeInfoAtom.cs
- TransformValueSerializer.cs
- ObjectParameterCollection.cs
- UrlAuthFailedErrorFormatter.cs
- ObjectConverter.cs
- SystemIcmpV4Statistics.cs
- UpdateDelegates.Generated.cs
- TrustManagerMoreInformation.cs
- WhiteSpaceTrimStringConverter.cs
- _ProxyRegBlob.cs
- SqlConnectionString.cs
- PartitionedStreamMerger.cs
- BidirectionalDictionary.cs
- StringConcat.cs
- _CacheStreams.cs
- SqlDelegatedTransaction.cs
- CompareInfo.cs
- ParameterSubsegment.cs
- ConsumerConnectionPointCollection.cs
- ParameterElement.cs
- GridViewColumnCollection.cs
- CompilerGeneratedAttribute.cs
- Msec.cs
- DataGridBeginningEditEventArgs.cs
- ProviderException.cs
- Listbox.cs
- _NegoStream.cs
- DateTimeFormat.cs
- SelectionChangedEventArgs.cs
- FixedSOMFixedBlock.cs
- DesignTimeValidationFeature.cs
- DataControlFieldCollection.cs
- QuerySettings.cs
- ColorDialog.cs
- XmlReader.cs
- CancellationHandler.cs
- SessionState.cs
- SafeMarshalContext.cs
- StructuralObject.cs
- SiteMapDataSource.cs
- System.Data_BID.cs
- AspNetPartialTrustHelpers.cs
- BindingNavigatorDesigner.cs
- assertwrapper.cs
- TextElementAutomationPeer.cs
- ContentPathSegment.cs
- DataBindingList.cs
- RequestCacheManager.cs
- RayMeshGeometry3DHitTestResult.cs
- ExpandableObjectConverter.cs
- PerfCounters.cs
- ApplicationManager.cs
- DbgUtil.cs
- ConfigurationProperty.cs
- AssociationTypeEmitter.cs
- NamespaceCollection.cs
- DrawingBrush.cs
- TreeNodeCollection.cs
- TextTreeTextNode.cs
- BamlRecordReader.cs
- TextServicesCompartment.cs
- CollaborationHelperFunctions.cs
- SqlDataSourceCustomCommandEditor.cs
- LazyTextWriterCreator.cs
- MarshalByValueComponent.cs
- FontSizeConverter.cs
- WorkerRequest.cs
- Process.cs
- TraceData.cs
- ErrorHandler.cs
- _ChunkParse.cs