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
- ArrayMergeHelper.cs
- SecondaryIndexDefinition.cs
- WindowsFormsHostPropertyMap.cs
- FontFamilyConverter.cs
- CapabilitiesState.cs
- StaticExtension.cs
- XmlSchemaSimpleTypeUnion.cs
- NegotiationTokenAuthenticatorState.cs
- TableAutomationPeer.cs
- ObjectCloneHelper.cs
- DataContractSerializerSection.cs
- PathSegment.cs
- GlobalizationAssembly.cs
- DataGridViewRow.cs
- KnownTypes.cs
- RepeaterItemCollection.cs
- Util.cs
- SqlHelper.cs
- ActionFrame.cs
- MenuCommand.cs
- DataGridViewRowConverter.cs
- PackagingUtilities.cs
- ChangeTracker.cs
- ClientBuildManagerCallback.cs
- SafeEventLogReadHandle.cs
- XPathAxisIterator.cs
- ObjectContextServiceProvider.cs
- EdgeModeValidation.cs
- DataSvcMapFileSerializer.cs
- FlowNode.cs
- LineServicesRun.cs
- DomainConstraint.cs
- FileDialogCustomPlacesCollection.cs
- ExpressionBinding.cs
- ImageClickEventArgs.cs
- ChangeBlockUndoRecord.cs
- InfiniteTimeSpanConverter.cs
- StretchValidation.cs
- InternalsVisibleToAttribute.cs
- ConsumerConnectionPoint.cs
- GcHandle.cs
- ReaderWriterLockWrapper.cs
- MemberInfoSerializationHolder.cs
- DataControlFieldHeaderCell.cs
- DataRelationCollection.cs
- NameValueCollection.cs
- VerbConverter.cs
- StringAttributeCollection.cs
- TokenBasedSetEnumerator.cs
- EmulateRecognizeCompletedEventArgs.cs
- TheQuery.cs
- UIElement.cs
- State.cs
- QilName.cs
- AutoResizedEvent.cs
- InitializerFacet.cs
- DataGridViewCellCollection.cs
- StringFunctions.cs
- LogExtent.cs
- TypeUtils.cs
- ResourceContainer.cs
- ListViewUpdatedEventArgs.cs
- ConnectionStringSettings.cs
- FormView.cs
- SmtpNtlmAuthenticationModule.cs
- GlyphInfoList.cs
- ObjectContext.cs
- Base64Encoder.cs
- PhysicalOps.cs
- ReferenceSchema.cs
- RequestCache.cs
- CodeLabeledStatement.cs
- TextSpanModifier.cs
- EncoderNLS.cs
- XmlDomTextWriter.cs
- ActivityCodeDomSerializer.cs
- Roles.cs
- DesignerCategoryAttribute.cs
- Button.cs
- GeneralTransform3D.cs
- ScriptModule.cs
- DataGridHeaderBorder.cs
- KeyConverter.cs
- GridViewCancelEditEventArgs.cs
- CasesDictionary.cs
- HttpModuleAction.cs
- InlineObject.cs
- WebEventTraceProvider.cs
- StaticFileHandler.cs
- DbProviderServices.cs
- KnownIds.cs
- NavigateEvent.cs
- UnsafeNativeMethods.cs
- FilteredDataSetHelper.cs
- OleDbErrorCollection.cs
- LinkTarget.cs
- FixedHighlight.cs
- Tokenizer.cs
- CheckBox.cs
- RuntimeWrappedException.cs