Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NameValueCollection.cs
- ConfigurationValidatorBase.cs
- WebBrowsableAttribute.cs
- WorkflowFormatterBehavior.cs
- InputBinding.cs
- WmlValidatorAdapter.cs
- XMLDiffLoader.cs
- ListItemCollection.cs
- IssuedTokenParametersEndpointAddressElement.cs
- _IPv6Address.cs
- EntryPointNotFoundException.cs
- EastAsianLunisolarCalendar.cs
- ComEventsSink.cs
- PerformanceCounterCategory.cs
- CompilerWrapper.cs
- SvcMapFile.cs
- SettingsProperty.cs
- ListViewItem.cs
- CodeTypeDeclarationCollection.cs
- HiddenFieldPageStatePersister.cs
- BindingExpressionBase.cs
- SafeFileMappingHandle.cs
- WebChannelFactory.cs
- TouchesCapturedWithinProperty.cs
- TransformationRules.cs
- X509CertificateRecipientServiceCredential.cs
- TextBoxRenderer.cs
- Processor.cs
- SafeRightsManagementEnvironmentHandle.cs
- EtwTrackingBehaviorElement.cs
- SaveWorkflowCommand.cs
- ControlDesigner.cs
- DefinitionUpdate.cs
- CapabilitiesPattern.cs
- HttpClientCertificate.cs
- FixedHighlight.cs
- NonParentingControl.cs
- HtmlHead.cs
- ScriptingWebServicesSectionGroup.cs
- IntPtr.cs
- EventLogPermissionAttribute.cs
- ParseHttpDate.cs
- InputGestureCollection.cs
- Panel.cs
- Win32PrintDialog.cs
- ClusterRegistryConfigurationProvider.cs
- PointKeyFrameCollection.cs
- HyperLinkColumn.cs
- CryptoStream.cs
- ProfilePropertyNameValidator.cs
- BitmapData.cs
- oledbmetadatacollectionnames.cs
- AsyncContentLoadedEventArgs.cs
- DropShadowEffect.cs
- XpsViewerException.cs
- StatusBarDrawItemEvent.cs
- SqlDataSourceCommandEventArgs.cs
- RangeBase.cs
- ProvidersHelper.cs
- DynamicQueryStringParameter.cs
- WaitHandleCannotBeOpenedException.cs
- XmlReaderSettings.cs
- CommandEventArgs.cs
- XmlSchemaImport.cs
- ScriptResourceInfo.cs
- Duration.cs
- EntityDataSourceContextCreatingEventArgs.cs
- AmbientProperties.cs
- RoutedEvent.cs
- SurrogateSelector.cs
- HostedTransportConfigurationManager.cs
- TextPattern.cs
- WSTrust.cs
- ExpressionBindingCollection.cs
- ClientScriptManager.cs
- HtmlImage.cs
- DocumentViewerBase.cs
- AppearanceEditorPart.cs
- ExpressionBuilder.cs
- AnimationStorage.cs
- MultiBindingExpression.cs
- LayoutEvent.cs
- SendDesigner.xaml.cs
- GetPageCompletedEventArgs.cs
- NetSectionGroup.cs
- Utility.cs
- WebServiceFault.cs
- DataGridViewColumnCollectionEditor.cs
- PermissionSet.cs
- BroadcastEventHelper.cs
- ControllableStoryboardAction.cs
- UIElementParagraph.cs
- TextTrailingWordEllipsis.cs
- ResourceDictionary.cs
- SplineQuaternionKeyFrame.cs
- SessionStateModule.cs
- GeneralTransform3DTo2DTo3D.cs
- Domain.cs
- AnnotationMap.cs
- IListConverters.cs