Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ThreadStateException.cs
- ReferentialConstraintRoleElement.cs
- DrawingContextDrawingContextWalker.cs
- PreservationFileWriter.cs
- TreeNodeConverter.cs
- CacheAxisQuery.cs
- DataGridViewCellStyle.cs
- SpeechUI.cs
- ClockController.cs
- XmlCharType.cs
- LineInfo.cs
- ZipArchive.cs
- CursorConverter.cs
- ThrowHelper.cs
- HtmlSelect.cs
- _ServiceNameStore.cs
- xsdvalidator.cs
- FontUnit.cs
- WorkflowDebuggerSteppingAttribute.cs
- DateTimePicker.cs
- LogLogRecordEnumerator.cs
- NavigationProperty.cs
- GrammarBuilderRuleRef.cs
- DictionaryEntry.cs
- webeventbuffer.cs
- MarkupWriter.cs
- TextParagraphView.cs
- ParentQuery.cs
- TableLayoutPanelCellPosition.cs
- NewArray.cs
- MissingFieldException.cs
- ValueQuery.cs
- ProfileElement.cs
- XmlSchemaAll.cs
- coordinator.cs
- MailMessageEventArgs.cs
- SystemIPAddressInformation.cs
- Brushes.cs
- ComPlusThreadInitializer.cs
- GridProviderWrapper.cs
- StringUtil.cs
- FixUp.cs
- ThicknessAnimationUsingKeyFrames.cs
- ResXDataNode.cs
- DataViewListener.cs
- StickyNoteContentControl.cs
- Cursor.cs
- SetState.cs
- XmlElementAttribute.cs
- ControlParameter.cs
- StdRegProviderWrapper.cs
- XsltInput.cs
- RemotingSurrogateSelector.cs
- RegexCode.cs
- DoubleLink.cs
- ConnectionStringsSection.cs
- InternalRelationshipCollection.cs
- DesignerContextDescriptor.cs
- KnownBoxes.cs
- SmtpSection.cs
- WebReferencesBuildProvider.cs
- FormViewModeEventArgs.cs
- WebPart.cs
- Latin1Encoding.cs
- WebPartTransformerCollection.cs
- MemberRelationshipService.cs
- MetafileHeader.cs
- BStrWrapper.cs
- DataTemplateSelector.cs
- RepeaterCommandEventArgs.cs
- DbFunctionCommandTree.cs
- ProfileParameter.cs
- DataBoundControl.cs
- GridViewRowCollection.cs
- AlignmentYValidation.cs
- DataGridViewCellConverter.cs
- ProcessHostServerConfig.cs
- LinqDataSourceUpdateEventArgs.cs
- TraceRecord.cs
- WizardStepCollectionEditor.cs
- OpenTypeLayoutCache.cs
- Component.cs
- Italic.cs
- Directory.cs
- XmlTypeMapping.cs
- FileUtil.cs
- ListBox.cs
- TaskScheduler.cs
- validationstate.cs
- PeerIPHelper.cs
- LinearGradientBrush.cs
- UntrustedRecipientException.cs
- DatagridviewDisplayedBandsData.cs
- SerialStream.cs
- WaitHandle.cs
- SingleConverter.cs
- MemberHolder.cs
- MessageAction.cs
- DoubleUtil.cs
- ChannelFactoryBase.cs