Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- PipelineModuleStepContainer.cs
- RepeaterItemCollection.cs
- PriorityBinding.cs
- SafeNativeMethodsOther.cs
- InstallHelper.cs
- StructuredType.cs
- ButtonRenderer.cs
- AnnotationComponentChooser.cs
- TagMapCollection.cs
- HttpCachePolicy.cs
- CryptoApi.cs
- DbSourceParameterCollection.cs
- COM2PropertyDescriptor.cs
- IndentTextWriter.cs
- FormatterServices.cs
- HwndStylusInputProvider.cs
- TypeConverter.cs
- StronglyTypedResourceBuilder.cs
- ListControl.cs
- EventLogInternal.cs
- DetailsViewPageEventArgs.cs
- Exceptions.cs
- ConfigXmlText.cs
- BindingEditor.xaml.cs
- PartialArray.cs
- FontStyle.cs
- RuntimeCompatibilityAttribute.cs
- HostingEnvironmentWrapper.cs
- SmtpFailedRecipientsException.cs
- Region.cs
- GPPOINT.cs
- CallbackValidator.cs
- SelectionProcessor.cs
- relpropertyhelper.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- DataGridHyperlinkColumn.cs
- DetailsView.cs
- HasCopySemanticsAttribute.cs
- PointAnimationBase.cs
- QueryableDataSourceView.cs
- CodeTypeReferenceCollection.cs
- ProfessionalColorTable.cs
- MobileControlBuilder.cs
- EventsTab.cs
- Content.cs
- ConstructorArgumentAttribute.cs
- AssemblyBuilderData.cs
- Renderer.cs
- SmtpMail.cs
- PropertyChangingEventArgs.cs
- precedingquery.cs
- GAC.cs
- MsmqChannelFactoryBase.cs
- DigitalSignatureProvider.cs
- ToolStripItemClickedEventArgs.cs
- DoubleCollection.cs
- GridViewRow.cs
- RangeValuePattern.cs
- PlaceHolder.cs
- PropertyCondition.cs
- XMLUtil.cs
- DataRelationCollection.cs
- ListSortDescription.cs
- UIElementCollection.cs
- CellQuery.cs
- ReverseInheritProperty.cs
- WindowManager.cs
- DataSourceView.cs
- TextParagraphProperties.cs
- RemoveStoryboard.cs
- BitmapMetadataBlob.cs
- AutomationElement.cs
- FormClosingEvent.cs
- DeliveryStrategy.cs
- FontFaceLayoutInfo.cs
- AppSettingsExpressionBuilder.cs
- InputManager.cs
- StringArrayConverter.cs
- Win32.cs
- AssociationSetMetadata.cs
- DesignerCatalogPartChrome.cs
- Logging.cs
- CmsUtils.cs
- OperationAbortedException.cs
- CompiledXpathExpr.cs
- OletxTransactionManager.cs
- EventProviderWriter.cs
- TreeBuilderXamlTranslator.cs
- SimpleHandlerBuildProvider.cs
- RegexReplacement.cs
- ResolveDuplexCD1AsyncResult.cs
- BitmapVisualManager.cs
- SuppressMergeCheckAttribute.cs
- RichTextBox.cs
- KeyTime.cs
- RadioButtonAutomationPeer.cs
- CatalogPartCollection.cs
- ListViewInsertionMark.cs
- _ProxyRegBlob.cs
- versioninfo.cs