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
- ToolboxItem.cs
- HtmlSelect.cs
- RegexMatchCollection.cs
- KeyInstance.cs
- BamlTreeUpdater.cs
- FrameworkContentElement.cs
- HttpRawResponse.cs
- WebPartConnectionsConnectVerb.cs
- CodeCompiler.cs
- XmlFormatReaderGenerator.cs
- CheckBox.cs
- StreamingContext.cs
- TdsRecordBufferSetter.cs
- BoundField.cs
- InputLanguageSource.cs
- CheckStoreFileValidityRequest.cs
- ScriptManagerProxy.cs
- FlowchartSizeFeature.cs
- RequestCacheManager.cs
- PathFigureCollection.cs
- FontConverter.cs
- ListItem.cs
- TextEditorCharacters.cs
- DataGridItemEventArgs.cs
- ResizeGrip.cs
- GridViewColumnCollection.cs
- VectorCollection.cs
- PartialToken.cs
- WebBrowserSiteBase.cs
- SQLBytes.cs
- CheckBoxAutomationPeer.cs
- TypeUtil.cs
- PenContexts.cs
- ObjectStateManagerMetadata.cs
- PowerStatus.cs
- DataViewManagerListItemTypeDescriptor.cs
- ScriptRef.cs
- EditorPartDesigner.cs
- ScriptingWebServicesSectionGroup.cs
- Form.cs
- ConfigDefinitionUpdates.cs
- WebServiceBindingAttribute.cs
- UIPermission.cs
- XPathDocumentNavigator.cs
- SequentialWorkflowRootDesigner.cs
- SoapExtensionReflector.cs
- TextSelectionProcessor.cs
- WebPartPersonalization.cs
- StringComparer.cs
- BrowserInteropHelper.cs
- AspNetCompatibilityRequirementsAttribute.cs
- EmbossBitmapEffect.cs
- IconConverter.cs
- DesigntimeLicenseContext.cs
- Util.cs
- SeverityFilter.cs
- CustomLineCap.cs
- WebHeaderCollection.cs
- WriterOutput.cs
- Viewport3DVisual.cs
- BaseAddressElementCollection.cs
- ThemeDictionaryExtension.cs
- DataGridViewColumnEventArgs.cs
- CookieHandler.cs
- PagesSection.cs
- SoundPlayer.cs
- TreeIterator.cs
- TimeSpanSecondsConverter.cs
- EncoderFallback.cs
- ButtonBase.cs
- MultiTrigger.cs
- ArgumentsParser.cs
- ImpersonationContext.cs
- ExpressionBuilderContext.cs
- ListSourceHelper.cs
- MetadataUtil.cs
- HuffmanTree.cs
- UDPClient.cs
- CollectionsUtil.cs
- SpellerError.cs
- EnumValAlphaComparer.cs
- XamlUtilities.cs
- XamlStyleSerializer.cs
- HwndMouseInputProvider.cs
- SessionEndingEventArgs.cs
- ChannelFactory.cs
- MessageHeaderDescription.cs
- ObjectContext.cs
- NameValueCollection.cs
- ListenUriMode.cs
- CatalogPartChrome.cs
- controlskin.cs
- XmlSchemaInclude.cs
- WorkflowRuntimeEndpoint.cs
- DesignerCapabilities.cs
- DynamicUpdateCommand.cs
- IsolatedStorageFile.cs
- PreloadedPackages.cs
- ResourceSet.cs
- WebPartConnectionsCancelVerb.cs