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
- Highlights.cs
- DispatcherObject.cs
- SetterBase.cs
- SelectionChangedEventArgs.cs
- ConfigPathUtility.cs
- RefreshPropertiesAttribute.cs
- SqlException.cs
- StringCollectionEditor.cs
- SaveFileDialog.cs
- DataGridColumnCollection.cs
- isolationinterop.cs
- WorkflowDurableInstance.cs
- MimeMapping.cs
- LogoValidationException.cs
- SmiXetterAccessMap.cs
- ProxySimple.cs
- SecurityTokenRequirement.cs
- GridView.cs
- CustomValidator.cs
- SyntaxCheck.cs
- AccessText.cs
- CodeNamespace.cs
- WebBrowser.cs
- ItemContainerProviderWrapper.cs
- EventLog.cs
- ChannelHandler.cs
- DataSpaceManager.cs
- TransformerConfigurationWizardBase.cs
- OuterGlowBitmapEffect.cs
- ellipse.cs
- AtomicFile.cs
- ClientReliableChannelBinder.cs
- ProxyElement.cs
- DataServiceSaveChangesEventArgs.cs
- GradientStopCollection.cs
- TimeSpanConverter.cs
- PaperSource.cs
- MenuItem.cs
- GC.cs
- MasterPageBuildProvider.cs
- IdleTimeoutMonitor.cs
- PersistenceMetadataNamespace.cs
- Italic.cs
- EnumValidator.cs
- ResourceContainer.cs
- IsolatedStorageFileStream.cs
- ObjectConverter.cs
- SimpleTableProvider.cs
- ReflectionUtil.cs
- ResourceAttributes.cs
- PropertyBuilder.cs
- DragCompletedEventArgs.cs
- MarginsConverter.cs
- TextSelectionHighlightLayer.cs
- DBSchemaTable.cs
- basemetadatamappingvisitor.cs
- CompositeFontFamily.cs
- ServiceDiscoveryBehavior.cs
- Size.cs
- Rfc4050KeyFormatter.cs
- EdmEntityTypeAttribute.cs
- MenuAdapter.cs
- SafeFileMappingHandle.cs
- CacheSection.cs
- InvokeMemberBinder.cs
- DateTimeOffsetAdapter.cs
- ReverseInheritProperty.cs
- XmlSchemaValidationException.cs
- AutomationPropertyInfo.cs
- BamlStream.cs
- UnknownBitmapEncoder.cs
- ResourceContainer.cs
- NegotiateStream.cs
- CollectionDataContract.cs
- Types.cs
- SiteMapProvider.cs
- MinMaxParagraphWidth.cs
- Control.cs
- TableItemPattern.cs
- MediaContext.cs
- ServiceModelConfigurationSectionCollection.cs
- TablePattern.cs
- ConditionalWeakTable.cs
- Misc.cs
- CollectionBuilder.cs
- HtmlElementCollection.cs
- PolicyLevel.cs
- relpropertyhelper.cs
- BufferModeSettings.cs
- SelectManyQueryOperator.cs
- ServicePoint.cs
- SafeMILHandle.cs
- DesignerToolboxInfo.cs
- ExitEventArgs.cs
- GridItemPattern.cs
- XamlParser.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- TargetInvocationException.cs
- oledbconnectionstring.cs
- InfiniteIntConverter.cs