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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FontStyleConverter.cs
- QueryContinueDragEventArgs.cs
- MethodImplAttribute.cs
- SQLDateTime.cs
- DropTarget.cs
- ProfileBuildProvider.cs
- HttpProfileGroupBase.cs
- HtmlControlPersistable.cs
- Internal.cs
- InteropAutomationProvider.cs
- XmlEntityReference.cs
- OrderedDictionary.cs
- AsyncOperationManager.cs
- ModifierKeysValueSerializer.cs
- Debugger.cs
- ProfilePropertySettingsCollection.cs
- GlobalizationAssembly.cs
- PrinterResolution.cs
- PropertyMapper.cs
- SystemKeyConverter.cs
- TypeDelegator.cs
- HtmlElementEventArgs.cs
- ZipIOExtraField.cs
- XmlCompatibilityReader.cs
- ReliableOutputConnection.cs
- CurrentChangingEventArgs.cs
- LinkConverter.cs
- Empty.cs
- FileLoadException.cs
- SpanIndex.cs
- TabControlAutomationPeer.cs
- Splitter.cs
- LoginCancelEventArgs.cs
- AnnotationStore.cs
- LongValidator.cs
- XmlSchemaComplexContent.cs
- PropertyBuilder.cs
- ButtonBaseAutomationPeer.cs
- EtwTrace.cs
- XPathArrayIterator.cs
- validation.cs
- shaperfactory.cs
- XPathSelectionIterator.cs
- RegexCompiler.cs
- StrongNameUtility.cs
- ViewPort3D.cs
- BaseAddressElementCollection.cs
- CodeSpit.cs
- StopStoryboard.cs
- FactoryId.cs
- Inflater.cs
- WebSysDescriptionAttribute.cs
- NamespaceListProperty.cs
- HtmlInputRadioButton.cs
- DataListItem.cs
- ToolStripGripRenderEventArgs.cs
- DurableDispatcherAddressingFault.cs
- ChainOfDependencies.cs
- HandledEventArgs.cs
- TdsParserSessionPool.cs
- ObjectDataSourceMethodEventArgs.cs
- HighlightComponent.cs
- FullTextState.cs
- WebRequest.cs
- SqlCharStream.cs
- base64Transforms.cs
- ListViewDeleteEventArgs.cs
- DragEventArgs.cs
- ISAPIRuntime.cs
- IgnoreSection.cs
- NumericUpDownAccelerationCollection.cs
- Underline.cs
- _AutoWebProxyScriptEngine.cs
- ChannelSinkStacks.cs
- DescendentsWalkerBase.cs
- ContextBase.cs
- SecurityElement.cs
- LinkButton.cs
- ComPlusTraceRecord.cs
- ClientData.cs
- BrowserCapabilitiesCodeGenerator.cs
- MediaContextNotificationWindow.cs
- NotificationContext.cs
- APCustomTypeDescriptor.cs
- Pair.cs
- LinqDataSourceContextEventArgs.cs
- SchemaElementLookUpTable.cs
- XmlNodeChangedEventManager.cs
- CqlIdentifiers.cs
- GestureRecognitionResult.cs
- Context.cs
- UseLicense.cs
- SystemIPInterfaceStatistics.cs
- IChannel.cs
- XmlSchemaElement.cs
- CultureInfoConverter.cs
- XmlValidatingReaderImpl.cs
- NotifyIcon.cs
- BamlStream.cs
- Point3DConverter.cs