Code:
/ 4.0 / 4.0 / 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. // ==++== // // 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
- Label.cs
- WebConfigurationManager.cs
- HttpCookiesSection.cs
- DecimalConstantAttribute.cs
- TextTreeDeleteContentUndoUnit.cs
- StickyNoteContentControl.cs
- OleAutBinder.cs
- DependencyObjectProvider.cs
- XmlWriterDelegator.cs
- RequestNavigateEventArgs.cs
- CacheForPrimitiveTypes.cs
- ReadOnlyDataSourceView.cs
- Base64Encoder.cs
- UrlPath.cs
- XPathNodeHelper.cs
- FaultException.cs
- SiteMapSection.cs
- ToolStripSettings.cs
- ImageAttributes.cs
- SafeLocalMemHandle.cs
- Int64.cs
- CollectionViewProxy.cs
- PerformanceCounterCategory.cs
- Authorization.cs
- TTSVoice.cs
- DebugView.cs
- SafeNativeMethods.cs
- ListViewInsertionMark.cs
- IndentedWriter.cs
- Mouse.cs
- ZoneMembershipCondition.cs
- EncodingNLS.cs
- ActivityCodeGenerator.cs
- BitmapScalingModeValidation.cs
- InitializerFacet.cs
- ContextQuery.cs
- ConfigXmlAttribute.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- Icon.cs
- XamlSerializationHelper.cs
- GridLength.cs
- ProgressPage.cs
- XPathQilFactory.cs
- DetailsViewUpdateEventArgs.cs
- GPStream.cs
- ImageSource.cs
- RotateTransform.cs
- GenericIdentity.cs
- HttpCacheVaryByContentEncodings.cs
- DesignerTransaction.cs
- TextContainer.cs
- DiscreteKeyFrames.cs
- CharacterMetricsDictionary.cs
- WindowsScrollBarBits.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- ColorTransform.cs
- TextBoxRenderer.cs
- XMLSyntaxException.cs
- InkCanvasSelection.cs
- XPathNavigatorKeyComparer.cs
- ToolStripPanelRenderEventArgs.cs
- Transform3D.cs
- SchemaTableOptionalColumn.cs
- WebPartConnectionCollection.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- RequiredAttributeAttribute.cs
- BaseCollection.cs
- TextServicesCompartment.cs
- Substitution.cs
- ObjectDataSourceMethodEventArgs.cs
- BasicBrowserDialog.cs
- SafeWaitHandle.cs
- SlipBehavior.cs
- CompositionCommandSet.cs
- CompiledQueryCacheEntry.cs
- HMACMD5.cs
- KnownIds.cs
- EntityContainerAssociationSet.cs
- UseManagedPresentationBindingElementImporter.cs
- ProgressChangedEventArgs.cs
- PersonalizationProviderCollection.cs
- XMLSchema.cs
- IdnElement.cs
- JournalEntryListConverter.cs
- CommandConverter.cs
- EventArgs.cs
- ExpressionConverter.cs
- XmlFormatExtensionPrefixAttribute.cs
- ExeConfigurationFileMap.cs
- TreeNodeCollection.cs
- EdmComplexPropertyAttribute.cs
- EncryptedReference.cs
- BindingNavigator.cs
- AudioFormatConverter.cs
- PointLight.cs
- FramingFormat.cs
- ColumnMapTranslator.cs
- LinqDataSourceContextEventArgs.cs
- ProcessInputEventArgs.cs
- SecondaryIndex.cs