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
- CopyNodeSetAction.cs
- MatrixTransform3D.cs
- RoutingSection.cs
- UserControlCodeDomTreeGenerator.cs
- WorkflowRuntimeSection.cs
- MatrixUtil.cs
- StateFinalizationActivity.cs
- ImageField.cs
- PenContexts.cs
- HttpRequest.cs
- FakeModelPropertyImpl.cs
- HebrewCalendar.cs
- ExecutionContext.cs
- TextView.cs
- ConfigurationValues.cs
- InvokeMethodActivityDesigner.cs
- StorageComplexTypeMapping.cs
- OdbcErrorCollection.cs
- FormClosingEvent.cs
- SyndicationSerializer.cs
- PingReply.cs
- EdmComplexTypeAttribute.cs
- StringValidator.cs
- ValidationRuleCollection.cs
- Tracking.cs
- FloaterBaseParaClient.cs
- MultipleViewPattern.cs
- AsyncCompletedEventArgs.cs
- FocusChangedEventArgs.cs
- DataGridParentRows.cs
- SqlConnectionPoolProviderInfo.cs
- XmlSerializableReader.cs
- BindingBase.cs
- ConnectionPointConverter.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ClientFormsIdentity.cs
- CompositionTarget.cs
- WebMessageFormatHelper.cs
- DataGridViewLinkColumn.cs
- DataGridViewColumnCollection.cs
- TextRenderer.cs
- HttpSocketManager.cs
- MSG.cs
- EncodingNLS.cs
- ExitEventArgs.cs
- SerializableAttribute.cs
- InvalidCommandTreeException.cs
- LogicalExpr.cs
- Attributes.cs
- MemoryStream.cs
- PermissionSetEnumerator.cs
- BitmapPalettes.cs
- dtdvalidator.cs
- XPathDocumentBuilder.cs
- MulticastOption.cs
- ScrollItemPattern.cs
- BitmapEffectGeneralTransform.cs
- Track.cs
- WebPartUtil.cs
- ParameterBuilder.cs
- CombinedGeometry.cs
- ExpressionWriter.cs
- InvokeMethodDesigner.xaml.cs
- AttributeUsageAttribute.cs
- StickyNote.cs
- BitmapCache.cs
- WebRequestModuleElementCollection.cs
- DashStyles.cs
- DataPagerFieldCollection.cs
- UserMapPath.cs
- DispatchChannelSink.cs
- ListItemCollection.cs
- BindingExpressionBase.cs
- GridViewSortEventArgs.cs
- HyperlinkAutomationPeer.cs
- FontWeightConverter.cs
- serverconfig.cs
- MyContact.cs
- CancellationHandlerDesigner.cs
- InputLanguageProfileNotifySink.cs
- XmlDataDocument.cs
- TypeUnloadedException.cs
- IntPtr.cs
- DiagnosticsConfigurationHandler.cs
- MdiWindowListStrip.cs
- HttpListenerRequest.cs
- HitTestParameters3D.cs
- AttributeCollection.cs
- TextDecorationUnitValidation.cs
- ConstraintStruct.cs
- JsonClassDataContract.cs
- InternalPermissions.cs
- DetailsViewDeletedEventArgs.cs
- ImageBrush.cs
- ClientSettingsSection.cs
- CssStyleCollection.cs
- CompilationAssemblyInstallComponent.cs
- SqlDataAdapter.cs
- Win32.cs
- DocumentScope.cs