Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ToolStripDropDownItem.cs
- InvalidCommandTreeException.cs
- RadioButtonFlatAdapter.cs
- EntityDataSourceMemberPath.cs
- WindowsAltTab.cs
- CroppedBitmap.cs
- WindowsTitleBar.cs
- StorageSetMapping.cs
- DBDataPermissionAttribute.cs
- UpDownBase.cs
- PathFigureCollection.cs
- WebPartConnectVerb.cs
- RecognitionEventArgs.cs
- FlowDocumentView.cs
- Operand.cs
- HashHelper.cs
- SoapObjectInfo.cs
- ObjectTypeMapping.cs
- ArgumentValidation.cs
- WebReferencesBuildProvider.cs
- FloaterParaClient.cs
- InputLangChangeRequestEvent.cs
- EmbeddedObject.cs
- MetadataStore.cs
- QilReference.cs
- XPathNodeIterator.cs
- ZipPackage.cs
- Publisher.cs
- CurrencyWrapper.cs
- EntityDataSourceUtil.cs
- LogFlushAsyncResult.cs
- DirectoryGroupQuery.cs
- AssertFilter.cs
- SqlDependencyListener.cs
- StylusCaptureWithinProperty.cs
- DiscoveryDocumentLinksPattern.cs
- ClientType.cs
- CursorConverter.cs
- EnvelopedSignatureTransform.cs
- TextDecorationCollection.cs
- TokenFactoryCredential.cs
- CompositeDataBoundControl.cs
- CommonXSendMessage.cs
- VersionedStreamOwner.cs
- RoleManagerModule.cs
- SecurityDescriptor.cs
- MenuAdapter.cs
- EntityCommandExecutionException.cs
- SchemaElement.cs
- SQLSingle.cs
- NavigationCommands.cs
- TemplatePropertyEntry.cs
- PeerEndPoint.cs
- CodeAttributeDeclarationCollection.cs
- AssemblyLoader.cs
- EntitySqlException.cs
- GeometryDrawing.cs
- ReadOnlyCollection.cs
- PointAnimationUsingPath.cs
- RSAPKCS1SignatureFormatter.cs
- TypeDelegator.cs
- MappingException.cs
- TypeSystemProvider.cs
- HttpListenerContext.cs
- TransactionInterop.cs
- NumericUpDownAccelerationCollection.cs
- RuntimeArgumentHandle.cs
- AnnotationObservableCollection.cs
- OperatorExpressions.cs
- SoapMessage.cs
- PersianCalendar.cs
- HttpModuleAction.cs
- NavigationProperty.cs
- UserControlDocumentDesigner.cs
- ISCIIEncoding.cs
- Compiler.cs
- ReadOnlyDataSourceView.cs
- Win32SafeHandles.cs
- VBIdentifierNameEditor.cs
- ReservationCollection.cs
- CodeStatementCollection.cs
- SortedSet.cs
- Zone.cs
- XmlILModule.cs
- Documentation.cs
- XmlAtomicValue.cs
- XmlBoundElement.cs
- ValidationErrorCollection.cs
- PersistencePipeline.cs
- ExpandCollapseIsCheckedConverter.cs
- IBuiltInEvidence.cs
- COM2Properties.cs
- InternalSafeNativeMethods.cs
- PasswordDeriveBytes.cs
- SubpageParagraph.cs
- RtfFormatStack.cs
- XomlCompilerError.cs
- CounterSetInstanceCounterDataSet.cs
- SspiWrapper.cs
- MetadataProperty.cs